{"eip":7787,"title":"Soulbound Degradable Governance","description":"DAO governance where voting power is non-transferable and decays over time without active contributions.","authors":["Guilherme Neves (@0xneves)","Rafael Castaneda \u003crafaelcastaneda@gmail.com\u003e"],"status":"Draft","type":"Standards Track","category":"ERC","created":"2024-10-15","requires":[20],"discussionsTo":"https://ethereum-magicians.org/t/erc-7787-soulbound-degradable-governance/21326","repo":"ERCs","label":"ERC-7787","officialUrl":"https://eips.ethereum.org/EIPS/eip-7787","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7787.md","url":"https://eips.huatuo.xyz/eip-7787/","tldr":{"en":"A DAO governance pattern where voting power is a non-transferable token that decays after a grace period unless renewed by contributions, separating political power from money.","ja":"議決権を、貢献によって更新しない限り猶予期間後に減衰する譲渡不可トークンにする DAO ガバナンスのパターン。政治的な力とお金を切り離す。","ko":"의결권을 양도할 수 없는 토큰으로 두고, 기여로 갱신하지 않으면 유예 기간 후 감소하게 하는 DAO 거버넌스 패턴. 정치적 힘과 돈을 분리한다.","zh":"一种 DAO 治理模式：投票权是不可转让的代币，宽限期过后会衰减，除非通过贡献来续期，从而把政治权力与金钱分开。"},"tags":["governance","dao","soulbound","voting"],"explainers":{"en":{"lang":"en","tldr":"A DAO governance pattern where voting power is a non-transferable token that decays after a grace period unless renewed by contributions, separating political power from money.","tags":["governance","dao","soulbound","voting"],"related":[20,721,5192,5805],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7787/","markdown":"## What problem does it solve?\n\nMost DAOs give one vote per token. Since tokens can be bought, voting power follows wealth: large holders dominate, small contributors disengage, and the culture drifts toward the treasury rather than the work.\n\nSoulbound Degradable Governance (SDG) proposes splitting two kinds of power, especially for young DAOs:\n\n- **Economic power**: a normal tradable token (typically [ERC-20](/eip-20/)) for liquidity and funding.\n- **Political power**: a non-transferable token that grants votes, earned by contributing and fading away if you stop.\n\n## How it works\n\nAn implementation must:\n\n1. Override `transfer` on the governance token so it cannot move between addresses (soulbound).\n2. Override `getVotes(account)` so voting power **decays over time**; linear or exponential decay is recommended.\n3. Emit events whenever an address's voting power changes.\n\nThe interface adds two timing knobs, both described as 90 days by default and overridable:\n\n- `gracePeriod()`: after voting units are granted, full power is kept for this long.\n- `decayPeriod()`: after the grace period, power falls to zero over this span.\n\nGranting new voting units (for example by a DAO vote rewarding a contribution) resets the clock, so active members keep their influence and inactive ones naturally fade out. The standard is token-agnostic: the reference implementation, \"Valocracy\", uses a soulbound [ERC-721](/eip-721/) per member that stores voting units.\n\n## Sample code\n\nLinear decay inside `getVotes`, following the reference implementation:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\nabstract contract DecayingVotes {\n    mapping(address =\u003e uint256) internal units;\n    mapping(address =\u003e uint256) internal lastGrant;\n\n    function gracePeriod() public view virtual returns (uint256) { return 90 days; }\n    function decayPeriod() public view virtual returns (uint256) { return 90 days; }\n\n    function getVotes(address a) public view virtual returns (uint256) {\n        uint256 t = lastGrant[a];\n        if (t == 0 || block.timestamp \u003c t + gracePeriod()) return units[a];\n        uint256 elapsed = block.timestamp - (t + gracePeriod());\n        if (elapsed \u003e= decayPeriod()) return 0;\n        return units[a] * (decayPeriod() - elapsed) / decayPeriod();\n    }\n\n    function _grant(address a, uint256 amount) internal {\n        uint256 old = getVotes(a);\n        units[a] = old + amount;       // remaining power + new grant\n        lastGrant[a] = block.timestamp; // restart grace period\n    }\n}\n```\n\n## Things to know\n\n- Status: **Draft**. Security considerations are still a TODO.\n- The interface in the spec is written with `public view virtual` functions inside an `interface`, which does not compile as-is; treat it as a description of required functions.\n- Decaying power that is computed lazily in `getVotes` must play well with snapshot-based governors (e.g. checkpointed `getPastVotes`); check how your governor reads votes.\n- Whoever can grant voting units effectively controls the DAO, so that role (often the governor itself) needs careful design.\n- Related ideas: soulbound NFTs ([ERC-5192](/eip-5192/)) and delegated voting ([ERC-5805](/eip-5805/)).\n"},"ja":{"lang":"ja","tldr":"議決権を、貢献によって更新しない限り猶予期間後に減衰する譲渡不可トークンにする DAO ガバナンスのパターン。政治的な力とお金を切り離す。","tags":["governance","dao","soulbound","voting"],"related":[20,721,5192,5805],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7787/","markdown":"## 何を解決するのか\n\nほとんどの DAO は 1 トークン 1 票を採用しています。トークンは購入できるため、議決権は富に比例します。大口保有者が支配的になり、小さな貢献者は関与しなくなり、文化は仕事よりもトレジャリーの方へ流れていきます。\n\nSoulbound Degradable Governance（SDG）は、特に若い DAO を対象に、2 種類の力を分けることを提案します。\n\n- **経済的な力**：流動性と資金調達のための通常の取引可能なトークン（通常は [ERC-20](/eip-20/)）。\n- **政治的な力**：議決権を与える譲渡不可のトークン。貢献することで得られ、貢献をやめると薄れていきます。\n\n## 仕組み\n\n実装は次のことを行わなければなりません。\n\n1. ガバナンストークンの `transfer` をオーバーライドし、アドレス間で移動できないようにする（soulbound）。\n2. `getVotes(account)` をオーバーライドし、議決権が**時間とともに減衰**するようにする。線形または指数的な減衰が推奨されます。\n3. アドレスの議決権が変わるたびにイベントを emit する。\n\nインターフェースには 2 つの時間パラメータが加わります。どちらもデフォルトは 90 日とされており、オーバーライドできます。\n\n- `gracePeriod()`：議決権単位が付与された後、この期間は全議決権が維持されます。\n- `decayPeriod()`：猶予期間の後、議決権はこの期間をかけてゼロまで下がります。\n\n新たな議決権単位が付与される（たとえば貢献に報いる DAO の投票によって）と時計がリセットされるため、活動的なメンバーは影響力を保ち、活動していないメンバーは自然に薄れていきます。この標準はトークンに依存しません。リファレンス実装の「Valocracy」は、議決権単位を保持するメンバーごとの soulbound な [ERC-721](/eip-721/) を使っています。\n\n## サンプルコード\n\nリファレンス実装に倣い、`getVotes` の中で線形減衰を行う例：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\nabstract contract DecayingVotes {\n    mapping(address =\u003e uint256) internal units;\n    mapping(address =\u003e uint256) internal lastGrant;\n\n    function gracePeriod() public view virtual returns (uint256) { return 90 days; }\n    function decayPeriod() public view virtual returns (uint256) { return 90 days; }\n\n    function getVotes(address a) public view virtual returns (uint256) {\n        uint256 t = lastGrant[a];\n        if (t == 0 || block.timestamp \u003c t + gracePeriod()) return units[a];\n        uint256 elapsed = block.timestamp - (t + gracePeriod());\n        if (elapsed \u003e= decayPeriod()) return 0;\n        return units[a] * (decayPeriod() - elapsed) / decayPeriod();\n    }\n\n    function _grant(address a, uint256 amount) internal {\n        uint256 old = getVotes(a);\n        units[a] = old + amount;       // remaining power + new grant\n        lastGrant[a] = block.timestamp; // restart grace period\n    }\n}\n```\n\n## 知っておくべきこと\n\n- ステータス：**Draft**。セキュリティに関する考慮事項はまだ TODO です。\n- 仕様のインターフェースは、`interface` の中に `public view virtual` 関数を書いており、そのままではコンパイルできません。必要な関数の説明として扱ってください。\n- `getVotes` の中で遅延的に計算される減衰する議決権は、スナップショットベースのガバナー（例：チェックポイント付きの `getPastVotes`）とうまく連携する必要があります。お使いのガバナーが票をどう読み取るかを確認してください。\n- 議決権単位を付与できる主体は、事実上 DAO を支配します。そのためこの役割（多くの場合ガバナー自身）は慎重に設計する必要があります。\n- 関連するアイデア：soulbound NFT（[ERC-5192](/eip-5192/)）と委任投票（[ERC-5805](/eip-5805/)）。\n"},"ko":{"lang":"ko","tldr":"의결권을 양도할 수 없는 토큰으로 두고, 기여로 갱신하지 않으면 유예 기간 후 감소하게 하는 DAO 거버넌스 패턴. 정치적 힘과 돈을 분리한다.","tags":["governance","dao","soulbound","voting"],"related":[20,721,5192,5805],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7787/","markdown":"## 어떤 문제를 해결하나요?\n\n대부분의 DAO는 토큰 하나에 한 표를 줍니다. 토큰은 살 수 있기 때문에 의결권은 부를 따라갑니다. 큰손이 지배하고, 작은 기여자는 이탈하고, 문화는 일 자체보다 트레저리 쪽으로 흘러갑니다.\n\nSoulbound Degradable Governance(SDG)는 특히 젊은 DAO를 위해 두 종류의 힘을 나누자고 제안합니다.\n\n- **경제적 힘**: 유동성과 자금 조달을 위한 일반 거래 가능 토큰(보통 [ERC-20](/eip-20/)).\n- **정치적 힘**: 의결권을 주는 양도 불가 토큰. 기여해서 얻고, 기여를 멈추면 사라집니다.\n\n## 어떻게 동작하나요?\n\n구현은 다음을 해야 합니다.\n\n1. 거버넌스 토큰의 `transfer`를 오버라이드해 주소 간에 이동할 수 없게 합니다(soulbound).\n2. `getVotes(account)`를 오버라이드해 의결권이 **시간이 지날수록 감소**하게 합니다. 선형 또는 지수 감소가 권장됩니다.\n3. 주소의 의결권이 바뀔 때마다 이벤트를 emit합니다.\n\n인터페이스에는 두 가지 시간 설정이 추가되며, 둘 다 기본값은 90일로 설명되어 있고 오버라이드할 수 있습니다.\n\n- `gracePeriod()`: 의결권 단위가 부여된 뒤 이 기간 동안은 전체 의결권이 유지됩니다.\n- `decayPeriod()`: 유예 기간 이후 이 기간에 걸쳐 의결권이 0으로 떨어집니다.\n\n새 의결권 단위를 부여하면(예: 기여에 보상하는 DAO 투표) 시계가 초기화되므로, 활동하는 구성원은 영향력을 유지하고 활동하지 않는 구성원은 자연스럽게 사라집니다. 이 표준은 토큰 종류에 구애받지 않습니다. 참조 구현인 \"Valocracy\"는 의결권 단위를 저장하는 구성원별 soulbound [ERC-721](/eip-721/)을 사용합니다.\n\n## 샘플 코드\n\n참조 구현을 따른, `getVotes` 안의 선형 감소:\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\nabstract contract DecayingVotes {\n    mapping(address =\u003e uint256) internal units;\n    mapping(address =\u003e uint256) internal lastGrant;\n\n    function gracePeriod() public view virtual returns (uint256) { return 90 days; }\n    function decayPeriod() public view virtual returns (uint256) { return 90 days; }\n\n    function getVotes(address a) public view virtual returns (uint256) {\n        uint256 t = lastGrant[a];\n        if (t == 0 || block.timestamp \u003c t + gracePeriod()) return units[a];\n        uint256 elapsed = block.timestamp - (t + gracePeriod());\n        if (elapsed \u003e= decayPeriod()) return 0;\n        return units[a] * (decayPeriod() - elapsed) / decayPeriod();\n    }\n\n    function _grant(address a, uint256 amount) internal {\n        uint256 old = getVotes(a);\n        units[a] = old + amount;       // remaining power + new grant\n        lastGrant[a] = block.timestamp; // restart grace period\n    }\n}\n```\n\n## 알아둘 점\n\n- 상태: **Draft**. 보안 고려사항은 아직 TODO입니다.\n- 스펙의 인터페이스는 `interface` 안에 `public view virtual` 함수로 쓰여 있어 그대로는 컴파일되지 않습니다. 필요한 함수에 대한 설명으로 받아들이세요.\n- `getVotes`에서 지연 계산되는 감소 의결권은 스냅숏 기반 거버너(예: 체크포인트가 있는 `getPastVotes`)와 잘 맞아야 합니다. 사용하는 거버너가 표를 어떻게 읽는지 확인하세요.\n- 의결권 단위를 부여할 수 있는 주체가 사실상 DAO를 통제하므로, 이 역할(흔히 거버너 자신)은 신중하게 설계해야 합니다.\n- 관련 아이디어: soulbound NFT([ERC-5192](/eip-5192/))와 위임 투표([ERC-5805](/eip-5805/)).\n"},"zh":{"lang":"zh","tldr":"一种 DAO 治理模式：投票权是不可转让的代币，宽限期过后会衰减，除非通过贡献来续期，从而把政治权力与金钱分开。","tags":["governance","dao","soulbound","voting"],"related":[20,721,5192,5805],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7787/","markdown":"## 它解决什么问题？\n\n大多数 DAO 采用一币一票。由于代币可以购买，投票权会随财富而走：大户占据主导，小贡献者逐渐疏离，文化也偏向金库而不是实际工作。\n\n灵魂绑定可衰减治理（Soulbound Degradable Governance，SDG）提议把两种权力分开，尤其适合年轻的 DAO：\n\n- **经济权力**：用于流动性和融资的普通可交易代币（通常是 [ERC-20](/eip-20/)）。\n- **政治权力**：授予投票权的不可转让代币，通过贡献获得，停止贡献就会逐渐消退。\n\n## 它如何运作\n\n实现必须：\n\n1. 重写治理代币的 `transfer`，使其无法在地址之间移动（soulbound）。\n2. 重写 `getVotes(account)`，使投票权**随时间衰减**；建议使用线性或指数衰减。\n3. 每当某个地址的投票权发生变化时触发事件。\n\n该接口增加了两个时间参数，默认均为 90 天，可被重写：\n\n- `gracePeriod()`：投票单位被授予后，在这段时间内保持全部投票权。\n- `decayPeriod()`：宽限期之后，投票权在这段时间内降至零。\n\n授予新的投票单位（例如通过 DAO 投票奖励某项贡献）会重置计时，因此活跃成员保留影响力，不活跃的成员则自然淡出。该标准与代币类型无关：参考实现“Valocracy”为每位成员使用一个 soulbound 的 [ERC-721](/eip-721/)，其中存储投票单位。\n\n## 示例代码\n\n参考实现中 `getVotes` 内部的线性衰减：\n\n```solidity\n// SPDX-License-Identifier: CC0-1.0\npragma solidity ^0.8.20;\n\nabstract contract DecayingVotes {\n    mapping(address =\u003e uint256) internal units;\n    mapping(address =\u003e uint256) internal lastGrant;\n\n    function gracePeriod() public view virtual returns (uint256) { return 90 days; }\n    function decayPeriod() public view virtual returns (uint256) { return 90 days; }\n\n    function getVotes(address a) public view virtual returns (uint256) {\n        uint256 t = lastGrant[a];\n        if (t == 0 || block.timestamp \u003c t + gracePeriod()) return units[a];\n        uint256 elapsed = block.timestamp - (t + gracePeriod());\n        if (elapsed \u003e= decayPeriod()) return 0;\n        return units[a] * (decayPeriod() - elapsed) / decayPeriod();\n    }\n\n    function _grant(address a, uint256 amount) internal {\n        uint256 old = getVotes(a);\n        units[a] = old + amount;       // remaining power + new grant\n        lastGrant[a] = block.timestamp; // restart grace period\n    }\n}\n```\n\n## 需要注意\n\n- 状态：**Draft**。安全注意事项仍是 TODO。\n- 规范中的接口在 `interface` 内部写成了 `public view virtual` 函数，直接编译会失败；请把它当作对所需函数的描述。\n- 在 `getVotes` 中惰性计算的衰减投票权，必须与基于快照的治理器（例如带检查点的 `getPastVotes`）良好配合；请确认你的治理器是如何读取票数的。\n- 能够授予投票单位的人实际上控制着 DAO，因此这个角色（通常就是治理器本身）需要谨慎设计。\n- 相关想法：灵魂绑定 NFT（[ERC-5192](/eip-5192/)）和委托投票（[ERC-5805](/eip-5805/)）。\n"}}}
