23
A Robbery by the Rules
illustrationEvery religion sooner or later reaches the day when its sacred text collides with the interests of the flock, and the priests have to decide which matters more. For Ethereum that day came a year after the network launched. The sacred text was the phrase “code is law,” and on that day the flock was robbed in strict compliance with that law.
In the spring of 2016 The DAO, a decentralized autonomous organization, was launched on Ethereum. It was conceived as a venture fund without managers. People sent ether into a smart contract and received tokens, and the tokens gave them the right to vote on which projects the fund would invest in. The fund had no director, no investment committee and no office; there was only the code, written by the German company Slock.it, and the rule that the holders’ vote decided everything. In a month of sales The DAO raised more than 11 million ether, about $150 million. At the time it was the largest crowdfunding in history.
The fund’s code had been reviewed and praised, and everyone understood that enormous money sat inside it. In early June several developers publicly warned that there was a dangerous spot in the withdrawal mechanism. While the creators were preparing a fix, someone used it.
On June 17, 2016, someone unknown began draining ether from The DAO. The contract sent money to a participant leaving the fund and only afterwards recorded that the money had been sent. The attacker arranged things so that, at the moment of receiving the money, his own program called the withdrawal again and again, and the contract, not yet having updated its record, paid out anew each time. That way the same money could be taken from one account many times, like an ATM that hands out cash but forgets to debit the account. Within a few hours about 3.6 million ether, roughly a third of the fund, worth more than $50 million at the time, went to a separate child contract.
The attacker could not take them out right away. Under The DAO’s own rules, money could be withdrawn from a child contract only after twenty-eight days. The community had four weeks to decide what to do.
After sign-in
The rest of the book is for signed-in readers
Sign in with INITE or create an account. It takes a minute, and the book opens right here.