General TradingS

Sandwich Attack

Updated How we review

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.”

Talk it through with other traders

Ask questions and discuss what you've learned in the Cosmic Crypto Club Discord. It's free, and so are the courses in the Hub with a Discord sign-in.