Start typing to search this publication.
crypto.news logo crypto.news
Open menu
crypto.news logo

Subscribe to crypto.news

Get new posts delivered straight to your inbox.

What Is MEV and How Does It Affect DEX Traders by Chain?

crypto.news avatar crypto.news
3 min read

After you submit a DEX swap, MEV (maximal extractable value) is value taken by reordering, inserting or censoring transactions, and its clearest cost to you is a sandwich attack that worsens your fill within your slippage limit.

How Does Transaction Ordering Change a DEX Trade?

Transaction ordering changes a DEX trade because a pending swap reveals both its likely price effect and the worst fill you will accept. On a centralized order book, the exchange’s matching engine applies price and time priority. On a DEX, transactions execute in block order. MEV was formerly called “miner extractable value”; on Ethereum today, specialized builders assemble most blocks through MEV-Boost, and validators propose them.

Picture a queue: your swap is one customer, a searcher places trades around it, and the builder controls the order. The analogy stops at the price: each trade against an automated market maker changes the price offered to the next one.

Say your swap quotes 1,000 tokens and sets a minimum output of 990. A searcher sees the pending buy, buys first, lets your swap raise the pool price, then sells immediately after your swap in the same block. You might receive 991 tokens instead of 1,000. That is a sandwich attack: the searcher profits from the worse price you accepted. Your slippage limit caps the execution you permit; it does not distinguish a market move from someone trading around you.

Splitting a large order changes how much price movement any single block offers an attacker. The permissionless decentralized exchange Fraxswap is an automated market maker with an embedded time-weighted market maker (TWAMM) that executes large orders as virtual slices over time. Smaller per-block impact leaves less room to sandwich one slice. As the order moves the pool price across blocks, arbitrageurs can still capture the gap between that price and other markets.

That arbitrage is backrunning, a neighbouring term with a different cost to you. A pure backrun trades after your completed swap to bring the pool price toward the wider market. It cannot change your fill, although it captures value that would otherwise remain with liquidity providers. A sandwich includes a trade before your swap, which is why it can worsen your execution.

On Ethereum, the public mempool lets searchers inspect pending swaps and seek placement around them. Arbitrum One has a private sequencer queue, so the classic public-mempool sandwich is rare. Searchers can instead race to trade after an ordered swap becomes visible. The ordering detail matters: Arbitrum One’s current priority gas auction ranks transactions by priority fee in short rounds, with arrival time breaking ties; its earlier first-come-first-served description is outdated. Privacy reduces the usual sandwich opportunity, while speed and fees shape who wins a backrun.

For a DEX trader, the deciding question is whether someone traded ahead of your swap or only after it. Ordering before your trade can consume your slippage allowance; arbitrage after it leaves your fill intact, and the chain determines which opportunity is readily available.

Slippage and transaction routing determine how much of a pending swap’s price movement a searcher can capture.

How Do You Protect a Swap From a Sandwich Attack?

A tighter minimum output limits how far a sandwich can worsen your fill, though a swap may fail if the market moves beyond that limit. Smaller trades relative to pool liquidity also create less predictable price impact to trade around. These choices address your exposure; they do not remove ordinary pool price impact or trading fees.

What Is a Private RPC Like Flashbots Protect?

A private RPC sends your transaction outside Ethereum’s public mempool to participating builders. Flashbots Protect uses this route to hide pending transactions from public-mempool sandwich bots. The route changes who can see the transaction before inclusion, so its protection depends on the parties handling it.

What Questions Does This Leave Open?

MEV also raises questions about the legality of particular conduct and the size of the market as a whole.

MEV extraction has no single legal status: arbitrage, sandwiching and deceptive interference with block-building systems involve different conduct, and the law depends on jurisdiction. U.S. prosecutors have charged a MEV-Boost relay exploit as wire fraud; that case does not establish a blanket rule for ordinary MEV trades.

How Much MEV Is Extracted on Ethereum Each Year?

There is no definitive annual total. MEV names the value available to extract, while reported figures estimate what identifiable strategies actually captured. Estimates vary with the period, strategies, private transactions and whether they count gross revenue or profit after costs. Flashbots’ measurement discussion explains why a builder payment or a detected-trade total cannot stand in for all MEV or all trader losses.

Subscribe to crypto.news