Skip to main content

MEV Deep Dive

Beyond sandwich attacks: Flashbots, searcher economics, Proposer-Builder Separation, how MEV redistributes wealth on-chain, and protecting yourself.

From Thrive on YouTube

Watch the matching Thrive video

More on YouTube
Welcome to Thrive | Crypto Market Intelligence Platform for Traders

Welcome to Thrive | Crypto Market Intelligence Platform for Traders

Education only. Not financial advice.

What MEV Really Is

MEV (Maximal Extractable Value) is the profit that can be extracted by reordering, inserting, or censoring transactions within a block. Most people associate MEV with sandwich attacks on DEX trades, but that is only one manifestation. MEV encompasses any value captured through transaction ordering: arbitrage between DEXs, liquidation bonus capture, NFT snipes, backrunning large trades, and protocol-specific extraction opportunities. It is a fundamental feature of blockchains where block producers can influence transaction ordering.

Billions of dollars in MEV have been extracted on Ethereum alone since its inception. This is not a bug being exploited. It is an inherent property of any system where transaction ordering creates value. Understanding MEV is essential for any DeFi user because it directly affects the price you pay on every swap and the returns you earn on every position.

Flashbots and the MEV Supply Chain

Flashbots created an organized MEV marketplace that replaced chaotic gas-price bidding wars with an orderly auction. The MEV supply chain has three distinct roles, and understanding each reveals how value flows through the system.

1

Searchers find opportunities

Searchers are specialized bots that monitor the mempool (pending transactions) and blockchain state for MEV opportunities. They detect arbitrage between DEXs, identify liquidatable positions, and spot sandwich-able trades. When they find an opportunity, they construct a "bundle": a set of ordered transactions that captures the MEV.
2

Builders construct blocks

Block builders receive bundles from many searchers and assemble them into complete blocks. They optimize the block for maximum total MEV extraction, selecting the most profitable bundles and ordering them for optimal execution. Builders compete with each other to produce the most valuable block.
3

Proposers validate blocks

Validators (proposers) receive constructed blocks from builders and choose which block to propose on-chain. They select the block that pays them the highest fee, which is the builder's bid for the block space. The proposer does not need to understand MEV; they simply pick the most profitable block offered.
4

PBS separates concerns

Proposer-Builder Separation (PBS) formalizes this division. Proposers are no longer expected to build blocks themselves. They outsource construction to specialized builders. This prevents validators from needing to run MEV extraction infrastructure and theoretically promotes decentralization.

How MEV Redistributes Wealth

MEV flows upward through the supply chain. Searchers extract value from DeFi users (through sandwich attacks, front-running, and arbitrage). Searchers pay builders for block inclusion. Builders pay proposers for block selection. Ultimately, retail DeFi users bear the cost. They receive worse prices on swaps, pay higher effective fees, and see value leaked from their transactions. Estimates suggest MEV costs the average DEX user 1–3% per trade in hidden execution costs.

Protecting Yourself from MEV

Use private RPCs

Services like Flashbots Protect send your transaction directly to block builders, bypassing the public mempool where searchers lurk. Your transaction is invisible until it is included in a block.

Set tight slippage tolerances

A 5% slippage tolerance is an open invitation for sandwich attacks. Set the minimum slippage your trade requires. If it fails, re-submit rather than giving away value.

Use MEV-resistant DEXs

CoW Swap uses batch auctions that prevent front-running entirely. 1inch Fusion routes through solvers who compete to give you the best price without MEV extraction.

Break up large swaps

A $100K swap is a magnet for sandwich attacks. Split into smaller trades across time or use a TWAP (time-weighted average price) execution. Smaller trades are less profitable to attack.

Avoid pending transaction visibility

If your transaction is visible in the mempool, it can be extracted. Private RPCs, Flashbots Protect, and direct builder submission all reduce visibility.

MEV is a tax on every DeFi user

Every time you swap on a DEX, borrow on a lending protocol, or interact with a DeFi smart contract, you are potentially exposing value to MEV extraction. This is not theoretical. It is happening on every block. Using MEV protection tools is as fundamental as using a stop-loss on a leveraged position. Ignoring MEV means accepting worse execution on every single transaction.

Put this lesson to work

Free on Thrive, no account needed.