The Euler Finance hack was the theft of about $197 million from Euler, a lending protocol on Ethereum, on 13 March 2023.22 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 2024 The attacker exploited a function added in a 2022 upgrade that let an account donate its collateral without checking that it remained solvent.44 Rekt · Euler Finance - REKT · 14 March 2023 Over the following three weeks the attacker returned the funds, and Euler said that all recoverable money had come back.55 CoinDesk · Euler Says All 'Recoverable Funds' Stolen in $200M Hack Have Been Returned · 3 April 2023 We read the Euler contract before and after the attack and counted $198.2 million taken in six tokens; the DAI that stayed on the attacker's address afterward matches to the dollar the DAI Euler later paid out to users.3·63 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 20266 Euler DAO forum · Plan for Redemption of Euler Funds V2 · 12 April 2023
How lending protocols and their liquidations work is covered on our page on decentralized lending and borrowing.
Timeline
| Date (UTC) | Event |
|---|---|
| 2022 | Upgrade eIP-14 adds the donateToReserves function44 Rekt · Euler Finance - REKT · 14 March 2023 |
| 13 Mar 2023, 08:50:59 | First attack transaction, about $8.8 million of DAI, block 16,817,9961·21 Etherscan · Transaction 0xc310a0af…6b111d, block 16817996 · 13 March 20232 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 2024 |
| 13 Mar, 08:56–09:10 | Further transactions drain the other markets22 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 2024 |
| 14 Mar | Sherlock agrees to pay Euler a $4.5 million claim1010 The Block · Crypto auditor Sherlock to pay out $4.5 million to Euler Finance after exploit · 14 March 2023 |
| 17 Mar | 100 ETH sent from an attacker address to the address of the Ronin bridge exploiter2·72 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 20247 Etherscan · Transaction 0x202a67d3…2bd457 (100 ETH to the Ronin Bridge Exploiter address) · 17 March 2023 |
| 18 Mar | First return: 3,000 ETH22 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 2024 |
| 25 Mar | 51,000 ETH returned22 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 2024 |
| 3 Apr | Last returns: 12 million DAI and about 10,580 ETH2·112 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 202411 The Block · Euler hacker returns $31 million, marking end to 'recoverable funds' in DeFi exploit · 4 April 2023 |
| 12 Apr | Users can redeem recovered funds88 CoinDesk · Euler Finance Lets Users Redeem Recovered Funds Following $200M Theft · 12 April 2023 |
| 4 Sep 2024 | Euler v2 launches99 The Block · Euler returns to launch v2 modular DeFi lending protocol following 31 audits post-$197 million hack · 4 September 2024 |
How the attack worked
Euler let users take leveraged positions by minting eTokens (deposits) and dTokens (debt). In each step the attacker took a flash loan of DAI from Aave, deposited it, borrowed against it several times over, then called donateToReserves to give away a large part of the deposit.1·41 Etherscan · Transaction 0xc310a0af…6b111d, block 16817996 · 13 March 20234 Rekt · Euler Finance - REKT · 14 March 2023 The function reduced the account's collateral without checking whether its health factor remained above one. The account was now insolvent, and a second contract controlled by the attacker liquidated it; Euler's liquidation discount for deeply insolvent accounts let the liquidator take collateral worth more than the debt it repaid.44 Rekt · Euler Finance - REKT · 14 March 2023 The profit was withdrawn, the flash loan repaid, and the same pattern repeated in each market.
Sherlock, which had reviewed the eIP-14 change, accepted a $4.5 million claim the day after the attack.4·104 Rekt · Euler Finance - REKT · 14 March 202310 The Block · Crypto auditor Sherlock to pay out $4.5 million to Euler Finance after exploit · 14 March 2023
Our on-chain count
The main Euler v1 contract holds the reserves of all its markets. We read its token balances in the block before the first attack transaction and three hours later, using an archive node.33 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 2026
| Token | Before (block 16,817,995) | Three hours later | Price on 13 March | Value, $ million |
|---|---|---|---|---|
| wstETH | 66,271.5 | 0.0 | $1,771.31 | 117.4 |
| USDC | 34,413,863 | 2 | $0.987 | 34.0 |
| WBTC | 849.14 | 0.01 | $22,305 | 18.9 |
| WETH | 8,099.3 | 0.98 | $1,592.12 | 12.9 |
| DAI | 8,904,507 | 0 | $0.989 | 8.8 |
| stETH | 3,897.5 | 0 | $1,594.09 | 6.2 |
| Total | 198.2 |
Source: archive RPC, prices from DefiLlama; our calculation.33 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 2026
Our $198.2 million agrees with Euler's $197 million.22 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 2024 USDC was trading below a dollar that morning because of the USDC depeg after the failure of Silicon Valley Bank. The contract also lost 2.08 million USDT and 128,366 LINK in those hours, which do not appear in the attacker's lists, so we leave them out of the total.33 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 2026
Three hours after the attack two of the attacker's addresses held 96,737 ETH and 43.06 million DAI.33 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 2026 Euler's redemption plan later distributed 95,556.36 ETH and 43,063,729 DAI.66 Euler DAO forum · Plan for Redemption of Euler Funds V2 · 12 April 2023 The DAI matches to the dollar, and the ETH differs by about 1,180, roughly what went to Tornado Cash and to the Ronin exploiter address.
The return of the funds
| Date, 00:00 UTC | ETH on the four addresses | Change |
|---|---|---|
| 14 Mar | 96,737 | |
| 17 Mar | 95,637 | −1,100 moved towards Tornado Cash |
| 18 Mar | 95,537 | −100 to the Ronin exploiter address |
| 19 Mar | 92,537 | −3,000 returned on 18 March |
| 26 Mar | 10,586 | Main address emptied, 51,000 ETH returned on 25 March |
| 4 Apr | 6 | Last 8,080 and 2,500 ETH returned on 3 April |
Source: archive RPC, our calculation.2·32 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 20243 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 2026
The attacker first moved 100 ETH to the address that had received the Ronin bridge funds in 2022, which the US Treasury has linked to North Korea's Lazarus Group.77 Etherscan · Transaction 0x202a67d3…2bd457 (100 ETH to the Ronin Bridge Exploiter address) · 17 March 2023 Euler Labs reports that an encrypted message later came from that address.22 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 2024 Beyond this transfer we see nothing in the data that links the two attacks.
Euler offered a 10% bounty and threatened a $1 million reward for information leading to an arrest if 90% of the funds were not returned.2·112 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 202411 The Block · Euler hacker returns $31 million, marking end to 'recoverable funds' in DeFi exploit · 4 April 2023 On-chain messages from the attacker followed: on 20 March "No intention of keeping what is not ours", and on 3 April "Going for it" before the last returns.22 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 2024 Between 25 March and 3 April the ETH moved back through intermediate addresses; the four named addresses were empty by 4 April.33 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 2026 Euler Labs said that "all of the recoverable funds" had been returned.55 CoinDesk · Euler Says All 'Recoverable Funds' Stolen in $200M Hack Have Been Returned · 3 April 2023 No arrest or charge has been announced.
Users repaid
Redemptions opened on 12 April 2023, through a contract that paid each user a share of 95,556 ETH and 43.06 million DAI according to a snapshot of balances; protocol reserves were excluded.6·86 Euler DAO forum · Plan for Redemption of Euler Funds V2 · 12 April 20238 CoinDesk · Euler Finance Lets Users Redeem Recovered Funds Following $200M Theft · 12 April 2023 ETH rose from $1,592 at the time of the attack to about $1,810 on 4 April, so the recovered funds were worth more than what was taken: Euler later spoke of a $240 million recovery.2·32 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 20243 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 2026 Sherlock's payment of about $4.4 million went into the DAO treasury.66 Euler DAO forum · Plan for Redemption of Euler Funds V2 · 12 April 2023
Euler returned with a rebuilt protocol, Euler v2, on 4 September 2024, after 31 audits.99 The Block · Euler returns to launch v2 modular DeFi lending protocol following 31 audits post-$197 million hack · 4 September 2024
Our assessment
The Euler hack is a textbook case of a function that broke an invariant. Every account in a lending protocol must stay solvent after each action; donateToReserves was the one path that skipped the check, and it had passed review. The return of the funds is rarer than the bug: our balances show the attacker kept the ETH untouched for days, then gave back nearly everything except what had already gone through a mixer.33 AlgoSys · Euler Finance hack, 13 March 2023: what left the contract and how it came back (PDF) · 6 December 2026 The same month, the USDC depeg showed DeFi users a second kind of risk, from the collateral itself.
Commonly repeated mistakes
- "3,000 ETH went to the North Korean hackers." 3,000 ETH was the first return; the Ronin exploiter address received 100 ETH.2·72 Euler Labs · War & Peace: Behind the Scenes of Euler's $240M Exploit Recovery · 10 January 20247 Etherscan · Transaction 0x202a67d3…2bd457 (100 ETH to the Ronin Bridge Exploiter address) · 17 March 2023
- "The flash loan was the bug." Flash loans supplied the capital; the flaw was the missing solvency check.44 Rekt · Euler Finance - REKT · 14 March 2023
- "Users lost $197 million." Most of it came back; the redemption plan distributed 95,556 ETH and 43.06 million DAI.66 Euler DAO forum · Plan for Redemption of Euler Funds V2 · 12 April 2023