Rialto Docs | How Rialto Works
From market selection to quote discovery, route selection and atomic onchain settlement.
Trade Lifecycle
Quote Discovery
For an exact-input order, the routing layer requests current executable output amounts from the sources available for that pair. A propAMM can be sampled directly onchain through its quote function, while conventional liquidity sources are evaluated through their own routing adapters.
The quote is not simply a displayed reference price: it represents the amount the source indicates it can deliver for the requested input size at that moment.
Route Selection
Candidate paths compete on the result that matters to the trader: executable output after route costs. Gas estimates are part of route ranking, so a nominally better raw quote can lose if its execution cost makes the final result worse.
This is the core of Rialto’s best-execution model: users do not have to choose a propAMM, DEX pool or other supported venue manually.
Atomic Settlement
When a route is selected, settlement occurs onchain. For a propAMM leg, the router supplies the exact input amount and verifies that at least the required output is received. If the output condition is not satisfied, the transaction reverts rather than accepting an underfilled result.
User Controls
- Amount: exact input size used to build the quote.
- Slippage protection: minimum acceptable output before settlement can succeed.
- Wallet: the user remains in control of the assets being traded.
- Gas flow: direct submission or an available relayed/gasless flow can be used depending on the interface.
