blockmindset
Lesson 4 of 512 min

MEV and Frontrunning

MEV is value extracted from transaction ordering, inclusion, or exclusion.

Why this matters

MEV affects DEX users, validators, block builders, fairness, centralization pressure, and consensus incentives.

1

The Intuition

Pending transactions reveal intent. Searchers can simulate them and pay to place their own transactions before, after, or around them.

2

See it concretely

Concrete example

If you could see everyone's stock orders before execution and pay the clerk to move yours first, you could profit from ordering power.

3

Tempting — but wrong

4

The precise version

Maximal Extractable Value is the value obtainable by changing transaction ordering, inclusion, or exclusion. Strategies include DEX arbitrage, liquidations, sandwich attacks, NFT sniping, and oracle-related extraction. Mitigations include private orderflow, batch auctions, encrypted mempools, threshold encryption, MEV-share systems, and proposer-builder separation, each with tradeoffs.

MEV = value(bestOrdering) - value(defaultOrdering)

Check your understanding

What is a sandwich attack?

Click to reveal answer

Why can MEV pressure decentralization?

Click to reveal answer

Before moving on
  • Define ordering, inclusion, and exclusion power.
  • Explain arbitrage, liquidations, and sandwiching.
  • Explain why public mempools leak intent.
  • Compare mitigation tradeoffs.
?Checkpoint

What is MEV based on?