Skip to content
Reading depth

Each view includes the earlier layers; the complete engineer or auditor page is shown by default.

MEV risk is the possibility that transaction inclusion, exclusion, or ordering transfers value away from users or changes whether their intended state transition succeeds.

Warning cross category cue

MEV risk is the possibility that who includes a transaction, when it is included, and what runs around it changes execution or transfers value away from the user.

Transactions are not final when submitted. Public contents can reveal a trade, liquidation, oracle update, auction, or rebalance before block settlement. Searchers, builders, validators, sequencers, and competing users can construct or influence an ordering that captures an available state-dependent profit.

Order-flow, priority, and latency arbitrage are useful analogies. Atomic composability lets one ordered bundle combine temporary liquidity, trades, liquidations, oracle-dependent actions, and repayment. Consensus and block building—not one venue’s matching and best-execution rules—determine inclusion.

Transaction inputs, outputs, collateral, and gas are the assets at risk. A pending transaction is not a settled claim, but its intended trade, auction, liquidation, or rebalance outcome is exposed until inclusion or expiry.

  1. A user signs and submits a transaction with visible or privately shared constraints.
  2. Other actors simulate the state change and possible preceding or following actions.
  3. A builder or sequencer selects and orders transactions under available rules.
  4. Execution changes prices, collateral, oracle state, gas use, or eligibility.
  5. The user settles within constraints, reverts, is delayed, or receives a worse permitted outcome.

Information flow reveals order intent. Capital flow includes trade amounts, gas, arbitrage, and liquidation proceeds. Claim flow changes when ordering affects debt or collateral eligibility. Return flow pays the actor who captures the ordering opportunity. Risk flow can propagate through liquidations, rebalances, auctions, and oracle-dependent protocols.

MEV is a transfer or allocation of value, not automatically new productive return. Arbitrage can align prices and liquidation can repay debt, while ordering power can also impose execution loss. The exact payer and recipient must be traced per transaction and block-building design.

Flashbots describes its work as mitigating negative externalities from maximal extractable value and documents a competitive MEV-Boost block-building flow. Those systems change submission and block-building paths; they do not eliminate all ordering, censorship, relay, builder, or information-leakage risk. The documentation was reviewed 2026-08-10.

An engineer or auditor should test adversarial insertion before and after every price-sensitive transition, enforce minimum output, maximum input, deadline, nonce, recipient, and route constraints, and document assumptions for batches, commitments, solvers, private submission, sequencers, auctions, and failed inclusion.

  • “MEV is only front-running.” Back-running, sandwiching, liquidation priority, arbitrage, censorship, and auction ordering are distinct paths.
  • “Private submission removes MEV.” It changes who sees and orders the transaction and introduces provider and inclusion assumptions.
  • “Arbitrage profit proves a protocol was exploited.” Some value follows intended pricing rules; classify the state transition and violated property before calling it a defect.

See swap, arbitrage, and oracle risk.

Machine-readable model

Key equations

Canonical expressions come from the structured concept record. KaTeX renders the notation, while the plain-text expression and variable table keep its meaning and units inspectable without JavaScript. Read the narrative above for the model's domain, assumptions, and rounding rules.

This concept does not require one canonical equation. Its mechanism and state transitions remain the authoritative explanation; do not invent a formula merely to make the topic look quantitative.

Assurance contract

Security properties

These structured statements define desired behavior. Their stable IDs can bind tests, invariants, specifications, audit findings, or proof results without turning descriptive review advice into an assurance claim.

Desired · not evaluated: No test, audit, or proof result is implied until scoped evidence is linked to this property.

  1. User transactions enforce minimum output, maximum input, deadline, recipient, nonce, and authorized route regardless of ordering

  2. Protocol state transitions remain safe when arbitrage, liquidation, oracle, and callback transactions are inserted before or after them

  3. Auctions, batches, commitments, private submission, or solver competition state their ordering and information assumptions without promising elimination of MEV

  4. Failed, censored, or delayed inclusion cannot leave an unauthorized partial state or reusable approval beyond the stated transaction lifecycle

Knowledge check

Quiz

Answer in your own words, then open the model answer.

What problem does MEV risk exist to address?

Model answer

Block producers, builders, searchers, sequencers, and competing users influence transaction order, while public transactions reveal constraints and opportunities before final settlement.