Grace period after maxAllocationEpochs on closeAllocation by delegator
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- solidity
- 領域
- blockchain
調査の方向性
まず closeAllocation() と、issue で説明されている既存の maxAllocationEpochs の動作を確認します。猶予期間によってソフトペナルティとハードペナルティをどのように分離できるかを判断し、その決定事項と必要な契約変更を文書化します。動作とスコープについて合意できた時点で、issue は完了です。
索引モデルが issue の本文から書いたものです。
説明
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:
- Effective allocation stops counting after maxAllocationEpochs.
- 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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graphprotocol/contracts のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
graphprotocol/contracts#1361 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
graphprotocol/contracts#1360 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
graphprotocol/contracts#1355 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
graphprotocol/contracts#1033 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
graphprotocol/contracts#985 ·
graphprotocol/contracts の issue をすべて見る
似ている issue
-
blocklist removal
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MetaMask/eth-phishing-detect#296544 · コメント 3 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
stellar/js-stellar-sdk#1750 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Uniswap/default-token-list#2589 ·
-
add-new-address Backend New Network
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
safe-global/safe-eth-py#2761 ·