Trade against propAMMs
A propAMM is an onchain pool whose quotes a market maker refreshes with priority updates, many times per slot. Its liquidity is ordinary onchain liquidity, and any contract can fill against it. This page shows the two ways to trade against it.
| Path | What you do | Use it when |
|---|---|---|
| Route it yourself | Read the pending quotes, build a route, and send the trade to BuilderNet. | You run your own router. |
| JIT routing | Call the JITSettler contract from your swap. | You want the freshest route without tracking quotes. |
Route it yourself
- Read the quotes. The quote stream gives the propAMM state that the builder would apply to the next block. No key is needed.
- Build the route. The IPropAMM interface provides a common way to discover, quote, and swap against propAMMs. The Lambda Class PropAMMRouter is a reference integration: a single-hop router that quotes and executes against a propAMM and falls back to Uniswap V3 when the propAMM can't fill.
- Send the trade. Send the transaction or bundle to BuilderNet. The builder places the maker's latest update before your trade, so you trade against the freshest posted quote.
A trade that touches priority-update state is subject to the taker speed bump.
Quote refresh
To take a quote, send a plain bundle. The builder simulates it on the latest quotes and places the maker's update directly before it. While the block is being built, the builder simulates the bundle again as newer quotes arrive.
Multi-candidate bundle submission
You can send several candidates for the same trade, each with a different route, as separate bundles.
- Give the transactions of all candidates the same sender and nonce, so that at most one lands. Do not list that transaction in
revertingTxHashesordroppingTxHashes. - The builder frequently uses fresh propAMM quotes to reorder the candidates, so that the best one is tried first.
- The builder ranks a candidate by what it pays the builder, in total or per unit of gas. Make that payment grow with the result of the trade.
Quote-triggered bundles
A bundle with desiredState: "AnyPosition" (eth_sendBundle) can also follow quotes. The builder simulates it at the top of the block on the latest quotes if one of its targets is:
- the contract that the maker's updates write, with an empty slot list, or
- a storage slot that the maker's updates write.
The stream address table lists that contract for each venue as the state override target, and the quote stream shows the slots in each stateDiff. A target on the pool address alone does not follow quotes when the maker writes its prices to another contract.
JIT routing
With JIT routing, your contract calls one settler contract and keeps its own route as the fallback. At block-building time the builder asks a router for a better route against the freshest propAMM quotes and onchain state, and your swap fills through it when there is one.
Questions
See the taker FAQ.