Worked example · 2020-09
Eminence DeFi flash-loan exploit — Ethereum — 2020-09-28 to 2020-09-29
Summary
Eminence (EMN) was an NFT gaming ecosystem still in development, with contracts deployed from Yearn.finance founder Andre Cronje's deployer address around 2020-09-28: the EMN token, a GIL (GP) token, and "eTokens" representing coins such as YFI, AAVE, SNX and CRV [cryptoslate1]``[defiant1]. Cronje said the project was at least three weeks from launch and that he "tests in production"; there was no official website or announcement [cryptoslate1].
As social-media attention grew, deposits into the EMN contract rose from about $3M to $12M within an hour or two. A bug in the bonding curve let a user buy tokens up a curve that became extremely steep; the exploiter used a flash loan to buy repeatedly, then sold into the curve, draining DAI from the pool in three successive transactions, about $15M in all, to a single address within about three minutes [cryptoslate1]. About $8M was then sent back to Cronje [cryptoslate1].
Timeline
| When | Event | OAK ref |
|---|---|---|
| 2020-09-28 | Staging contracts for EMN/eTokens deployed from the Yearn deployer address; deposits grow from ~$3M to ~$12M | (surface created) |
| 2020-09-28/29 | Flash-loan bonding-curve exploit drains ~$15M DAI in about three minutes | T5.002 execution |
| 2020-09-29/30 | ~$8M sent back to Cronje | (partial return) |
What this example tells contributors writing future Technique pages
- Bonding-curve pricing flaws exploited with flash loans are a distinct sub-pattern from oracle manipulation; consider whether T9.001 is the right primary mapping.
- Mainnet "testing" with real deposits and public attention creates a live attack surface regardless of announcement status
[cryptoslate1].
Public references
[cryptoslate1]— CryptoSlate, "DeFi darling Yearn.finance (YFI) deployed a new token — then $15m was stolen" (2020-09-30): https://cryptoslate.com/?p=173032[defiant1]— The Defiant, "Andre Cronje Diehards Take 'Test in Prod' Over The Edge With $15M Hack" (2020-09-30): https://thedefiant.io/andre-cronje-diehards-take-test-in-prod-over-the-edge-with-15m-hack/- Cross-reference: T9.001 (Oracle Price Manipulation) at
techniques/T9.001-oracle-price-manipulation.md. - Cross-reference: T5.002 (Flash Loan Liquidation / Drain) at
techniques/T5.002-flash-loan-liquidation-drain.md.