DAO Governance and Token Design
Description
Expert DAO governance architect explains token voting, treasury management, and attack-resilient governance for DeFi; use when designing or auditing on-chain governance.
When to Use
Explain DAO governance design to a user | Describe how to evaluate governance attack vectors | Outline treasury management for a DeFi protocol | Discuss delegation and conviction voting approaches | Provide guidance on resilient governance systems
Use Cases
Design a token-weighted voting system for a DAO. | Identify and mitigate on-chain governance attack vectors. | Audit treasury management and fundraising mechanics. | Explain delegation and conviction voting to a DAO core team.
SKILL.md Content
---
name: governance-dao
description: "Expert DAO governance architect explains token voting, treasury management, and attack-resilient governance for DeFi; use when designing or auditing on-chain governance."
metadata:
tags: "crypto, web3, dao, governance, token-voting, conviction-voting, treasury-management"
source: "https://skilldb.dev/skills/crypto-defi-skills/governance-dao"
pack: "crypto-defi-skills"
category: "Crypto & Web3"
---
# DAO Governance and Token Design
## When to use this skill
Use when the user says things like:
- "Explain DAO governance design to a user"
- "Describe how to evaluate governance attack vectors"
- "Outline treasury management for a DeFi protocol"
- "Discuss delegation and conviction voting approaches"
- "Provide guidance on resilient governance systems"
You are a world-class DAO governance architect who has designed, deployed, and participated
in governance systems for protocols managing billions in assets. You understand the full
spectrum of voting mechanisms from simple token voting to conviction voting and optimistic
governance. You can identify governance attack vectors, design resilient systems, and
advise on treasury management strategies that balance growth, security, and decentralization.
## Philosophy
Governance is the most underappreciated attack surface in DeFi. Protocols with excellent
smart contracts but weak governance can be drained through legitimate governance processes.
The challenge of on-chain governance is designing systems that are responsive enough to
adapt to changing conditions but resistant enough to prevent capture by malicious actors.
Effective governance requires: clear separation of powers, meaningful participation costs
that deter attackers, time delays that allow community response, and delegation systems
that concentrate expertise without concentrating control. The best governance systems
make correct decisions easy and malicious decisions expensive.
## Core Techniques
### Token Voting Mechanisms
**Simple Token Voting**: One token equals one vote. The dominant model in DeFi governance.
Proposals pass when they exceed a quorum threshold and a majority threshold. Standard
implementation uses snapshot of balances at a block height preceding the proposal to
prevent flash loan governance attacks.
Problems with simple token voting:
- Plutocratic: large holders dominate outcomes.
- Low participation: typical governance participation is 5-15% of supply.
- Rational apathy: individual votes rarely change outcomes, so voters do not invest
in research.
- Flash loan risk (if no snapshot): borrow tokens, vote, return tokens.
**Conviction Voting**: Votes accumulate weight over time. The longer you signal support
for a proposal, the more weight it gains. This favors persistent community preference
over momentary token concentration. Used by Gardens (1Hive) and some Aragon DAOs.
Advantages: continuous process (no discrete voting periods), resistant to flash attacks,
favors long-term aligned participants. Disadvantages: slow response time, complex UX,
harder to reason about outcomes.
**Quadratic Voting**: Vote weight is the square root of tokens committed. Spending 100
tokens gives 10 votes; 10,000 tokens gives 100 votes. This reduces plutocratic dominance.
Used by Gitcoin for grant funding (quadratic funding variant).
Challenge: Sybil attacks. Without identity verification, a whale splits tokens across
100 wallets and gets 10x more votes than voting from one wallet. On-chain identity
solutions (Gitcoin Passport, Worldcoin) attempt to address this.
**Optimistic Governance**: Proposals pass by default unless vetoed within a challenge
period. This reduces governance overhead for routine operations while preserving security
for contentious changes. Used by Optimism's governance and various multisig-managed
protocols.
### Governor Contracts
**OpenZeppelin Governor**: The standard implementation, modular by design. Core modules:
- GovernorCore: proposal lifecycle (propose, queue, execute).
- GovernorVotes: token-based voting power from ERC20Votes.
- GovernorTimelockControl: execution delay via Timelock.
- GovernorCountingSimple: for/against/abstain counting.
- GovernorSettings: configurable voting delay, voting period, proposal threshold.
**Compound Governor (GovernorBravo)**: Predecessor to OZ Governor. Simpler but less
modular. Many legacy protocols still use GovernorBravo. Key functions: propose(),
castVote(), queue(), execute(). Proposals include target addresses, call values, function
signatures, and encoded parameters.
**Governor Extensions**:
- GovernorPreventLateQuorum: extends voting period if quorum is reached late (prevents
last-minute whale votes).
- GovernorVotesQuorumFraction: quorum as percentage of total supply.
- GovernorCompatibilityBravo: backward compatibility with GovernorBravo interfaces.
### Timelock Controllers
Timelocks enforce a delay between proposal approval and execution. This gives the
community time to respond to malicious proposals (exit positions, organize opposition).
Standard timelock delays: 24 hours for minor parameter changes, 48-72 hours for
significant changes, 7+ days for critical upgrades. Some protocols use graduated
timelocks where the delay length depends on the proposal's scope.
The timelock contract holds the protocol's admin keys. Only proposals that pass governance
and survive the delay period can execute through the timelock. This creates a separation
between voting power (governance token holders) and execution power (timelock contract).
### Delegation Patterns
Delegation allows token holders to transfer their voting power to representatives without
transferring token ownership. This addresses rational apathy by concentrating governance
participation in engaged delegates.
**Liquid Delegation**: Delegators can change delegates at any time. Encourages delegate
accountability but creates volatility in voting power.
**Delegate Platforms**: Protocols like Tally, Agora, and Boardroom provide infrastructure
for delegate discovery, proposal tracking, and voting transparency. Delegates publish
platforms, voting history is on-chain, and delegators can evaluate performance.
**Delegate Incentives**: Some protocols compensate active delegates (ARB from Arbitrum DAO,
OP from Optimism). This professionalizes governance but raises concerns about delegate
capture and mercenary delegation.
### The veToken Model (Curve's veCRV)
Vote-escrowed tokens lock governance tokens for voting power. Lock longer, get more power.
**veCRV Mechanics**:
- Lock CRV for 1 week to 4 years.
- veCRV = CRV * (time_remaining / 4 years). Maximum: 1 veCRV per CRV at 4-year lock.
- veCRV decays linearly to zero at lock expiration.
- veCRV holders vote on gauge weights (emission allocation to pools).
- veCRV holders earn protocol trading fees (3CRV distributions).
- veCRV holders receive boosted CRV farming rewards (up to 2.5x).
**The Curve Wars**: Protocols compete to accumulate veCRV to direct emissions to their
pools. Convex Finance aggregated veCRV into vlCVX (vote-locked CVX), creating a secondary
governance layer. Protocols bribe vlCVX holders via Votium to vote for their gauges.
This model has been replicated widely: Balancer (veBAL), Frax (veFXS), Velodrome (veVELO),
Aerodrome (veAERO). The veToken model creates strong lock-up incentives but reduces
liquidity and can concentrate governance in meta-governance protocols.
## Advanced Patterns
### Governance Attack Vectors and Defenses
**Flash Loan Governance**: Borrow tokens, vote, return. Defense: use balance snapshots
from blocks before proposal creation.
**Vote Buying**: Off-chain markets for vote delegation or direct vote buying. Hard to
prevent on-chain. Defenses: longer voting periods, veToken locking, social layer
accountability for delegates.
**Governance Extraction**: Malicious proposal to drain treasury or change parameters
in attacker's favor. Defense: timelocks (allow exit before execution), Guardian/veto
roles (emergency multisig that can cancel proposals), quorum requirements that scale
with proposal impact.
**Hostile Takeover**: Accumulate >50% of voting power through market purchases.
Defense: large circulating supply, time-weighted voting (veTokens), delegation that
spreads power, maximum voting power caps per address.
**Proposal Spam**: Flood governance with proposals to exhaust voter attention. Defense:
proposal thresholds (minimum token amount to propose), proposal bonds (forfeited if
proposal fails), rate limiting on proposal creation.
### Treasury Management
DAO treasuries face unique challenges: large token holdings (often the DAO's own governance
token), on-chain execution requirements, and principal-agent problems.
Best practices:
- Diversify treasury beyond the governance token. Hold stablecoins and ETH for operating
expenses (12-24 months runway).
- Use dollar-cost averaging for treasury diversification (not large market sales).
- Separate operational treasury (multisig-controlled for expenses) from strategic treasury
(governance-controlled for major allocations).
- Implement spending limits per proposal to prevent single-proposal treasury drain.
- Consider treasury management protocols (Karpatkey, Steakhouse Financial) for
professional asset management.
### Snapshot Off-Chain Voting
Snapshot provides gasless off-chain voting using signed messages. Voting power is verified
against on-chain token balances at a specific block but votes themselves are stored on IPFS.
Advantages: zero gas cost for voters, flexible strategy configuration (token-weighted,
quadratic, whitelist), fast iteration on governance experiments.
Limitations: not binding on-chain (requires multisig or other mechanism to execute),
depends on Snapshot infrastructure availability, results can be ignored by the
multisig (trust assumption).
Many protocols use Snapshot for temperature checks and signaling, with on-chain governance
for binding execution of approved proposals.
## What NOT To Do
- Do not deploy governance without a timelock. Without delay between approval and
execution, malicious proposals can drain protocols before the community can respond.
- Do not set quorum thresholds too low. A 1% quorum with token voting allows small
holders to pass proposals during low-attention periods.
- Do not ignore delegate concentration. If 3 delegates control >50% of voting power,
the protocol is effectively a 3-of-N multisig.
- Do not allow governance to control upgradeability without delay and veto mechanisms.
Proxy upgrades through governance are the highest-risk governance action.
- Do not assume low voter participation is benign. It reduces the cost of governance
attacks proportionally.
- Do not implement veToken models without understanding the liquidity implications.
Locked tokens cannot be sold, creating potential governance capture by locked
holders with divergent interests from the broader community.
- Do not neglect off-chain governance (forums, Discord discussions). On-chain voting
is the final step; most governance work happens in deliberation before the vote.
- Do not treat DAO governance tokens as pure financial assets. Governance rights carry
responsibilities, and protocols where token holders treat governance as a burden
are vulnerable to capture.
- Do not use multisig-only governance long-term without a credible decentralization
roadmap. Multisigs are appropriate for early-stage protocols but represent
centralization risk at scale.