MEV and transaction ordering
In short
Pending transactions are often visible before they are included in a block, and whoever orders the block decides the sequence. A 2019 paper, Flash Boys 2.0, documented bots paying higher fees to place their trades ahead of other users' trades on decentralized exchanges, and named the value available from ordering "miner extractable value" (MEV); the term is now usually expanded as maximal extractable value, since validators as well as miners order blocks. In this example, a user buying 1 VRX from the Larkspur pool pays 40,404.04 MDT; if another party buys 0.5 VRX just before and sells it just after, the user pays 40,813.20 MDT instead. The extra 409.16 MDT the user pays is exactly what the other party earns, before fees. The user's slippage tolerance sets the maximum price the trade accepts: the wider it is, the more value is available to take.
Scope. This article explains how the order of transactions in a block can be used to extract value from other users, what the research that named this called it, and what the arithmetic of a sandwich trade looks like. It is educational and informational only and describes the mechanism at the level needed to understand its cost to ordinary users; it is not a guide to performing it. It contains no price forecast, level, target or signal, names no protocol, exchange or platform, and does not evaluate any token. Research findings are dated and attributed. Worked figures use the fictional Larkspur pool from DeFi Mechanics: Automated Market Makers and Lending Pools. Tax rules vary by country and are not covered here.
Why order matters
On a public blockchain, a submitted transaction usually waits in a public pool before it is included in a block. The miner or validator who builds the block (see Miner and Validator Metrics) chooses which transactions to include and in what order, usually favoring higher fees. On an AMM (see DeFi Mechanics: Automated Market Makers and Lending Pools), the price each trade gets depends on the trades before it. Seeing a large pending trade, and being able to place trades around it, is therefore worth money.
| Practice | What happens | Cost to ordinary users |
|---|---|---|
| Front-running | A trade placed just ahead of a known pending trade | The user gets a worse price |
| Sandwich | A trade just before and an opposite trade just after | The user pays the difference |
| Back-running | A trade placed just after, for example to arbitrage the price the user moved | Usually no direct cost to the user |
| Liquidation races | Competition to be first to liquidate a loan (see DeFi Mechanics: Automated Market Makers and Lending Pools) | The borrower can be liquidated as soon as the threshold is crossed |
What research found
Philip Daian and seven co-authors published Flash Boys 2.0 in 2019. They documented bots on decentralized exchanges bidding up transaction fees to obtain priority ordering, which they called priority gas auctions, in order to front-run ordinary users' trades. They introduced the term miner extractable value, now usually called maximal extractable value, for the profit available from including, excluding and reordering transactions, and argued that it posed risks to the security of the network itself, not only to users.
A sandwich: worked example (illustrative figures)
The Larkspur pool holds 100 VRX and 4,000,000 MDT. A user submits a buy of 1 VRX with a 3% slippage tolerance.
| Sequence | Without the sandwich | With the sandwich |
|---|---|---|
| Other party buys 0.5 VRX first | — | Pays 20,100.50 MDT |
| User buys 1 VRX | Pays 40,404.04 MDT (1.01% above 40,000 MDT) | Pays 40,813.20 MDT (2.03% above 40,000 MDT) |
| Other party sells 0.5 VRX after | — | Receives 20,509.67 MDT |
| Result | — | User pays 409.16 more; other party earns 409.16 |
The user's price stays within the 3% tolerance, so the trade goes through. With a tighter tolerance the room for the other party shrinks; with a looser one it grows. Pool fees and the fee paid for ordering reduce the other party's profit; pool fees also shift the user's price slightly, which the figures here ignore.
Teaching value, not a forecast: Larkspur figures are fictional and ignore pool fees.
What has changed since
Networks and applications have introduced private transaction channels that hide pending trades, auctions that separate who builds blocks from who proposes them, and trading designs that batch orders. These change who captures the value and how much reaches users; none has removed ordering power from block producers entirely.
Check understanding
1 of 5
What did Flash Boys 2.0 (2019) originally call the value available from ordering transactions?
Frequently askedCommon questions
4 questions
What is MEV?
Maximal extractable value, originally miner extractable value: the value available to whoever orders a block from including, excluding and reordering transactions; the term was introduced in Flash Boys 2.0 (2019).
How much more does the user pay in the example?
409.16 MDT: 40,813.20 instead of 40,404.04.
Where does the other party's profit come from?
From the user, one for one, before fees.
What caps it?
The user's slippage tolerance sets the maximum price the trade accepts.
ReferencesWhere this comes from
- Daian, P., Goldfeder, S., Kell, T., Li, Y., Zhao, X., Bentov, I., Breidenbach, L. and Juels, A. (2019). Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges. arXiv:1904.05234 — Daian, P., Goldfeder, S., Kell, T., Li, Y., Zhao, X., Bentov, I., Breidenbach, L. and Juels, A. (2019). Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges (accessed 2026-10-14)
Finished reading?
Mark it complete once the answer holds without scrolling back up.
Ask MarketClue AI about this lesson
The question carries this lesson as its context. MarketClue AI needs an account.
MarketClue does not provide financial advice.
Next on your list
After that
Educational and informational only — not investment advice, a recommendation, or an offer to buy or sell any security. Investing involves risk, including the possible loss of principal. Worked examples use fictional companies and figures.