OPEN LAB · MEMPOOL / ORDERING / MEV

MEV & Ordering Free Lab

Submit a user swap, inspect public or private visibility, build a block order, and compare output protection with searcher and proposer balances. Every asset is virtual.

Back to course →
ORDERING SIMULATIONVirtual pool · no real MEV
SECURITY 001 · MEMPOOL / ORDERING / MEV

Who gets to choose the order?

Put one swap into a deterministic pool, then watch visibility, ordering, slippage protection, and extraction change the result.

ScenarioPublic mempoolPhase: idle
Pool spot price120.00credits / TOKEN
User quote90TOKEN
User actual output0TOKEN
Searcher P/L0credits, after tip
Visible to searcherNO0 mempool item(s)
From intent to shared statePublic mempool
  1. 01
    Mempoolintent is visible
  2. 02
    Block orderwho goes first
  3. 03
    Statereplayed by nodes
Mempool
Nothing submitted yet
Selected block order
Build a block after scanning

A mempool record is not a fill. The block order is not a payout. Only execution moves balances and pool reserves.

BALANCE LEDGER · NO VALUE FROM NOWHEREWho gained, who paid, and what moved?

Searcher profit, proposer tip, pool fees, and user output live on the same ledger.

Pool120,000 credits · 1,000 TOKEN
User30,000 credits · 200 TOKEN
Searcher20,000 credits · 200 TOKEN
Proposer0 credits · 0 TOKEN
Coach

Submit one user swap first. The key question is not whether the transaction is valid, but who can see and order it before it becomes shared state.

Ordering events1 EVENTS
  1. 01

    Public pool created: 120,000 credits + 1,000 TOKEN, any public transaction can change the next quote.

ACTION HISTORYExperiment timeline
1 state snapshots

Use the slider to return to an earlier step. Continuing from there replaces the later history with a new sequence.

Initial state
View experiment records →

Try these four ordering experiments.

01

Run the plain public path and mark the moment pending becomes shared state.

02

Run a sandwich with a loose guard, then tighten minimum output until the victim reverts.

03

Run the back-run and keep pool reserves, searcher P/L, and proposer tip on one ledger.

04

Repeat the same swap through private flow and name the trust boundary that remains.