0Pricing
Web3 & DApp Development Fundamentals · 课时

治理令牌

投票权

治理令牌 是 CoddyKit 上的免费 Web3 & DApp Development Fundamentals 课时。 这是第 2 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Web3 & DApp Development Fundamentals 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Web3 & DApp Development Fundamentals 课程共包含 4 节课。

本课时的部分内容尚未翻译,以英文显示。

What Is a Governance Token?

A governance token is an ERC-20 token that grants its holder the right to participate in a DAO's decisions.

It converts ownership into voting power, aligning influence with stake in the organization.

Voting Power

In the simplest model, one token equals one vote. A holder of 1,000 tokens has ten times the weight of a holder of 100.

This ties decision-making to economic exposure to the protocol.

votingPower(address) = token.balanceOf(address)
// 1 token = 1 vote

ERC-20 Votes Extension

OpenZeppelin provides ERC20Votes, which adds vote tracking to a standard token.

It records historical balances so votes can be counted at a specific block, preventing double-voting by moving tokens.

contract GovToken is ERC20, ERC20Votes {
    constructor() ERC20("Gov", "GOV") {}
}

Snapshots and Checkpoints

To vote fairly, the system records a snapshot of balances at the block a proposal was created.

This checkpoint stops someone from buying tokens after a proposal starts just to swing the result.

votingPower = token.getPastVotes(
    voter,
    proposalSnapshotBlock
);

Delegation

Holders can delegate their voting power to themselves or to another address (a trusted expert).

Crucially, in many systems you must delegate even to yourself before your tokens count as votes.

token.delegate(msg.sender);   // self-delegate
token.delegate(expertAddress); // delegate to another

Why Delegation Helps

Delegation combats voter apathy. Passive holders can hand their power to active, informed delegates.

It concentrates expertise without forcing every holder to research every proposal.

Token Distribution Matters

How tokens are distributed shapes governance health:

  • Concentrated — a few whales dominate (plutocracy)
  • Broad — many small holders, more decentralized

Airdrops and vesting schedules are used to spread ownership.

Quorum

A quorum is the minimum total voting power that must participate for a vote to be valid.

Without a quorum requirement, a tiny minority could pass proposals during periods of low turnout.

if (totalVotes < quorum) {
    proposal fails (not enough participation)
}

Beyond One-Token-One-Vote

Some DAOs use alternative models to curb whale dominance:

  • Quadratic voting — cost grows with the square of votes
  • Reputation-based — non-transferable influence
  • Conviction voting — power grows with time committed

Vote-Escrowed Tokens

Protocols like Curve use vote-escrow (veToken) models: lock tokens longer to gain more voting power.

This rewards long-term commitment and discourages short-term governance attacks.

lock 1000 tokens for 4 years
-> maximum veToken voting power
lock for 1 year
-> reduced power

Putting It Together

Governance tokens turn ownership into voting power, tracked via snapshots and made flexible through delegation. Quorums and alternative models keep governance fair and resistant to manipulation.

Next we build proposals and voting with Governor contracts.

Quick Check

Test your governance token knowledge.

Recap: Governance Tokens

You learned that:

  • Governance tokens grant voting power (often 1 token = 1 vote)
  • ERC20Votes tracks historical balances via snapshots
  • Delegation lets holders assign their power
  • Quorum ensures enough participation
  • Alternatives like quadratic and veToken models curb whales

Next: proposals and voting.

常见问题解答

「治理令牌」课时是免费的吗?

是的 — 「治理令牌」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Web3 & DApp Development Fundamentals 课程的其余内容,请升级到 CoddyKit PRO。 Web3 & DApp Development Fundamentals 课程共包含 4 节课。

「治理令牌」这节课中我会学到什么?

投票权 你通过在浏览器中直接运行的动手代码来练习 Web3 & DApp Development Fundamentals,全天候 AI 导师会在你学习这节课的过程中回答你的问题。

学习 Web3 & DApp Development Fundamentals 需要有经验吗?

无需任何先前经验。CoddyKit 上的 Web3 & DApp Development Fundamentals 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 2 节课,共 4 节。

「治理令牌」课时需要多长时间?

大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。

我能在这节 Web3 & DApp Development Fundamentals 课中编写并运行代码吗?

能。每节 Web3 & DApp Development Fundamentals 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。

此课程中的所有课时

  1. 什么是 DAO
  2. 治理令牌
  3. 提案与投票
  4. 时间锁与执行
← 返回 Web3 & DApp Development Fundamentals