Explain how ordering changes outcomes
By the end, explain the diagram in your own words, solve the case and justify the correction.
Prerequisites : Liquidity pools and automated market makers · Ethereum accounts and transactions
Level 3 · Advanced →Reading path · 16 / 17 · Advanced
Maximal extractable value concerns value available through transaction inclusion, exclusion and ordering beyond ordinary block rewards and fees.
The essentials
Maximal extractable value concerns value available through transaction inclusion, exclusion and ordering beyond ordinary block rewards and fees. Searchers may identify opportunities; builders and proposers participate in block construction. The roles and interfaces vary by network and infrastructure.
How it works
Arbitrage can align prices across venues, while sandwiching can worsen a user’s execution. In a simplified sandwich, a transaction before the user moves a pool’s price and another afterwards unwinds exposure. The victim’s execution limits constrain which outcomes can still succeed.
What to watch
Private submission, batch auctions and other designs can change exposure to order information. They introduce their own availability, trust and execution assumptions. “Private” does not establish guaranteed inclusion, best execution or freedom from every form of MEV.
Understand the details
Analyse a trade with its pre-trade pool state, size, minimum output and surrounding transactions. The same signed operation can encounter different state depending on its position. Separate protocol-valid execution from economically acceptable execution: validators can accept an operation that satisfies its signature and limits even when the signer dislikes the result.
Boundaries and common mistakes
Not every price movement around a trade proves a sandwich. Attribution requires transaction evidence, and protective mechanisms do not eliminate contract or market risk.
The mechanism at a glance
- Observe intent
- Construct ordering
- Execute against state
- Evaluate user outcome
Apply the lesson to a case
A fictional user signs a swap with a broad minimum-output tolerance. Other valid transactions change the pool before it executes, but its minimum is still met.
The signature authenticates the operation, not a promise of the original quote. Examine the accepted limits and ordering to explain the result.
Prepare a correction note
Describe the passage and the proposed correction. This creates a local note for you to share; it sends nothing. Do not include personal or confidential information.