Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Grace period after maxAllocationEpochs on closeAllocation by delegator

オープン
#417 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
solidity
領域
blockchain

調査の方向性

まず closeAllocation() と、issue で説明されている既存の maxAllocationEpochs の動作を確認します。猶予期間によってソフトペナルティとハードペナルティをどのように分離できるかを判断し、その決定事項と必要な契約変更を文書化します。動作とスコープについて合意できた時点で、issue は完了です。

索引モデルが issue の本文から書いたものです。

説明

discussion

closeAllocation() is the function that allows unallocating tokens assigned to a particular subgraph and eventually collecting all funds from state channels.

To avoid an indexer never closing an allocation and as a consequence never distributing the funds, we allow delegators to force close an allocation after maxAllocationEpochs.

An indexer would want to close the allocation before maxAllocationEpochs. It has two incentives to do so:

  1. Effective allocation stops counting after maxAllocationEpochs.
  2. If a delegators close the allocation a POI won't be able to be presented and no rewards are distributed.

I wonder if it is a good idea to also include a grace period after maxAllocationEpochs to detach these two times.

  • indexers can close any time
  • soft penalty: no effective allocation is counted after maxAllocationEpochs
  • hard penalty: delegators can force close after maxAllocationEpochs + gracePeriod

For simplicity we can keep only maxAllocationEpochs and then add a grace period if necessary.

主要言語
Solidity
スター
374
フォーク
176
平均マージ
1日 15時間
マージ済み PR(30日)
4

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphprotocol/contracts のほかの issue

graphprotocol/contracts の issue をすべて見る

似ている issue

Blockchain の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。