Skip to main content
MEV — maximal extractable value, originally miner extractable value — is the profit available to whoever decides which transactions go into a block and in what order. The order matters because onchain state changes as each transaction executes. Two transactions touching the same AMM pool produce different results depending on which runs first, so the party choosing the sequence holds an option, and that option is worth money. MEV is not a bug in a particular protocol. It is a consequence of public transaction ordering, and it exists on every chain that has both a public mempool and shared state.

How extraction works

The same asset trades at different prices on two venues. A searcher buys on the cheaper one and sells on the dearer one in a single atomic transaction, taking the spread with no price exposure.This is the benign majority of MEV. It is what keeps prices consistent across venues, and it is the same function arbitrageurs serve in any market.
A searcher sees a large pending swap, places a buy immediately before it and a sell immediately after. The victim’s swap executes at a worse price, and the searcher captures the difference.This is extraction at a user’s direct expense. The victim sees it as unexpectedly bad slippage, and usually never learns why.
Lending protocols pay a bonus to whoever liquidates an undercollateralized position. Bots race to be first, and the race is won by transaction ordering rather than by speed of observation.Necessary for protocol solvency, so the competition is over who is paid, not whether the work happens.
Transacting immediately before or after an oracle update, or moving a thin market’s price to shift a valuation elsewhere. This shades from arbitrage into manipulation depending on the size of the market involved. See Oracles.

Who captures it

Modern MEV runs through a supply chain rather than through the block producer alone. Searchers find opportunities and build transaction bundles. Builders assemble those bundles into full blocks and bid for the right to have theirs used. Validators or proposers accept the highest bid. On Ethereum this is formalized as proposer-builder separation, so most blocks are built by specialist builders rather than by the validator that proposes them. The practical effect is that most MEV never appears in the public mempool at all. It arrives as a private bundle, so a naive mempool observer sees only the settled result.

Why it matters for your data

Even if you never trade, MEV changes what your numbers mean.
Before reading any DEX metric as user demand, decide whether you want bot activity in or out — and say which. Allium’s Wallet Classification excludes bot and MEV-labelled addresses from its end-user universe, and Payments publishes an adjusted volume that strips out non-organic flow. Both are the shape you want when the question is about people.

Where to look in Allium

Next steps

  • AMMs vs CLOBs — why AMM swaps are the main target
  • Reorgs — the other reason a block’s contents are not settled