Ethereum

Maximal Extractable Value (MEV)

Maximal Extractable Value (MEV) is the additional profit that block producers — miners in proof-of-work or validators in proof-of-stake — can extract by strategically including, excluding, or reordering transactions within blocks they produce. MEV strategies include sandwich attacks, arbitrage, liquidations, and frontrunning. In Ethereum post-Merge, MEV is mediated through MEV-Boost and the MEV supply chain of searchers, builders, and relays.

What Is MEV?

When you submit a transaction to Ethereum, it enters the public mempool — a waiting room of pending transactions visible to anyone running a node. Before your transaction is included in a block, block producers have discretion over which transactions to include, in what order, and at what gas price threshold. Maximal Extractable Value (MEV) is the profit that block producers (and specialised bots called "searchers") can extract by exploiting this discretion.

The term was originally "Miner Extractable Value" during Ethereum's proof-of-work era, renamed to "Maximal" after the Merge to PoS in September 2022. The concept was formalised in the 2019 academic paper "Flash Boys 2.0" by Daian, Goldfeder, et al., which documented rampant frontrunning and arbitrage bots on Ethereum and other DEX-enabled blockchains. The scale of MEV has grown dramatically with DeFi: Flashbots' MEV-Explore dashboard has tracked over $1.5 billion in cumulative extracted MEV on Ethereum since 2020.

Types of MEV Strategies

Arbitrage is the simplest and most benign form of MEV. When the same asset trades at different prices on two DEXs simultaneously (say, ETH is $2,500 on Uniswap and $2,502 on Curve), a searcher can extract the price difference by buying on the cheaper venue and selling on the more expensive one within the same block. DEX arbitrage is generally considered beneficial because it keeps prices consistent across venues. It represents the majority of MEV volume.

Liquidation MEV arises in lending protocols like Aave and Compound, where undercollateralised positions can be liquidated by anyone who calls the liquidation function and claims a bonus. Multiple bots compete to liquidate the same position first, and MEV searchers use gas price escalation and private transaction channels to ensure their liquidation transaction lands first. This competition is healthy for protocol solvency but captures a significant portion of the liquidation bonus that would otherwise go to retail liquidators.

Sandwich attacks are the most harmful MEV type for ordinary traders. When a searcher detects a large pending swap on a DEX, they insert a buy transaction immediately before the victim's trade (driving up the price) and a sell transaction immediately after (profiting from the price the victim moved). The victim receives a worse fill price — the sandwich attack extracted value directly from their trade. Sandwich attacks are pure wealth transfers from the victim to the attacker with no systemic benefit.

JIT (Just-In-Time) liquidity is a Uniswap v3-specific MEV strategy where a searcher detects a large pending swap, adds concentrated liquidity in the exact tick range of that swap just before it executes, earns the fee, and removes liquidity immediately after. The swap executes with better pricing (the JIT liquidity reduces slippage) but the passive LP's fee earnings are diluted by the JIT bot.

The MEV Supply Chain: Searchers, Builders, and Relays

In Ethereum's current architecture, MEV is extracted through a specialised supply chain coordinated by MEV-Boost, a piece of middleware built by Flashbots that nearly all validators run. The supply chain has three layers:

Searchers are independent bots that monitor the mempool for MEV opportunities, construct profitable transaction bundles (a set of transactions in a specific order that together extract MEV), and submit them to block builders. Searchers compete fiercely with each other; the most sophisticated searchers use co-located nodes near major validator infrastructure, write highly optimised Solidity and Rust code, and iterate on strategies within milliseconds.

Builders receive bundles from multiple searchers simultaneously, combine them optimally with regular pending transactions, and construct the most profitable full block possible. Builders then submit their block to validators via a relay. The block builder market has consolidated significantly — a small number of builders (including those operated by Flashbots, Beaverbuild, and Rsync) produce the majority of Ethereum blocks.

Relays act as trusted intermediaries between builders and validators — they verify that submitted blocks are valid and honour the payment commitment before revealing the block content to the validator. The relay prevents builders from withholding payment after a validator includes their block. The PBS (Proposer-Builder Separation) architecture implemented by MEV-Boost formalises this separation, and a future in-protocol PBS is on Ethereum's roadmap.

Validators running MEV-Boost receive bids from multiple builders and select the highest-paying block — typically earning 2-5x more ETH per block than they would from consensus rewards alone. This MEV income significantly improves validator profitability but also creates centralisation pressure, as validators with access to high-quality order flow and sophisticated building strategies earn disproportionately more.

MEV on Other Chains

MEV exists on every chain with an open mempool and smart contract capability. Solana's high throughput and low latency create a particularly intense MEV environment — Solana's mempool is effectively public, and searchers compete with sub-millisecond reaction times. Jito Labs (the Solana analogue to Flashbots) built a modified Solana validator client with a block engine that enables bundled transactions and auction-based MEV extraction, and Jito's stake has grown to represent a significant portion of Solana's validator set.

Layer 2s like Arbitrum and Optimism have historically had centralised sequencers that could theoretically extract MEV but have stated commitments against doing so. As these sequencers decentralise, MEV dynamics on L2s will increasingly resemble Ethereum mainnet.

Protecting Yourself from MEV

Ordinary traders can take several steps to reduce MEV exposure. First, use DEX aggregators with MEV protection built in — CoW Protocol (formerly CowSwap) batches user orders and matches them through coincidence of wants, bypassing the public mempool entirely. 1inch Fusion and Paraswap Delta use private order flow channels that keep trades out of the public mempool until execution. MEV Blocker, developed by CoW Protocol and Beaver Build, routes transactions through a network of searchers who commit to not sandwich-attacking while still providing rebates from backrunning profits.

Second, set appropriate slippage tolerances. High slippage settings make sandwich attacks more profitable; using the minimum slippage your trade can tolerate reduces the sandwich attacker's margin. Third, trade in smaller sizes relative to pool liquidity — large trades relative to pool depth generate more price impact and are more attractive MEV targets. Finally, consider using private RPC endpoints like Flashbots Protect or MEV Blocker RPC, which route your transactions directly to block builders without exposing them to the public mempool.

Conclusion

MEV is an inevitable consequence of transparent blockchains with programmable transaction ordering. Its effects range from benign (arbitrage that improves price efficiency) to directly harmful (sandwich attacks that steal value from traders). The MEV supply chain on Ethereum has matured significantly with MEV-Boost and the builder market, but it has also created new centralisation risks. For active DeFi traders, understanding MEV and using MEV-protected routing is an increasingly important part of trading effectively — especially as DEX volumes grow and MEV extraction techniques become more sophisticated.