ERC-7787 · Draft · ERC · 2024-10-15
ERC-7787: Soulbound Degradable Governance
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.
What problem does it solve?
Most 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.
Soulbound Degradable Governance (SDG) proposes splitting two kinds of power, especially for young DAOs:
- Economic power: a normal tradable token (typically ERC-20) for liquidity and funding.
- Political power: a non-transferable token that grants votes, earned by contributing and fading away if you stop.
How it works
An implementation must:
- Override
transferon the governance token so it cannot move between addresses (soulbound). - Override
getVotes(account)so voting power decays over time; linear or exponential decay is recommended. - Emit events whenever an address's voting power changes.
The interface adds two timing knobs, both described as 90 days by default and overridable:
gracePeriod(): after voting units are granted, full power is kept for this long.decayPeriod(): after the grace period, power falls to zero over this span.
Granting 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 per member that stores voting units.
Sample code
Linear decay inside getVotes, following the reference implementation:
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
abstract contract DecayingVotes {
mapping(address => uint256) internal units;
mapping(address => uint256) internal lastGrant;
function gracePeriod() public view virtual returns (uint256) { return 90 days; }
function decayPeriod() public view virtual returns (uint256) { return 90 days; }
function getVotes(address a) public view virtual returns (uint256) {
uint256 t = lastGrant[a];
if (t == 0 || block.timestamp < t + gracePeriod()) return units[a];
uint256 elapsed = block.timestamp - (t + gracePeriod());
if (elapsed >= decayPeriod()) return 0;
return units[a] * (decayPeriod() - elapsed) / decayPeriod();
}
function _grant(address a, uint256 amount) internal {
uint256 old = getVotes(a);
units[a] = old + amount; // remaining power + new grant
lastGrant[a] = block.timestamp; // restart grace period
}
}
Things to know
- Status: Draft. Security considerations are still a TODO.
- The interface in the spec is written with
public view virtualfunctions inside aninterface, which does not compile as-is; treat it as a description of required functions. - Decaying power that is computed lazily in
getVotesmust play well with snapshot-based governors (e.g. checkpointedgetPastVotes); check how your governor reads votes. - Whoever can grant voting units effectively controls the DAO, so that role (often the governor itself) needs careful design.
- Related ideas: soulbound NFTs (ERC-5192) and delegated voting (ERC-5805).