What Happened
CertiK’s analysis describes the March 13, 2023 Euler exploit as combining leveraged positions,donateToReserves without a health check, and liquidation mechanics. The reported approximately $197 million exploit amount is distinct from later recovery valuations. CertiK incident analysis.
Attack Mechanism
Euler allowed users to create leveraged positions by minting matched deposit and debt exposure.donateToReserves then reduced the user’s collateral without running the account health check that normally constrained borrowing and withdrawals.
The attack used a violator account and a liquidator account:
- Build a leveraged deposit/debt position using flash-borrowed funds.
- Donate collateral to reserves, making the violator unhealthy.
- Liquidate that position from the second account at a discount.
- Extract collateral while leaving bad debt with the violator.
getModifiedAccounts cheatcode. The donating account is derived from each call’s caller and Euler subaccount ID, using Euler’s XOR subaccount convention, then queried through the Exec liquidity view.

