Skip to main content

Explain the Concept of a “Sandwich Attack” as a Specific Form of MEV Front-Running.

A sandwich attack involves a malicious actor observing a large pending transaction (e.g. a token swap) in the mempool. The attacker then executes a small "buy" order just before the victim's transaction and a "sell" order immediately after it.

The victim's large transaction moves the price, allowing the attacker to profit from the resulting price difference between their two small trades. This effectively "sandwiches" the victim's trade, reducing the victim's realized price.

What Is a “Sandwich Attack” and How Is It a Form of MEV?
How Do “Sandwich Attacks” Differ from Simple Front-Running?
What Is a “Sandwich Attack” in the Context of DeFi and How Does It Utilize Front-Running?
What Is Maximal Extractable Value (MEV) and How Is It Related to Front-Running?