Sub topic 7
From Proposal to Execution: Voting, Quorum, and Timelocks
This chapter assumes you understand wallets, smart contracts, ERC-20 balances, and basic transaction flow. It focuses on how an on-chain governance proposal becomes an executed change.
The governance pipeline
A governance system usually separates decision-making into four stages:
- Proposal: An address with enough delegated voting power submits actions, such as changing a contract parameter or transferring funds.
- Voting: Eligible voters choose for, against, or sometimes abstain.
- Queueing: If the vote passes, the proposal enters a timelock.
- Execution: After the delay, anyone can execute the approved actions.
A proposal normally contains a fixed list of target addresses, function calls, and encoded arguments. The governance executor performs those calls only if the proposal passes. This makes the proposal itself a reproducible description of the intended change.
Quorum and approval
Quorum is the minimum voting power that must participate for a vote to be valid. It may be defined as a fixed number of tokens or as a percentage of total voting power.
A proposal can therefore fail in two different ways:
- It receives enough participation, but more voting power opposes it.
- It receives too little participation to reach quorum, even if every submitted vote supports it.
Many systems count for + against + abstain toward quorum, while only for and against determine the majority. The exact rule belongs to the governance contract and should never be assumed from the user interface.
| Rule | Purpose | Common error |
|---|---|---|
| Voting delay | Gives the system time to notice a proposal | Treating creation as the voting start |
| Voting period | Defines when votes are accepted | Voting after the deadline |
| Quorum | Requires sufficient participation | Confusing quorum with approval |
| Majority threshold | Determines whether support wins | Ignoring abstain handling |
| Timelock delay | Gives observers time before execution | Assuming passage means immediate execution |
Timelocks and execution
A timelock is a contract that delays approved actions. After a successful vote, the proposal is queued with an execution timestamp. Before that timestamp, authorized parties may be able to cancel it, depending on the design. After the timestamp, anyone may call execute.
The delay protects users from instant changes. They can inspect the queued transaction and withdraw funds or reduce exposure before execution. It does not make governance safe by itself. A malicious majority can still approve harmful actions after the delay.
def proposal_passes(for_votes, against_votes, abstain_votes, quorum):
participation = for_votes + against_votes + abstain_votes
reached_quorum = participation >= quorum
approved = for_votes > against_votes
return reached_quorum and approved
print(proposal_passes(620, 100, 80, 700)) # True
print(proposal_passes(400, 20, 10, 700)) # FalseCommon failure modes
Check the implementation for these errors:
- Wrong voting snapshot: If current balances are used instead of balances at a proposal-specific block, tokens can be bought after the proposal starts to influence the result.
- Flash-loan voting: Voting power that can be borrowed for one transaction can make a vote economically meaningless unless snapshots or other protections exist.
- Unclear execution authority: A proposal may pass but remain unexecuted if nobody can or wants to call the execution function.
- Timelock bypass: An administrator or upgrade key may be able to change the executor, cancel proposals, or act without a vote.
- Parameter mismatch: The displayed proposal description may differ from the encoded target, function, or arguments.
Exercise
A proposal receives 500 votes for, 100 against, and 50 abstain. Its quorum is 700. Does it pass if abstain votes count toward quorum?
Show answer
Yes. Participation is 650, so it does not reach quorum. It fails even though votes for exceed votes against.