DeFi | Why do swaps on a DEX get “sandwiched”?
A sandwich attack: A bot spots a large buy order in the public mempool, buys ahead of it, then sells after it.
The profit from a sandwich attack comes from the price impact borne by the user caught in the middle. For ordinary users, this is a hidden cost.
Back to the market: $ETH is quoted at 2249.59 (24h -2.54%).
The market is always full of surprises, so think ahead about what you’ll do if you’re wrong.
A sandwich attack: A bot spots a large buy order in the public mempool, buys ahead of it, then sells after it.
The profit from a sandwich attack comes from the price impact borne by the user caught in the middle. For ordinary users, this is a hidden cost.
Back to the market: $ETH is quoted at 2249.59 (24h -2.54%).
The market is always full of surprises, so think ahead about what you’ll do if you’re wrong.