Rialto Docs | What Is a propAMM
A programmable onchain market maker that owns its pricing logic, inventory and execution risk.
Definition
A propAMM is an onchain proprietary automated market maker. Instead of deriving every price from a passive reserve curve, the market maker can use its own pricing model and inventory policy, expose an executable quote onchain and settle the trade atomically if its route is selected.
For Rialto, a propAMM behaves as one candidate liquidity source among the sources the router can evaluate. The router does not need to understand the market maker’s internal model; it only needs a quote that can be executed consistently.
Quote vs. Settlement
The quote step is read-only. Settlement is state-changing and must actually transfer the promised output to the router. A quote that cannot be executed should not be advertised as available liquidity.
How It Differs from a Passive AMM
| Area | propAMM | Passive pool |
|---|---|---|
| Pricing | Custom, programmable model | Pool invariant or fixed AMM logic |
| Inventory | Managed by the market maker | Provided by LP positions |
| Risk controls | Can vary by size, inventory, spread or policy | Primarily determined by pool design |
| Rialto integration | Quote + atomic settle interface | Standard DEX route integration |
Operational Requirements
- Return an executable exact-input quote for the requested size.
- Return zero or revert when a size or direction cannot be filled safely.
- Keep quote logic consistent with settlement logic.
- Maintain sufficient output inventory for accepted trades.
- Enforce any required freshness, spread and inventory protections inside the market maker.
Risk and Failure Cases
Programmability does not eliminate execution risk. A stale price source, depleted output inventory, inconsistent quote and settlement logic, or a sudden market move can cause a route to fail or become uncompetitive. Rialto’s routing model treats an unavailable or failing source as a candidate that should not win the order.
