Freshness and ordering
How a trade meets the maker's latest price update on each chain.
A trade can pick off an outdated quote before the maker's new quote reaches the oracle.
Freshness limits reject old feed data. Ordering decides whether the new update happens before the trade that uses it.
Update-independent pools don't need the update pipeline, though ordering can still affect their onchain sources.
Staleness bound
Off-the-shelf Price Providers revert when a required update is older than their limit, which halts trading until a fresh update lands. Custom providers set their own checks.
A freshness limit bounds how old the feed data behind a quote can be. See Pool tiers for required limits.
The limit is measured from the timestamp inside the update to the timestamp of the block that reads it. It has two failure modes, on every chain:
- Too tight for how you timestamp and send. If the limit doesn't cover that gap, the update is already stale when it is read. The pool halts for part of every block and its quote flickers between live and unavailable.
- Wider than one block. An update stays valid in blocks after the one it landed in, so a later trade can execute on a price from an earlier block. Takers use that price when it has moved in their favour.
The second cost grows with block time. One extra block is a fraction of a second of price movement on a fast chain and 12 seconds on Ethereum, so a loose limit is most dangerous there. On Ethereum, keep the limit tight and timestamp each update for the block it targets: see Ethereum.
Keeping prices updated is the pool curator's job, which in a public pool means the curator: running the updater, or making sure a shared one keeps the feed fresh. Relatick doesn't guarantee that updates are published or delivered on time, even when they're sent through Relatick.
How each chain orders an update against a trade
Relatick works closely with block builders and the foundations of every chain it operates on. The builder commitments below are the builders' own service policies, not onchain rules.
maxTimestamp, to BlockRazor and Jet.Chain setup: Ethereum · BSC · Robinhood · Elysium. Where Relatick is live: Contract addresses. Pipeline engineering: Best practices.
What ordering doesn't solve
- Your latency. At best, ordering puts your latest update first; it can't make it newer. A taker who knows something your latest update doesn't reflect can still trade against it.
- Trades without an ordering commitment. A trade in another builder's block or on an arrival-order chain meets whichever update is onchain when it executes. It is priced from that update if the update is within the staleness limits, and reverts if it isn't.
- Relatick's oracles use monotonic timestamps: an older update cannot overwrite a newer one.
For integrators
For conditional updates:\ \ For takers, quote from Relatick's API, which serves the latest streamed quotes; onchain reads are unreliable because of lag.\ \ For makers, submit quote updates through Relatick's API, which forwards them to participating builders, or directly to those builders.
Relatick also follows Titan's propAMM interface, so integrations built on it reach Relatick pools as well. Takers can apply the latest update from Titan's stream to their simulation; see Via Titan propAMM streams.
Last updated 29 days ago
Relatick