Happy Monday, Blockworks fam! Another day, another DeFi hack. Not feeling very GM today.
Yesterday, Curve Finance—one of the largest DEXs focused on stablecoin swaps—was hacked. Four of its pools on Ethereum were affected, namely the pools of CRV, alETH, msETH, and pETH, all paired with ETH. In addition to these pools, Tricrypto on Arbitrum which currently has a TVL of ~$19.4M might be exploitable. All other pools are now safe, according to Curve, but the accuracy of this statement is still up for debate.
The exploit was performed through a malfunctioning reentrancy lock related to a Vyper bug. More specifically, pools containing pure ETH and using Vyper 0.2.15, 0.2.16, and 0.3.0 have been drained or recovered by white hats. Vyper is the programming language used for multiple Curve contracts, an alternative to Solidity. A reentrancy attack happens when a smart contract function momentarily relinquishes control flow of a transaction by initiating an external call to another contract that is usually written by a malicious entity. This allows the secondary contract to perform a recursive call back to the main smart contract function, leading to the depletion of its funds.
All in all, over $70M worth of tokens have been drained. It's important to note that some tokens were drained by whitehat hackers and automated MEV bots, meaning that not all drained tokens are necessarily lost. For example, the famous MEV account c0ffeebabe.eth has already returned ~2.9K ETH that was initially drained from the CRV/ETH pool. The first attack on Curve involved exploiting the pETH/ETH liquidity pool for over $11M, but this may have been front-run by a MEV searcher.
To prevent hackers from swapping alETH for native ETH, Alchemix has disabled several of its contracts. The project enables users to access future yield and utilizes a synthetic Ether derivative, alETH, which the underlying ETH backs. The Curve hack drained ~5K ETH that was backing alETH, meaning the synthetic asset is currently undercollateralized. Accordingly, alETH is trading at ~$1.6K compared to ETH's price of ~$1.9K, which means that the market-implied under-collateralization is at ~15%.
CRV is down ~12% within the past 24 hours, currently trading at ~$0.64, which has reraised concerns regarding a ~$70M Aave v2 loan taken out by the Curve Finance founder Michael Egorov against CRV. The loan defaults if CRV decreases to ~$0.38. At that price, ~$115M worth of CRV would have to be liquidated, which the protocol would struggle to do, leaving it with bad debt. A few hours ago, Egorov's wallet borrowed ~$3.5M worth of USDT from Aave and swapped it against FRAX, which was used to pay down a loan on Fraxlend, leaving the loan at a size of ~$18M FRAX. In exchange, the wallet received ~$7.6M worth of CRV that was used as collateral, which was then deposited into Aave v2 to decrease the ~$70M loan's liquidation price.
The exploits are an excellent reminder that even established protocols can have vulnerabilities in their code. Nevertheless, the event is still ongoing, and it's definitely worth closely following how things develop going forward.
– Brick
No comments:
Post a Comment