Level 4 · Money and marketsThe gold rush#291

Governance tokens and DAOs: one token, one vote, and votes can be borrowed

A governance token gives its holders votes on how a protocol changes and how its treasury is spent; the group that votes is called a DAO. Votes follow money, so whoever gathers enough tokens, even for a moment, can steer it, and a court has held a DAO liable under US commodities law.

Every boomtown eventually holds a meeting. Who pays for the new well? Who gets to dig by the creek? Usually the men with the biggest claims did most of the talking.

DeFi made that literal. Hold the token, get the vote. Hold more tokens, get more votes.

That is a governance token, and the meeting is a DAO. It sounds like democracy. It is closer to a shareholders' meeting where anyone can borrow a mountain of shares for one afternoon.

What it is

A governance token is a token that carries voting rights over a protocol: its fees, its parameters, which code it upgrades to and how its treasury is spent. A DAO, a decentralised autonomous organisation, is the group of holders plus the smart contracts that count their votes and carry out what passes.

Compound's documentation shows the usual machinery. Each COMP token is one vote, which holders delegate to themselves or someone else. "Addresses delegated at least 25,000 COMP can create governance proposals." Voting lasts three days after a two-day review, a proposal needs a majority and at least 400,000 votes in favour, and a passed change waits two more days in a timelock before it runs (Compound Docs, Governance). That minimum is the quorum.

How it works: the Beanstalk vote

Beanstalk was a protocol on Ethereum whose voting power, called Stalk, came from tokens deposited in its "Silo". Normal proposals waited seven days. An emergency function let a proposal run after one day if it had a two-thirds supermajority.

Here is what happened, as told by Beanstalk's own incident page and a breakdown by DeFi Safety's Nicolas Vyncke (Beanstalk; DeFi Safety):

  • 16 April 2022: an address swaps 73 ether for 212,858 BEAN and deposits them, enough to submit proposals. It submits BIP-18 and a companion that appears to donate $250,000 to Ukraine.
  • 17 April 2022, about a day later: in one transaction, it takes a flash loan of roughly $1 billion in stablecoins and BEAN from Aave, turns it into deposits, and holds about 70% of all Stalk.
  • Same transaction: 70% clears the two-thirds bar. It calls the emergency function, BIP-18 executes, and the Silo's assets go to the attacker. It repays the flash loan.

Beanstalk put the theft at about $77 million in "non-Beanstalk user assets", at roughly 12:24pm UTC on 17 April. DeFi Safety estimated the attacker kept 24,830 wrapped ether, about $76 million at the time.

No code was broken. The vote was counted correctly. It was simply bought, with money that existed for a few seconds.

Why it matters

Governance tokens decide real things: whether a fee goes to holders, which collateral a lending market accepts, who controls a treasury. Whoever holds the votes holds the strongbox key.

The sheriff takes an interest too. On 22 September 2022, the CFTC fined bZeroX, the company behind the bZx protocol, $250,000 and sued its successor, the Ooki DAO. Its order found the DAO was "an unincorporated association" whose active members included the founders (CFTC, 22 September 2022).

On 9 June 2023, the CFTC announced that US District Judge William H. Orrick had ordered the Ooki DAO to pay a civil penalty of $643,542, shut its website and stop trading, and had held that the Ooki DAO "is a 'person' under the Commodity Exchange Act" (CFTC, 9 June 2023). A DAO is not a magic legal shield. In this case it was treated as a group whose members can answer for it.

Where people get it wrong

  • "It's decentralised, so nobody is in charge." Voting power is often concentrated in a few wallets: early investors, the team, exchanges, delegates.
  • "Governance tokens are like shares." They usually give votes, not a legal claim on profits or assets. Read what yours actually grants.
  • "A vote that passed must be legitimate." Beanstalk's passed with a two-thirds majority, of borrowed votes.
  • "Low turnout is harmless." The lower the turnout, the cheaper it is to reach quorum alone.
  • "No company, no liability." The Ooki DAO judgment says otherwise, at least under US commodities law.

Check the timelock and the top holders

Before you trust a protocol run by a DAO, check two things on its governance page or a block explorer. How long does a passed proposal wait before it runs? And how many wallets would it take to reach quorum?

A long timelock gives users time to leave before a bad change lands. A quorum reachable by three wallets is not a town meeting.

In the boomtown, the loudest man at the meeting usually owned the most claims. In DeFi, he may only have rented them.

Frequently asked questions

What is a governance token?

A governance token is a crypto token that gives its holder votes on decisions about a protocol, such as fee changes, upgrades and treasury spending. Usually one token equals one vote, and holders can delegate their votes to someone else.

What is a DAO in crypto?

A DAO, or decentralised autonomous organisation, is a group that makes decisions by token vote, with smart contracts that record proposals, count votes and carry out the results. Many DeFi protocols are governed this way.

What is quorum in DAO voting?

Quorum is the minimum number of votes a proposal needs for the result to count. Compound, for example, requires a majority and at least 400,000 votes in favour. If turnout is low, a small group can reach quorum on its own.

What happened in the Beanstalk governance attack?

On 17 April 2022, an attacker used a flash loan of about $1 billion to gain roughly 70% of Beanstalk's voting power for a single transaction. That passed an emergency proposal that sent the protocol's assets to the attacker, who repaid the loan and kept about $76 million to $77 million, according to Beanstalk and DeFi Safety.

Can a DAO be sued?

In the US, yes. In June 2023 a federal court held the Ooki DAO to be a "person" under the Commodity Exchange Act and ordered it to pay a $643,542 penalty in a case brought by the CFTC.

Sources

  1. Compound Docs, Governance (v2)
  2. Beanstalk Farms, BIP-18 incident page (April 2022)
  3. DeFi Safety (Nicolas Vyncke), The Beanstalk $BEAN exploit (20 April 2022)
  4. CFTC, Release 8590-22: CFTC imposes $250,000 penalty against bZeroX, LLC and its founders and simultaneously files action against successor Ooki DAO (22 September 2022)
  5. CFTC, Release 8715-23: Statement on the Ooki DAO default judgment (9 June 2023)

Read next.