Price Providers
Each pool uses one Price Provider: a contract that returns a quote containing bid, ask and reference price.
Pools of the same pair can share one provider contract while keeping separate liquidity.
By design, a Price Provider is small and disposable: quick to write and cheap to deploy. When a strategy changes, deploy a new provider rather than patching the old one.

Three pricing inputs
Bid and ask are from the pool's perspective, for the asset being priced.
The reference must lie between bid and ask. Widening a side increases the spread LPs earn on that side, and both sides can widen together without limit. What the pool's configuration bounds is the skew: how much further one side may sit from the reference than the other. Relatick can also turn this check off for a pool. A quote that breaks these rules reverts, and the pool doesn't trade.
See Liquidity and bins for how the pool uses the provider's quote.
If the provider can't quote
If the provider reverts or reports no valid price, the pool rejects every swap until a valid quote returns, so nothing trades at a missing or invalid price. Deposits and withdrawals still work, subject to the pool's extensions. Providers use this on purpose, for example to halt during a feed outage or outside trading hours.
Different markets, different rules
A provider can:
- Follow an oracle feed or another onchain market.
- Adjust spreads using price uncertainty, a stablecoin's distance from its peg or pool balances.
- Discover prices using trading activity and inventory.
- Use a market maker's proprietary quotes.
- Set its own trading hours. A private pool can price a stock whenever its curator chooses, including while the stock's market is closed.
An external oracle is optional. Offchain models can use Relatick's shared oracle infrastructure to publish data; the pool still reads prices from its provider contract.
Why the reference matters
A quote can pass the pool's checks and still trade at a bad price, losing LP funds. A misleading reference can also inflate reported markouts without improving the value of the assets held.
Always report a correct reference price; see Build a Price Provider.
Anchored pricing uses an independent feed to constrain custom quotes. Unanchored providers rely on their own logic, inputs and permissions.
For replacement and configuration permissions, see Risks and safeguards.
Last updated 29 days ago
Relatick