Grace period after maxAllocationEpochs on closeAllocation by delegator
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 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
- 星标
- 373
- 派生
- 175
- 平均合并
- 17 小时 29 分钟
- 30 天内合并 PR
- 3
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
-
resources: add a regression test confirming admin mint still works after the #16 SAC handoff可能已有人在做 @Daniexie 今天认领。 未关闭contracts good first issue Stellar Wave
难度 2/5 1-3 小时 新手友好度 72/100
OlaGreat/starbound-realms#137 · 1 条评论 ·
-
enhancement good first issue module:scaffold trivial
难度 2/5 1-3 小时 新手友好度 74/100
soroban-forge-labs/soroban-forge#606 ·
维护者通常 1 天内回复
-
bug difficulty: easy priority: low sdk testing
难度 2/5 1-3 小时 新手友好度 66/100
trustflow-protocol/trustflow-sdk#505 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
complexity: medium contracts enhancement
难度 2/5 1-3 小时 新手友好度 78/100
milepost-labs/milepost#469 ·
维护者通常 1 天内回复