Skip to main content

What Is a “Sandwich Attack” and How Does It Relate to Arbitrage in AMM Pools?

A sandwich attack is a form of front-running where a malicious actor identifies a pending transaction and places two of their own transactions, one before and one after the victim's transaction. The first transaction drives up the price for the victim, and the second transaction sells the asset at the new, higher price, extracting a profit.

This is a predatory form of arbitrage that exploits the transparency of public blockchains and can result in significant losses for the victim.

How Does the Lack of a Central Order Book on an Automated Market Maker (AMM) DEX Change the Nature of Front-Running?
How Does Maximal Extractable Value (MEV) Relate to Front-Running in DeFi?
What Is the Difference between an Arbitrage Bot and a Front-Running Bot?
How Does Front-Running Occur in the Context of Smart Contracts?