The paperExchangeCrypto WikiWikiAcademycrypto.notitiaplatform.com
Sign in
● LIVE
CAC 408 080,7▼ 0.81%S&P 5007 254,6▼ 0.94%EURO STOXX6 113,9▼ 0.66%BTC/USD62 734▲ 0.55%ETH/USD1 765,7▲ 1.55%EUR/USD1.10▲ 0.05%BRENT90.38▲ 1.36%GOLD3 690,6▼ 1.37%OAT 10Y5.09%▲ 0.39%VIX24.59▲ 0.12%CAC 408 080,7▼ 0.81%S&P 5007 254,6▼ 0.94%EURO STOXX6 113,9▼ 0.66%BTC/USD62 734▲ 0.55%ETH/USD1 765,7▲ 1.55%EUR/USD1.10▲ 0.05%BRENT90.38▲ 1.36%GOLD3 690,6▼ 1.37%OAT 10Y5.09%▲ 0.39%VIX24.59▲ 0.12%
 
Europe edition
NotitiaCrypto Wiki
Back
Advanced

MEV (extractable value)

Value captured by ordering transactions.

MEV (Maximal Extractable Value) is the profit validators/searchers can capture by choosing the order, inclusion or exclusion of transactions in a block - via arbitrage, liquidations or ‘sandwiching’ a user.

It is a hidden cost for users (worse slippage) and a central blockchain-design issue that solutions (mempool encryption, fair-ordering auctions) try to mitigate.

Key takeaways
  • Profit from transaction ordering
  • Arbitrage, liquidations, sandwich
  • Hidden cost to the user
Sandwich attack: the bot buys before you, sells after
2,000 $2,050 $2,100 $2,150 $StartBot buysYour buyBot sells
Worked example

A sandwich attack on your swap

You buy ETH with 40,000 USDC in a 1,000 ETH / 2M USDC pool. A bot sees your pending transaction, buys right before you and sells right after.

Assumption · The bot buys with 20,000 USDC before you; fees ignored
  1. 01ETH received without the bot19.608 ETH
  2. 02ETH received with the bot in front19.225 ETH
  3. 03ETH lost to the bot0.383 ETH
The professional’s reflex

Your slippage tolerance is the bot’s budget. A pro sets it as tight as possible, splits large orders or uses a private RPC that hides the transaction.

To watchSelected by the newsroom · loads only when you press play
MEV: front-running and sandwich attacks
Whiteboard Crypto · in English
Why MEV matters for Ethereum
CoinGecko · in English

Questions and answers

What is a sandwich attack?

A bot buys just before your swap and sells just after, profiting from the price impact you create.

How do I protect myself?

Limit the slippage allowed and use private transaction submission when the wallet offers it.

Go further in the Wiki
Decentralised exchange (DEX)Gas fees
✦ Learn by doing

Test your understanding with a quick interactive quiz.

Go further on the technical side · partnerQuantPadTo go from theory to code: auto-graded exercises in Python, SQL and quantitative finance, backtests and mock interviews for quant, data and M&A roles.Train on QuantPad · quantpad.app ↗For your career · partnerKairosKairos finds the roles that fit you every day, scores your CV against each out of 100 and prepares your application.Find my role on Kairos · trykairos.eu ↗
Related concepts
What is a blockchain?BasicsDecentralisationBasicsConsensus: PoW vs PoSIntermediateKeys & walletsBasics