QTube LearnDeFi and markets Advanced
What Is MEV in Crypto?
MEV was originally “miner extractable value.” “Maximal” is now broader: many chains do not use miners, and block construction may be separated from block proposal.
In brief
- MEV was originally “miner extractable value.” “Maximal” is now broader: many chains do not use miners, and block construction may be separated from block proposal.
- The opportunity exists whenever transaction order changes outcomes. Public mempool visibility makes some strategies easier, but privileged private order flow can also create MEV.
- Common categories include cross-venue arbitrage, lending liquidations, sandwich trades, NFT or token-sale ordering and censorship or exclusion.
- Opportunity, extraction and distribution differ. A searcher may identify and execute an opportunity, then bid part of the proceeds to a builder or proposer for inclusion.
- Ethereum’s MEV-Boost pipeline is not a universal blockchain design. Solana leaders, rollup sequencers and other block producers use different ordering and networking systems.
- MEV is not automatically malicious. The relevant questions are who benefits, who bears the cost, and whether the ordering threatens users, market quality or consensus.
Why transaction order has value
Smart-contract transactions do not execute against a frozen snapshot. They run sequentially within an ordered block or according to a chain’s execution rules. Earlier state changes can alter prices, balances, collateral ratios and permissions for later transactions.
Consider three non-operational examples:
- A swap makes token A cheaper in one pool than another. The next transaction can arbitrage the difference.
- An oracle update moves a borrower below a liquidation threshold. The first valid liquidation call can earn an incentive.
- A large visible swap will move an AMM price. Transactions placed around it may capture part of the user’s allowed slippage.
The first two can perform protocol-intended work. The third generally transfers value away from the user. All are ordering-sensitive and can create MEV.
Ethereum.org defines MEV as the maximum value extractable from block production, in excess of standard block rewards and gas fees, by including, excluding or changing transaction order. This is a conceptual maximum. Observed profit is only the amount a particular strategy successfully extracts after transaction fees, failed attempts, hedging and competition.
The MEV supply chain
The simple phrase “validators take MEV” hides several roles.
Users submit swaps, liquidations, mints and other state changes. Their transactions can create an opportunity.
Searchers monitor chain state and order flow, simulate candidate transactions and submit transactions or ordered bundles. They compete on speed, strategy and inclusion bids.
Builders assemble execution payloads from public transactions, private transactions and bundles. A builder chooses combinations and ordering intended to maximize block value while satisfying validity rules.
Relays, in Ethereum’s current out-of-protocol proposer-builder separation system, check and escrow builder payloads and pass bids between builders and validators. Flashbots describes relays as trusted for block validity, routing and data availability.
Proposers have protocol authority to propose the block. On proof-of-stake Ethereum, a validator is selected for a slot. It may build locally or use MEV-Boost to select a builder’s bid.
Competition distributes the value. A searcher’s gross opportunity may be split among transaction costs, the builder’s margin and the validator’s bid. The user who caused the opportunity may receive none of it, although some private-order-flow systems attempt refunds. No fixed split applies across strategies or chains.
Major MEV categories
Arbitrage
If equivalent assets trade at different prices, an arbitrage transaction buys where cheaper and sells where dearer. This tends to bring fragmented prices back together and is part of how AMMs follow external markets. The LP side of that correction can still bear adverse-selection costs such as LVR. “Useful for prices” does not mean “free for every participant.”
Liquidations
Overcollateralized lending protocols rely on third parties to close unhealthy positions. The discount or bonus motivates prompt action, and searchers compete to land the valid call. This is intended MEV, but weak incentives, a stale oracle or thin collateral markets can still leave bad debt.
Sandwiches and frontrunning
A sandwich places one trade before a target swap and another after it, using the victim’s own price impact. The user receives a worse execution inside their stated limit. A generalized frontrunner instead tries to copy or pre-empt a visible profitable transaction. These patterns are covered defensively in What Is a Sandwich Attack?
Other ordering opportunities
Token launches, NFT sales, on-chain auctions and governance actions can all reward the earliest or latest valid transaction. Exclusion can also have value: a block producer or sequencer may delay a competing trade or censor a transaction. The precise strategy space depends on the application and chain.
Ethereum after proof of work
The foundational Flash Boys 2.0 paper studied priority gas auctions and coined miner extractable value in Ethereum’s proof-of-work era. Searchers publicly outbid one another to obtain preferred ordering, creating failed transactions, network load and gas-price volatility.
Ethereum now uses proof of stake, so a validator proposes each block. In the common MEV-Boost path:
[ \text{users/searchers} \rightarrow \text{builders} \rightarrow \text{relays} \rightarrow \text{validator proposer} ]
Builders construct full execution payloads and bid for the proposer’s blockspace. Relays validate and hold those payloads. The validator initially receives a header and bid, commits to the selected payload, and then receives the full block. This implements an external form of proposer-builder separation (PBS).
MEV-Boost is optional middleware, not an Ethereum consensus rule that every validator must use. A validator client can fall back to local block production if the external builder path fails. Signing conflicting blocks for the same slot is a separate slashable consensus offense; using a builder does not transfer the validator’s protocol responsibility.
PBS changes risks; it does not remove MEV
Separating proposal from specialized block building can broaden access to sophisticated block construction and reduce wasteful public bidding wars. It also creates dependencies:
- builders can gain power from exclusive order flow and superior simulation;
- relays see builder blocks and are trusted for validity, routing and data availability;
- dominant builders or relays can create censorship and concentration concerns;
- private flows reduce public visibility while giving selected intermediaries earlier access;
- the highest bid does not prove that users received fair execution.
Flashbots’ own risk documentation lists builder centralization, builder-relay collusion, malicious relays and liveness considerations. MEV-Boost organizes a market for block construction; it is not an “MEV removal” tool.
Chain-specific ordering
MEV is broader than Ethereum, but the infrastructure is not portable by analogy.
On Solana, a scheduled leader processes transactions for its slots, and the runtime can execute non-conflicting account access in parallel. Jito’s separate infrastructure lets traders submit ordered, atomic bundles to a Block Engine, which runs auctions among bundles that contend for overlapping account locks and forwards winning bundles to participating leaders. That is an important Solana MEV route, not Ethereum MEV-Boost with renamed actors.
On a rollup, a sequencer may control short-term ordering before data is posted to an L1. Forced-inclusion and decentralization mechanisms vary by rollup. On other base layers, proposer selection, encrypted transaction handling, mempool rules and finality differ again.
Therefore, “the miner saw it in the mempool” is not a chain-neutral explanation. The durable concept is economically valuable control over transaction inclusion and order.
Effects on users and networks
MEV can support:
- price alignment across venues;
- rapid liquidation of unhealthy debt;
- efficient execution of some on-chain auctions;
- validator or staker revenue.
It can also cause:
- worse trade execution through sandwiches;
- failed bidding transactions and congestion;
- unequal access to private order flow and low-latency infrastructure;
- builder, relay or sequencer concentration;
- censorship or pay-to-play inclusion;
- incentives to reorganize recent history when past MEV is unusually valuable, known as a time-bandit risk.
The last concern links application revenue to consensus security. Flash Boys 2.0 showed why large ordering rewards can motivate behavior outside the intended transaction market.
Defensive choices and their limits
Users cannot remove all MEV, but they can reduce exposure to some forms:
- set a defensible minimum output or maximum input instead of a very wide slippage limit;
- use private submission only after understanding which builders, relays or searchers can see the transaction;
- consider intent, RFQ or batch-auction routes that reduce dependence on public first-come ordering;
- split or schedule trades only when the venue and extra fees make that appropriate;
- verify what a wallet’s “MEV protection” actually promises on the relevant chain.
Private submission shifts trust; it does not provide universal secrecy. Tight slippage can make a bad fill revert, but may increase failed or delayed execution. Batch designs reduce some ordering advantages under their assumptions, not every source of MEV. Claims that a chain, RPC or DEX is simply “MEV-free” require much stronger evidence than a product label.
Sources & further reading
-
Maximal extractable value (MEV)
Primary · Documentation
Definition, arbitrage, liquidation, sandwiching, generalized frontrunning and consensus risks
-
Block proposal
Primary · Documentation
Validator selection, local payload construction and proposer responsibilities on proof-of-stake Ethereum
-
Overview (MEV-Boost)
Primary · Documentation
Primary description of external proposer-builder separation and the builder-relay-validator flow
-
Overview (Flashbots Auction)
Primary · Documentation
Private bundles, searchers, builders, relays and stated trust assumptions
-
Relay Fundamentals
Primary · Documentation
Relay validation, escrow, routing and circuit-breaker roles
-
MEV-Boost Risks and Considerations
Primary · Documentation
Builder concentration, collusion, malicious relays and local fallback
-
Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges
Primary · Paper
Foundational paper on priority gas auctions, MEV and consensus incentives
-
Low Latency Transaction Send
Primary · Documentation
Solana-specific Block Engine, account-lock auctions and atomic bundle behavior
-
EEA DeFi Risk Assessment Guidelines — Version 1
Primary · Standard
Independent industry taxonomy for frontrunning, backrunning, sandwiches and MEV mitigations