How a Bot Gained and Lost Over $1 Million of ETH in One Night
EthereumPaano Nakuha at Nawala ng isang Bot ang Mahigit $1 Milyon ng ETH sa Isang Gabi10 / 01 / 2022Balita ng Ethereum ng Bitcoin On Tuesday night, an Ethereum MEV bot gained 800 ETH through the use of clever arbitrage, only to lose all of it and more to a hacker an hour later. Heres how the situation played out on-chain: The event began with a third-party trader mistakenly losing nearly $2 million to spreads on Uniswap v2 trade. While he initially traded in 1.8 million cUSDC, he only tinanggap 518 USDC in return. According to Flashbots Product Lead Robert Miller, this only created a “massive arbitrage opportunity” for another trader to swoop in and claim plenty of ETH. “0xbaDc0dE [the MEV bot] dutifully backran the arb in the mempool (!) in a looong arb touching many protocols,” he explained. In the end, the bot netted 800 ETH. However, that ETH was entirely stolen just an hour later. Miller claims the bot didn‘t properly protect the function it’s used to execute dydx flashloans, leaving it vulnerable. “When you get a flashloan the protocol you‘re borrowing from will call a standardized function on your contract,” he said. “0xbaDc0dE’s code unfortunately allowed for arbitrary execution.” Using this vulnerability, an attacker