Glossary TermApril 20, 2024

MEV

Maximal Extractable Value — the profit validators, sequencers, and bots can extract by reordering, inserting, or censoring transactions within a block.

mevmaximal-extractable-valuefrontrunningsandwich-attackethereum

Definition

Maximal Extractable Value — the profit validators, sequencers, and bots can extract by reordering, inserting, or censoring transactions within a block.

MEV

In Simple Terms: Every time you submit a transaction on Ethereum, bots and validators can see it before it executes. If they spot a way to profit by jumping ahead of you or right after you, they will take it — at your expense. MEV is the invisible tax on every on-chain trade. You might not see it on your P&L, but someone extracted value from your transaction that could have been yours.

Maximal Extractable Value (MEV) — originally "Miner Extractable Value" before Ethereum's transition to Proof of Stake — is the maximum profit that can be extracted by validators, sequencers, and searchers through their ability to arbitrarily include, exclude, or reorder transactions within a block. MEV arises because the mempool (the waiting room for unconfirmed transactions) is public, and the order of transactions within a block is economically significant.

For traders, MEV is not an academic concept — it directly costs you money every time you trade on-chain. Sandwich attacks (where a bot buys before your trade and sells after, pocketing the price difference) can turn what looks like a clean swap into a worse execution. Understanding MEV — how it happens, which trades are vulnerable, and how to protect yourself — is as important for on-chain traders as understanding spread and slippage is for CEX traders. The alpha: knowing where MEV concentrates and how to avoid being the victim without paying excessive protection costs.

How It Works

MEV extraction follows a three-actor model:

Searchers: Bots that scan the mempool for profitable opportunities — arbitrage between DEXes, liquidation of undercollateralized loans, and sandwiching of user trades. Searchers submit bundles of transactions with bribes (priority fees) to block builders to ensure their transactions are included in profitable positions.

Block builders: Entities that assemble transaction bundles into blocks. Under Ethereum's Proposer-Builder Separation (PBS) architecture (post-Merge), specialized block builders (like Flashbots, BloXroute, Titan) construct blocks that maximize value and auction them to validators.

Validators: Proposers who select which block to include in the chain. Validators accept the highest-bid block from builders, effectively selling their block space to the highest extractor of MEV. Validators capture a portion of the MEV through the block auction.

Common MEV strategies:

Frontrunning: Searcher sees your large buy order in the mempool, submits their own buy order with higher gas to execute before you, driving up the price. Your order then executes at the higher price. The searcher immediately sells at a profit.

Sandwich attack: Combination of frontrunning and backrunning. Searcher buys before you (frontrun), you buy at elevated price (victim), searcher sells after you (backrun). The profit comes from the price impact of your trade, which you paid but the searcher captured.

Liquidation sniping: When a DeFi loan becomes undercollateralized, liquidators compete to be first to liquidate the position and claim the liquidation bonus. MEV bots bid massive gas to win this race. This is one of the most competitive MEV arenas.

Arbitrage: Same asset trades at different prices on different venues. Bots buy on one venue, sell on another, and profit the spread. Without MEV, these price discrepancies would persist; MEV bots actually improve market efficiency by closing arbitrage gaps.

Why It Matters for Traders

Sandwich attacks are a direct cost on your DEX trades. If you swap $10,000 of ETH for a low-cap token on Uniswap, a sandwich bot can extract 0.5-3% of your trade value in profit, at your expense (you receive fewer tokens than the fair price). This is not a theoretical loss — it is real value you never received. Protection strategies: use MEV-protected RPC endpoints (Flashbots Protect, MEV Blocker), trade through aggregators that split orders across pools, set low slippage tolerance (forces sandwich bots to work harder for profit), and avoid trading during congested blocks.

MEV protection tools are asymmetric. Using a private mempool (Flashbots Protect, MEV Blocker) sends your transaction directly to block builders without broadcasting it publicly, preventing frontrunners from seeing and attacking it. This is free or near-free for most users. There is effectively no downside to using MEV protection for your trades — it either saves you money (by preventing sandwich attacks) or costs you nothing (no attack would have occurred anyway). Configuring your wallet or trading interface to use MEV-protected RPCs is one of the highest-ROI actions a DEX trader can take.

MEV revenue is accruing to token holders. As protocols implement MEV-aware designs, the value previously extracted by searchers is being redirected to protocol participants. Blast redirects sequencer MEV to users. Flashbots' SUAVE aims to democratize MEV access. Protocols that successfully capture and redistribute MEV create genuine value for token holders, differentiating them from protocols where MEV is extracted parasitically by external actors.

Common Mistakes

  1. Assuming MEV only affects Ethereum mainnet. MEV exists on every chain with a public mempool and economically significant activity — Solana, BSC, Avalanche, Polygon, and even L2s where sequencers currently control transaction ordering. The specific actors and methods differ by chain, but the extractive dynamic is universal.
  2. Setting slippage tolerance too high. High slippage tolerance makes you a more attractive sandwich target — the bot can push the price further and extract more profit while your trade still executes (because your tolerance is wide). Set slippage as low as practical: 0.1-0.3% for stable pairs, 0.5-1% for major volatile pairs, 1-3% for smaller pairs. Combined with MEV protection, this minimizes extractable value.
  3. Ignoring MEV when evaluating protocol tokens. A DEX protocol that effectively captures and redistributes MEV (via auction mechanisms, rebates, or buy-and-distribute models) has fundamentally different tokenomics than one where MEV is externalized to third-party bots. The former creates value for token holders; the latter does not. When comparing DeFi protocols, factor in their MEV handling architecture.

FAQ

Q: Is MEV always bad? A: No. Some forms of MEV are beneficial: arbitrage that eliminates price discrepancies (making markets more efficient) and liquidation of unhealthy loans (keeping lending protocols solvent) are both forms of MEV that serve a constructive function. The most harmful form is sandwich attacks, which extract value from retail traders without providing any useful service. The MEV debate is about maximizing the good forms while minimizing the extractive forms.

Q: How much MEV has been extracted historically? A: Over $1 billion in MEV has been extracted on Ethereum mainnet alone since 2021 (per mevboost.pics and Flashbots data). The true figure is likely higher because not all MEV is captured in these public datasets. This represents value that could have gone to traders through better execution, to LPs through higher fees, or to protocols through MEV-capture mechanisms.

Q: Can MEV be eliminated entirely? A: Probably not. MEV is inherent to public mempools and the ability to order transactions. Designs that could eliminate MEV — encrypted mempools (transactions encrypted until inclusion), fair ordering protocols (randomized transaction ordering), and MEV auctions (explicitly selling reordering rights) — all involve tradeoffs between fairness, efficiency, and complexity. The practical goal is to minimize extractive MEV (sandwiching) while preserving beneficial MEV (arbitrage, liquidations) and redistributing value to users.

Deep Dive

Want to explore further? Check out:

Ready to Start Trading?

Join The Kingfisher community and get access to professional-grade trading tools and insights.