A trader receives a much worse swap price after two transactions appear immediately before and after the trade. An investigator must reconstruct ordering, inventory, gas, builder payments, and a plausible no-intervention execution before labeling the difference as harmful extraction or searcher profit. Maximal extractable value, or MEV, arises from transaction inclusion, exclusion, and ordering, with value divided among searchers, order-flow providers, builders, relays, validators, sequencers, and applications.
MEV is not one behavior and should not receive one moral or legal label. Arbitrage can align prices and liquidations can protect lenders, while sandwiching can worsen a user's execution. Private order flow may reduce public-mempool exposure yet concentrate information and routing power. Advanced analysis reconstructs the counterfactual execution, identifies who paid and who earned, distinguishes gross opportunity from realized profit, and examines whether the ordering market threatens fairness, censorship resistance, or consensus stability.
What you will learn
- Trace MEV from user order through search, block building, and proposal
- Measure user loss and participant revenue against a defined counterfactual
- Evaluate protection mechanisms and their centralization tradeoffs
Map the transaction supply chain
A user creates an intent through a wallet or application. The transaction may enter a public mempool, a private endpoint, an auction, or a solver network. Searchers simulate state changes and compose transactions or bundles. Builders select and order transactions to maximize a block objective, relays may validate and transmit bids, and a proposer or sequencer chooses an execution payload under protocol and software constraints. Each handoff controls information or timing.
The economic map should record payments among these actors. A searcher can earn gross arbitrage and pay most of it as a builder bid or priority fee; a builder can aggregate opportunities and bid for proposer selection; an application may auction user order flow or return surplus to users. Validator revenue is not identical to total extracted value, and a profitable transaction does not reveal the offchain payments or failed attempts that surrounded it.
Classify strategies by mechanism and externality
DEX arbitrage trades inconsistent prices, often in an atomic sequence. Liquidation captures a protocol-defined incentive for restoring collateral constraints. Backrunning follows a state-changing transaction without necessarily making that transaction worse. Sandwiching places trades before and after a victim to exploit the victim's price impact, generally worsening execution within the allowed slippage. Censorship, time-bandit reorganizations, and exclusive access raise different concerns from ordinary in-block competition.
Classification requires a counterfactual. For a swap, estimate execution absent the suspected sequence using pool state, route, fees, slippage limit, and feasible alternative ordering. The difference may include ordinary price impact, adverse selection, network fees, and extraction. Do not label every price movement MEV or every arbitrage a user loss. The chosen counterfactual is an estimate and should be tested against alternative routes and block states.
Measure auctions, concentration, and failed competition
Onchain profit is only one layer. Searchers incur gas on reverted attempts, builder payments, infrastructure, financing, inventory, and hedging costs. Builders may make negative margins on individual blocks to maintain order flow or market share. Report gross extracted value, direct user impact, proposer payment, and estimated intermediary margin separately. Avoid assuming one visible transfer captures private rebates, side agreements, or cross-domain hedges.
Concentration can appear among builders, relays, searchers, sequencers, or order-flow providers. Measure shares over appropriate windows, but also test substitutability, entry requirements, latency advantage, vertical integration, and censorship behavior. A concentrated builder market can still face contestability, while nominally many actors may depend on the same relay or cloud. Diversity of names is weaker evidence than independent control and viable fallback paths.
Evaluate protections as tradeoffs
Users can reduce certain losses through tighter slippage, limit orders, batch auctions, request-for-quote systems, private submission, encrypted mempools, or solvers competing on delivered outcomes. Applications can redesign auctions, internalize backrunning, or return surplus. Each tool changes assumptions. Tight slippage can increase failed transactions; private routing can create censorship and information advantages; RFQ systems depend on dealer competition and quote integrity.
At the block-production layer, proposer-builder separation seeks to separate specialized construction from consensus proposal, allowing proposers to choose bids without directly running search strategies. Implementations can add relay availability, builder concentration, data withholding, and policy concerns. Analysts should measure inclusion, execution quality, failed transactions, concentration, and fallback performance together. A protection is successful only relative to a defined threat and without hiding a larger dependency.
Common misconceptions
“Every form of MEV is illegal theft and has the same effect on users.”
MEV includes protocol liquidations, arbitrage, backrunning, sandwiching, and censorship-related strategies with different mechanisms, externalities, and jurisdiction-specific legal questions.
“The searcher's visible onchain proceeds equal net MEV profit.”
Net economics can include failed transactions, builder bids, proposer payments, infrastructure, financing, hedging, inventory risk, and private transfers not visible in one transaction.
Risks and limitations
- Poor counterfactual construction can misclassify ordinary price impact or arbitrage as user harm.
- Private order-flow systems can reduce public exposure while concentrating routing power and transaction information.
- Builder, relay, or sequencer concentration can create censorship, liveness, and value-distribution dependencies.
- Large ordering rewards can intensify incentives for chain reorganizations or other consensus-destabilizing behavior.
Key takeaways
- Map users, applications, searchers, builders, relays, and proposers as one ordering supply chain.
- Classify MEV by mechanism and externality rather than applying one label to every strategy.
- Define and disclose the counterfactual used to estimate user loss.
- Separate gross opportunity, proposer payment, user impact, and estimated intermediary profit.
- Evaluate execution protections alongside their privacy, failure, and concentration tradeoffs.
Primary and further reading
Test your understanding
Score at least 2 out of 3 to complete this lesson. Explanations appear after you submit.