03 / Flowchart

One exit request. Two liquidity paths.

One exit request. Two liquidity paths.AMM pays ETH immediately when free liquidity covers the exit; otherwise EVE is escrowed on AMM and the request is recorded in ExitQueue for later settlement and claim.NOYESRequest ETHAMM.exit(...)Free ETHcovers exit?LATERQueued exitEscrow EVE on AMMSettle batch → claim()SAME TRANSACTIONImmediate exitBurn EVESend ETH to walletQUEUED PROTECTIONmaxTokensToBurn + priceTolerance
Liquidity determines the path

Free ETH excludes lockedForClaims. Immediate exits burn EVE and pay ETH in the same transaction. Queued exits escrow EVE on AMM, then require keeper settlement and a separate user claim.