launchkit

YOU'RE IN 🚀

What is MEV? The Invisible Tax Extracting Billions from DeFi
Web3 Glossary - Key Terms & Concepts
What is MEV? The Invisible Tax Extracting Billions from DeFi
MEV (Maximal Extractable Value) is profit captured by reordering, inserting, or censoring transactions in blockchain blocks—costing users billions annually through sandwich attacks, front-running, and arbitrage

You swap $50,000 on Uniswap with 2% slippage. Transaction goes through. You got 1.8% less than expected. Price impact, right?

Wrong. Check Etherscan. Your transaction sits between two others from the same address. Transaction #1: bot buys. Transaction #2: your swap. Transaction #3: bot sells. You got sandwiched. Someone made $900 by manipulating transaction order.

This is MEV—extracting billions from DeFi users annually.

MEV (Maximal Extractable Value) is profit from controlling transaction order, inclusion, or exclusion in blocks. Validators and bots capture billions through front-running, sandwich attacks, liquidations, and arbitrage. Since 2020, over $7.2 billion extracted. Average DeFi trader pays 0.5-2% invisible MEV tax on top of legitimate fees.

Why MEV exists

When you submit a transaction, it enters a public mempool before execution. Anyone can see your pending swap—details, amounts, slippage tolerance, gas price.

Whoever produces the block controls transaction order. Order matters in DeFi. Alice buys 100 ETH at $2,000, pushing price to $2,008. Bob buys next at the inflated price.

MEV bots exploit this. Bot inserts buy before Alice and Bob (front-run), lets them push price up, inserts sell after (back-run). Bot profits from price movement without real risk.

Originally "Miner Extractable Value" (miners controlled ordering), renamed "Maximal Extractable Value" post-Merge when validators took control.

Types of MEV strategies

Sandwich Attacks

Bot detects your pending swap, front-runs with a buy (higher gas), your transaction executes at inflated price, bot back-runs with a sell. Bot profits from the price movement you created.

Example: You swap $100,000 USDC for ETH with 2% slippage. Bot front-runs with $500,000 buy, your trade executes 1.5% worse, bot back-runs with sell. Bot profits $1,500.

Sandwich attacks extracted $900 million in 2023. The "jaredfromsubway.eth" bot extracted $6.3 million in one month.

Front-Running

Executing your transaction first after seeing a pending one. Targets: large DEX swaps, NFT purchases, token launches, liquidations.

Arbitrage

Profit from price differences across exchanges. ETH at $2,000 on Uniswap, $2,015 on SushiSwap? Buy low, sell high. Considered legitimate because it improves market efficiency. Represents 35% of total MEV ($2-3 billion since 2020).

Liquidations

When collateral drops below threshold, positions become liquidatable. Liquidators repay debt and receive collateral at 5-15% discount. First to execute wins. Bots monitor constantly, using high gas or validator connections.

March 2020 crash: $88 million liquidated on MakerDAO, with transactions paying $5,200 gas for $100,000 liquidations.

Who extracts MEV?

Searchers (Bots): Automated bots scanning mempools. From individuals running scripts to sophisticated 24/7 firms.

Block Builders: Construct blocks with maximal value, auction to validators. Top builders: Flashbots (30-40%), BloXroute (15-20%), Titan (10-15%).

Validators: Control block inclusion. Most use MEV-Boost to maximize revenue. MEV = 30-40% of validator revenue.

The economics

$7.2 billion extracted since 2020. Daily average: $10-20 million (normal), $40-50 million (volatility).

Distribution: Arbitrage 35% ($2.5B), Sandwich attacks 30% ($2.2B), Liquidations 25% ($1.8B), Other 10% ($700M).

Per-transaction: Average user pays 0.5-2% invisible tax. Large trades (>$50K) face 1-3% extraction.

MEV supply chain: User → Searcher detects → Builder constructs → Builder auctions to validator → Validator accepts. Validators capture 80-95%, builders 3-10%, searchers 5-15%. Users pay 100%.

MEV protection strategies

Flashbots Protect: Send transactions directly to Flashbots builders, bypassing mempool. Free, effective for large trades. Works on ~40% of blocks.

CoW Swap: Batch auctions prevent front-running within batches. Protected $50+ billion, provides 0.5-1.5% better execution.

1inch Fusion: Intent-based swapping. Sign intent, resolvers compete to fill it.

MEV Blocker / Rook: Redistribute MEV profits to users.

Minimal slippage: Set 0.3-0.5% instead of 2-3%. Leaves less extraction room. Tradeoff: transaction may fail on legitimate price movement.

Split trades: Five $20K swaps instead of one $100K. Less profitable for bots.

Layer 2s: Arbitrum (first-come-first-served), Optimism/zkSync (sequencer fair ordering).

Limit orders: Specify exact price. Available on Uniswap X, 1inch, CoW Swap.

The debate and future

Three positions: (1) MEV is theft—eliminate it, (2) MEV is inevitable—redistribute it, (3) MEV is nuanced—keep good (arbitrage), eliminate bad (sandwiches).

Centralization risk: MEV = 30-40% of validator revenue. 90% use MEV-Boost, 3-4 builders dominate.

Future evolution:

Encrypted mempools: Shutter Network, Flashbots SUAVE. Encrypt until block execution. Eliminates front-running.

Intent-based: Broadcast intentions, not transactions. Solvers compete off-chain. Reduces sandwich attacks.

MEV redistribution: Eden Network, MEV Blocker return profits to users.

Most likely: MEV persists but evolves. Encrypted mempools reduce front-running, intent protocols gain adoption, users accept 0.5-1% invisible tax.

Conclusion

$7 billion extracted since 2020. The invisible tax most don't know they're paying. You set 2% slippage, get sandwiched for 1.8% to a bot providing zero value.

MEV is fundamental to blockchain architecture. Public mempools enable verification—and exploitation. As long as someone controls transaction order, MEV exists.

Progress happening: CoW Swap eliminates sandwich attacks, Flashbots Protect provides mempool privacy, intent protocols separate goals from execution. But billions extracted annually.

For DEX trading: Use Flashbots Protect for large trades, CoW Swap for swaps, minimal slippage. Factor in 0.5-1% MEV tax. The price you see isn't the price you get.


References:

  1. Flashbots - "MEV-Explore: Quantifying MEV Data" - https://explore.flashbots.net/
  2. Daian, P., et al. (2020). "Flash Boys 2.0: Frontrunning in Decentralized Exchanges" - https://arxiv.org/abs/1904.05234
  3. EigenPhi - "MEV Data & Analytics" - https://eigenphi.io/
  4. Flashbots - "Ethereum is a Dark Forest" - https://www.paradigm.xyz/2020/08/ethereum-is-a-dark-forest
  5. Qin, K., Zhou, L., & Gervais, A. (2022). "Quantifying Blockchain Extractable Value" - https://arxiv.org/abs/2101.05511
  6. CoW Protocol - "MEV Protection Through Batch Auctions" - https://cow.fi/
  7. Flashbots Protect - https://protect.flashbots.net/

Related Terms