In short: The DAO was a decentralized investment fund created on Ethereum in April 2016. In a month, it captured the equivalent of more than US$ 150 million in Ether from more than 11,000 investors. On June 17, 2016, an attacker exploited a "recursive call" failure in the contract and diverted about 3.6 million ETH, close to $50 million at the time. To return the money, the community approved a hard fork in block 1,920,000, on July 20, 2016. Those who rejected the change kept the original chain, which was renamed Ethereum Classic.
The DAO case in numbers
Few episodes have changed both a cryptocurrency and the attack on The DAO. He tested, even in the first months of Ethereum's life, a question that even today divides the community: what is worth more, the immutability of the record or the correction of an evident error? The answer chosen by the majority created the Ethereum we know today. The minority that disagreed created another network, the Ethereum Classic, which still exists today with another ticker, ETC.
In this text, we tell the story based on the history consolidated in Wikipedia, in the Ethereum Foundation's statement about the Hard Fork and the report that the SEC, the US Securities and Exchange Commission, published a year later. If you are starting, it is worth reading before what is the Ethereum and what are decentralized finance.
The DAO timeline
- April 30, 2016The DAO is launched with its own website and a 28-day collective sale.
- May 10th to 21st, 2016The funding goes from US$ 34 million to more than US$ 150 million in Ether, with more than 11 thousand investors.
- June 2016A vulnerability of recursive calls is publicly pointed out. Fixes are proposed until June 14th.
- June 17, 2016The striker diverts about 3.6 million ETH into a child contract, subject to a 28-day waiting period.
- July 20, 2016Ethereum passes through the hard fork on block 1,920,000. The funds go to a repayment contract.
- July 2016 onwardsThe original chain remains active and is named after Ethereum Classic.
- July 25, 2017The SEC publishes a report concluding that The DAO's tokens were securities.
What was The DAO
DAO is the acronym for decentralized autonomous organization: an entity whose rules are written in a smart contract, a program that runs on blockchain, and not in a traditional status. The DAO, with a definite article in the name, was the first big attempt to bring this idea to the world of investments. Participants sent Ether to the contract and received DAO tokens in return. Then they would vote on which projects the fund should finance, without a central manager.
The idea was born in the Slock.it circle, a German blockchain startup whose founders included the Jentzsch brothers, according to the Wikipedia. Slock.it was, according to reports, one of the co-founders of the Swiss entity DAO.Link, alongside Bity SA. But the background itself was, by design, controlled by the holders of the tokens.
Success was immediate. Launched on April 30, 2016 with a 28-day sale, The DAO already had more than $34 million on May 10, more than $100 million on May 15 and over $150 million in Ether on May 21, coming from more than 11 thousand investors. In May 2016, the fund concentrated almost 14% of all Ether issued until then. For a network that had less than a year of operation, it was a huge concentration of money in a single contract.
The Failure: The Problem of Recursive Calls
The DAO's contract allowed a participant to leave the bottom taking his part of the Ether, through a division function that created a "son DAO". The problem was in the order of operations. The contract first sent the Ether and only then updated the user's balance. A malicious contract could, at the time he received the payment, call the service function again, before the balance was reset. And again, and again.
This type of failure became known as recession, or recursive calling. The vulnerability was publicly pointed out in June 2016, and corrections were proposed until June 14, according to the Wikipedia. But changing the contract required a vote by the holders, and the time was not enough.
The June 17, 2016 attack
On June 17, 2016, the striker exploited the failure and moved about 3.6 million ETH, approximately one-third of the 11.5 million ETH deposited in the fund. For the price of the season, it was about US$ 50 million. The author's identity has not been established in any judicial decision until today, and therefore this text refers to it only as "the attacker".
There was, however, a detail that changed everything. By the rules of the contract itself, the withdrawn Ether ended up in a DAO son subject to a waiting period of 28 days. That is, the money could not be withdrawn immediately. This opened a window for the community to decide what to do. Developers and participants even put together the so-called "Whitehat DAO", an effort to drain the rest of the bottom before other attackers repeated the blow.
The episode also overturned confidence in Ethereum and the price of Ether. To follow the long-term trajectory of the currency, see the Ethereum price history.
The options on the table: Soft Fork, Hard Fork or Nothing
The community discussed three ways:
- Do nothing. Accept the loss as a result of a poorly written contract. For defenders of this line, the rule was the code, and the attacker just used the code as it was written.
- Soft fork. A backward compatible change that would only freeze the attacker's funds without returning them. The idea circulated in the debate, but it was not the path taken.
- Hard fork. An incompatible change that would rewrite the state of the network to move the Ether of the wholesale contract to a repayment contract. Investors could then retrieve Ether in exchange for DAO tokens.
According to Ethereum History Page, the community approved the fork in a vote, with more than 85% in favor, and the new contract had a single withdrawal function, which returned 1 ETH for every 100 DAO tokens.
The difference between the two types of fork is important. In a soft fork, old nodes continue to accept the new blocks. In a hard fork, those who do not update the software start following another chain. We explain this in more detail in our glossary.
The Hard Fork of July 20, 2016
Most chose the Hard Fork, run on July 20, 2016, at 1:20 pm UTC. according to the Announcement from the Ethereum Foundation, Block 1,920,000 contained the execution of "an irregular state change": about 12 million ETH were transferred from the "Dark DAO" and "Whitehat DAO" contracts to the WithdrawDAO reimbursement contract. The statement recorded that about 85% of miners were mining the chain with the fork and that the main software customers in Go, Java and Rust (Parity) were in sync with it.
By the same statement, the repayment contract was already returning the Ether to the token holders: about 4.5 million ETH had already been sent, and about 463,000 ETH were under the curator's control, for extra payments in security review. whoever wanted to follow the chain without fork was instructed to rotate the customer with the option --oppose-dao-fork and to protect against repetition attacks from transactions.
What has changed with Fork
| Aspect | Ethereum (ETH) | Ethereum Classic (ETC) |
|---|---|---|
| Decision on the attack | Reverted the effects by moving the funds for reimbursement | Kept the original record, no change |
| Philosophy | Governance can intervene in exceptional cases | "The Code is the Law": immutability above all |
| Block 1,920,000 | Contains the irregular state change | First block that is not in the altered chain |
| Offer | No fixed ceiling emission | Ceiling of 210.7 million since December 2017 |
| Consensus today | Proof of participation since The Merge, on 09/15/2022 | Proof of work |
The Birth of Ethereum Classic
Not everyone accepted. For a part of the community, changing the history of blockchain to save a specific project set a dangerous precedent: if it was possible once, it could be done again by political or economic pressure. These users continued to mine the original chain. according to Wikipedia, the 1,920,000 block of this chain was the first to not be included in the changed version, and the original network was renamed Ethereum Classic, with Ticker ETC.
Ethereum Classic followed its own path. On December 11, 2017, the Hard Fork Gotham limited the total supply to 210.7 million ETC, with a schedule that lowers the reward per block by 20% every 5 million blocks. The network, being smaller and using proof of work, suffered attacks of 51%: in January 2019, a double spending attack involved about US$ 1.1 million in ETC; In August 2020, a series of deep reorganizations caused an estimated $5.6 million losses, including $1.68 million in centralized brokerages. To understand why smaller networks are more exposed, see our text on mining.
The SEC report: Tokens were securities
The case had a lasting regulatory effect. On July 25, 2017, the SEC published an investigation report concluding that the tokens offered and sold by The DAO were securities subject to US federal laws, according to the official announcement. The commission did not file charges or declared violations, but made it clear that the technology used did not rule out the application of the rules.
The report became a reference in the wave of initial offers of coins (ICOs) that took 2017 and 2018. In Brazil, the topic of tokens that look like collective investment is treated by the CVM; For the current rule scenario, see our guide to Legal framework of cryptocurrencies.
The DAO's legacy for the market
- Contract security has become a priority. Audits, rewards for bugs and scheduling patterns have become commonplace. Even so, failures in contracts follow among the main causes of losses, as shown in the list of biggest crypto hacks.
- The debate about immutability never ended. The question "Should one reverse a theft?" It returned in several later cases, including in other networks.
- DAOs survived. The token governed organization model remains in use in protocols of DeFi, now with more layers of protection, such as execution deadlines and withdrawal limits.
- The regulation entered the game. The SEC report showed that calling something decentralized does not automatically remove securities laws.
The attack on The DAO took place a few weeks before another milestone of crypto security, the Bitfinex hack in August 2016. To compare the two largest networks, also read bitcoin vs Ethereum.
This content is informative and is not an investment recommendation. dollar values refer to the indicated dates.
Frequently asked questions
What was the DAO?
It was a decentralized investment fund created in Ethereum in April 2016. Participants exchanged Ether for DAO tokens and would vote on which projects to finance. In May 2016, the fund already had more than US$ 150 million in Ether from more than 11,000 investors, almost 14% of all Ether issued so far.
How much was stolen in the attack on The DAO?
About 3.6 million ETH, approximately a third of the 11.5 million ETH deposited in the fund, according to Wikipedia. For the price of the time, they were close to $50 million. The funds were imprisoned for 28 days in a son contract, which gave the community time to react.
Why did Ethereum make a hard fork?
To return Ether to investors. On July 20, 2016, in Block 1,920,000, the network moved around 12 million ETH from the wholesale and redemption contracts to the WithdrawDAO contract, which allowed the exchange of DAO Ether. About 85% of miners joined.
What is the difference between Ethereum and Ethereum Classic?
Ethereum (ETH) is the chain that adopted the hard fork and returned the funds. The Ethereum Classic (ETC) is the original chain, maintained by those who argued that the record should not be changed. Today ETC has an offer ceiling of 210.7 million and remains in the proof of work, while Ethereum migrated to proof of participation.
What is a recess attack?
That's when a malicious contract calls the withdrawal function of another contract again before the balance is updated. In The DAO, Ether was sent before the balance was reset, and the attacker repeated the serve several times in the same operation. Today audits check this pattern routinely.
Has the author of the attack on The DAO been identified?
There is no court decision that identifies the author. Therefore, the official sources and this text refer to it only as an attacker. There have been speculations in the press over the years, but no formal charges have been tried.
What did the SEC decide on The DAO?
On July 25, 2017, the SEC published a report concluding that The DAO's tokens were securities subject to US federal laws. The Commission has not filed any charges. The document became a reference for the token offerings of the following years.
References
This content is informative and is not an investment recommendation. found an error? Write to contato@boletimbitcoin.com.