0Pricing
Web3 & DApp Development Fundamentals · บทเรียน

โทเค็นธรรมาภิบาล

อำนาจในการลงคะแนน

โทเค็นธรรมาภิบาล เป็นบทเรียน Web3 & DApp Development Fundamentals ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน 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 ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส Web3 & DApp Development Fundamentals ให้อัปเกรดเป็น CoddyKit PRO คอร์ส Web3 & DApp Development Fundamentals มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “โทเค็นธรรมาภิบาล”

อำนาจในการลงคะแนน คุณปฏิบัติ Web3 & DApp Development Fundamentals ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน Web3 & DApp Development Fundamentals หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน Web3 & DApp Development Fundamentals บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน

บทเรียน “โทเค็นธรรมาภิบาล” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน Web3 & DApp Development Fundamentals นี้ได้ไหม

ได้ บทเรียน Web3 & DApp Development Fundamentals ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. DAO คืออะไร
  2. โทเค็นธรรมาภิบาล
  3. ข้อเสนอและการลงคะแนน
  4. ไทม์ล็อกและการดำเนินการ
← กลับไปที่ Web3 & DApp Development Fundamentals