Skip to main content

Taker FAQ

Trading against propAMMs​

Does my trade see the maker's latest quote?​

Yes. When several updates for the same state are available, the builder applies the latest one before your trade.

Can I trigger my bundle on a quote update with targetPools?​

Yes, if you target what the update writes. Send the bundle with desiredState: "AnyPosition" and target the contract that the maker's updates write, or one of the slots they write. The builder then simulates it at the top of the block on the latest quotes. A target on the pool address alone does not follow quotes when the maker writes its prices to another contract. To take a quote, a plain bundle is enough: once it has read a quote, the builder also simulates it again on newer quotes. See Trade against propAMMs.

What is the taker speed bump?​

A trade that touches priority-update state is held for a short time before it can be included, so that makers can replace a stale quote first. See Taker speed bump.

JIT routing​

Do I have to trust the builder?​

For the price, yes, unless you use a safe integration. A safe integration still runs routes only from a poster that you trust. The contract guarantees your amountOutMin and takes only amountIn. That a fill beats your own route is the builder's guarantee. See Guarantees.

What does it cost when no route is posted?​

About 6k gas for the peek call, and about 3.5k for the report after your route. See the gas table.

Why did my swap get no route?​

The three most common causes:

  • A token of the swap is not in the supported list.
  • Your amountOutMin is above what any route can pay after the posting charge and the fee.
  • A condition for routing is not met.

Is there a list of supported pairs?​

Any pair of supported tokens can be routed. Both tokens must be in the list. The venues that routes can fill on are published as a JSON file.

I am a searcher. Does a route change my bid?​

Yes, if you pay the builder through the priority fee. A route that uses less gas lowers your payment. Pay with a transfer to block.coinbase if you use the settler often. See If you bid for inclusion with gas fees.

Can I exclude a venue or a pool?​

No. If a swap must avoid a venue, do not call the settler for that swap.

Can I see which pools filled a swap?​

Yes. The JITRoutedV1 event names the executor that ran the route, and the pools are in the transaction's logs.

My minimum output is computed during execution. Can I still integrate?​

Yes. Pass a static amountOutMin in the request and return your computed minimum from routeAvailable. You can also do this without the callback. Call swap from a function of your contract that your contract calls on itself, and revert there if the fill pays less than your minimum. The revert undoes the fill, and your route then runs. swapChecked in the safe sample has this shape.

Will the settler address change?​

Yes, with a new version. We announce a new address before it is used. Keep the address settable in your contract.