RialtoRialto
Trade
Overview

Rialto Docs | How propAMMs Quote

The rules that make a propAMM quote useful to a best-execution router.

Rialto DocsRobinhood ChainUpdated for current routing model

Exact-Input Quoting

A propAMM quote answers one concrete question: for this exact input amount and direction, how much output can the market maker deliver now? The quote function is read-only and should return a value in the output token’s smallest units.

Rialto’s public integration model uses an exact-input quote surface. The input size is fixed by the request; the market maker controls the output it is willing and able to deliver.

Direction and Size

The pair configuration determines which token is treated as token0 and token1. A direction flag tells the propAMM which side is being sold. The quote must be calculated for the exact amount supplied by the router, not for a pre-agreed notional.

Unsupported Requests

If the propAMM cannot fill a requested size or direction, the safe behavior is to return no usable quote or revert. Returning an attractive output that the market maker does not intend to settle can cause failed routes and makes the source unreliable.

Quote and Settlement Consistency

The quote should describe the price the contract expects to execute against under current conditions. Short-term market movement can still change the result before settlement, but the pricing source and inventory rules used to quote should remain consistent with the rules used to fill.

Gas and Route Ranking

Rialto can incorporate expected gas usage into route ranking. That means integration quality is not only about raw output: realistic execution cost matters because a route that looks best before gas may not be best after gas.

Practical Quote Checklist

  • Use a current price source appropriate for the market.
  • Apply spread and inventory controls before returning output.
  • Return zero or revert for sizes that cannot be delivered.
  • Keep units and decimals exact.
  • Make settlement capable of honoring the same direction and sizing semantics.
Rialto Docs · Onchain spot trading, propAMMs and best-execution routing. Open Rialto.