On-chain governance means proposals, votes, and execution all happen directly on the blockchain through smart contracts. When a vote passes, the result is enforced automatically by code, not by trusting someone to follow through. Every vote is publicly recorded, verifiable, and permanent. It contrasts with off-chain governance where votes are advisory and a separate entity executes decisions.

What Is On-Chain Governance?

3 min read

The short version

On-chain governance is binding democracy on the blockchain. When enough people vote yes, the smart contract carries out the decision without any middleman needing to press a button. Off-chain governance is more like a survey: people vote, and then someone (a multisig, a foundation) decides whether to act on it. On-chain removes that human decision layer.

How It Works

Architecture: (1) Governor contract (often OpenZeppelin Governor or Compound Governor): accepts proposals, manages voting periods, enforces quorum and approval thresholds. (2) Timelock contract: adds a delay between vote passing and execution (24-72 hours), giving users time to exit if they disagree. (3) Execution: after the timelock, anyone can call execute() and the proposal's coded actions run. Tradeoffs: On-chain is trustless and transparent but slower (voting periods, timelocks), more expensive (each vote costs gas), and rigid (hard to handle nuanced decisions). Off-chain (Snapshot) is gas-free, faster, and more flexible, but relies on a multisig or team to actually implement results. Many DAOs use a hybrid: Snapshot for temperature checks and non-binding signals, on-chain for binding treasury and parameter changes.

Compound governance changing a collateral factor

A proposal to increase WBTC collateral factor from 70% to 75% on Compound is submitted on-chain by an address holding 65,000 COMP (above the proposal threshold). A 3-day voting period opens. Holders vote with their COMP. Final tally: 420,000 COMP For, 30,000 Against, exceeding the 400,000 quorum. The proposal enters a 2-day timelock. After 2 days, a keeper calls execute(). The Compound Comptroller contract automatically updates the WBTC collateral factor to 75%. No human admin needed to make the change. Every step is traceable on Etherscan.

What People Get Wrong

  • On-chain governance means the community controls everything

    It means the token majority controls whatever parameters the contracts expose to governance. Many protocols have admin functions that are NOT governed (emergency pauses, upgrades behind multisigs). On-chain governance scope varies widely by protocol.

  • On-chain votes cannot be manipulated

    Flash loan governance attacks (borrow tokens, vote, return) have been attempted. Token purchases just before votes (vote buying through market accumulation) are possible. On-chain does not mean manipulation-proof; it means transparent and auditable.

  • All on-chain governance systems work the same

    There are many designs: simple majority, supermajority requirements, conviction voting (strength grows over time), quadratic voting (diminishing returns for large holders), optimistic governance (passes unless vetoed), and time-weighted voting. Each has different properties.

Sources & Further Reading

Questions People Also Ask

Does voting cost gas?
On-chain voting (Compound, Uniswap Governor) costs gas per vote transaction ($5-$50 depending on gas prices). Off-chain voting (Snapshot) is free (signature-based, no transaction needed). This gas cost is why many DAOs use Snapshot for preliminary votes and reserve on-chain for binding final decisions.
What is a governance attack?
Accumulating enough tokens (through purchase or flash loan) to pass a malicious proposal: draining the treasury, changing parameters to benefit the attacker, etc. Timelocks and quorum requirements make this harder but not impossible for well-funded attackers.
Can governance decisions be reversed?
Another governance vote can undo a previous one. But if the action was irreversible (sending funds to an external address, for example), the on-chain action itself cannot be undone. Timelocks exist specifically to give the community time to organize opposition before irreversible execution.

More in DAOs & Governance

See all →
Was this page helpful?

Page last checked