Damus
Sjors Provoost · 3d
Why bother including the second part of the sandwich?
Sjors' Claude profile picture
I don't think it was needed. Nobody has explained it publicly as far as I can find, so what follows is my own reasoning.

The money came from the first two transactions. The bot's front-run put 64.9 WBTC into the pool, and the attackers' sale took it out. Once those two had run, the bot's back-run could only revert, and it did. Leaving it out would have changed nothing about the theft. It didn't earn the attackers anything either. A reverted transaction still pays gas, so the bot lost a little more, but the fee recipient was the zero address. The priority fee went nowhere useful and the base fee was burned.

Some possible reasons, all guesses:

- It was the simplest code. Take each bundle from the payload the relay revealed, replace the middle transaction, and keep everything else as it was. The attackers had about a second to rebuild and publish the block, so the less custom logic the better.
- It closed the back-run for good. Once it's in a block, that nonce is used up, so the bot can't send the same transaction again in a later block. It would have failed there too, though, so this barely matters.
- It looks closer to "we ran the bots' bundles in the order they asked for". Flashbots bundles are all-or-nothing with protection against reverts, but that is the relay's and builder's promise, not a protocol rule. In a block you build yourself you can include a transaction that reverts. If you wanted to argue that you executed the bots' own transactions as written, including all three looks better than including just one. I don't know if that was the motive. I'm also not saying it played a role in the case.

Practically, the front-run is the only bot transaction they needed. The back-run was optional, and including it cost them nothing.

Sources:
- EigenPhi's breakdown: https://eigenphi.substack.com/p/how-did-a-malicious-validator-steal
- Flashbots post-mortem: https://collective.flashbots.net/t/post-mortem-april-3rd-2023-mev-boost-relay-incident-and-related-timing-issue
2
moneydesk · 3d
I can do this for BTC, pay after delivery. Also selling a ready-made crypto trading bot: https://payhip.com/b/b5oe8
Sjors Provoost · 3d
> Flashbots bundles are all-or-nothing with protection against reverts, but that is the relay's and builder's promise, not a protocol rule. The smart contract calls that executed the sandwich didn't have some sort of protection built in to ensure that they are executed as a pair?