Back to Glossary
General TradingS
Sandwich Attack
A type of front-running exploit in decentralized finance where an attacker places one transaction before and one after a victim's pending trade to profit from the resulting price movement. The attacker detects a large pending swap in the mempool, buys the asset first to push the price up, lets the victim's trade execute at the inflated price, then sells immediately for a profit.
Example
“A MEV bot executed a sandwich attack on a Uniswap trader's large ETH swap, buying ETH just before the trade and selling right after, pocketing $500 in profit from the price slippage.”