MEV (maximal extractable value) is profit made by controlling the order of transactions in a block. Typically a bot places its own trades just before and just after someone else's.
Staking TAO into a subnet swaps it for that subnet's alpha through a pool, and a big stake pushes the alpha price up. A sandwich bot stakes just before you and unstakes just after you, in the same block. It pockets the price move your stake caused, and you get a little less alpha.
To do that, the bot has to get its first trade in ahead of yours.
Here's one such attack, which the taostats research team uncovered. We provided this vector to the chain developers through private channels, and the developers moved quickly to shut down this vector.
Every block, the bot sent a call to its own smart contract. That call didn't say what to trade. When it ran, it first checked for instructions. Because it was sent early, it sat near the front of the queue.


