How extraction works
Arbitrage
Arbitrage
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.
Sandwich attacks
Sandwich attacks
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.
Liquidations
Liquidations
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.
Oracle and long-tail games
Oracle and long-tail games
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.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