Chainlink rounds
A Chainlink feed publishes its price in rounds. Each round carries an answer and the time Chainlink’s oracle network observed the price, and a feed starts a new round when the price has moved past its deviation threshold or when its heartbeat passes without one. Chainlink publishes 13 crypto push feeds on Solana, and every one has markets on Sagitta; its feeds for stocks don’t (see The feeds).
Copied rounds
Section titled “Copied rounds”Elysium has no Chainlink feeds, so Sagitta’s price signers copy them. Each of those crypto feeds has a relayed feed of its own on Elysium (see Relayed prices), and a copied round keeps:
- Chainlink’s answer, with the feed’s own decimals;
- the time Chainlink observed the price;
- Chainlink’s round id, as the round’s reference, so each copy names the round it copies.
A copy must land within 60 seconds of Chainlink’s observation. The signers copy rounds only while something needs
them: a waiting ticket, a retiring market or a new listing. Rounds Chainlink published while nothing waited are never
copied, and their moves fold into the move of the round copied after them. Every copy is listed with the keys that
signed it by GET /api/readings.
Rounds as readings
Section titled “Rounds as readings”For a Chainlink market, each copied round is a reading, applied once and in order, so a backlog of rounds pays each move in turn. The move from the previous round’s answer to the new one is paid between the pots with the same keep factor as every market. Copied rounds are never merged: a rise of 0.5% then a fall of 0.5% pays twice, whoever brings the market up to date and however late.
The market reads its feed by round id, getRoundData, one round after another, at most 32 rounds per
call. Every answer is scaled to 18 decimals and turned into ticks, ln(answer) ÷ ln(1.0001), with 18 decimals of their
own.
- A price too large to price is consumed without effect: it pays nothing and fills nothing, and the round after it pays the whole move since the last one.
- A repeated price is never copied. The signers copy a round only when its answer differs from the last copy’s, so a round that repeats the price fills no ticket, and the tickets wait for a round that moved.
- Steps. The signers flag a copied round as a step when its move is its own: they saw every Chainlink round since the last copy, and none of the rounds they left out moved the price. On a flagged round a move of 2,000 ticks or more (a factor of 1.2214, the size of a scale error) counts as a reading and fills the tickets waiting on it, but pays nothing between the pots; a smaller move pays in full. A copy that carries the moves of rounds left out, or follows a round the signers missed, is not flagged and pays its whole move. On chain the rule is the same for every market: only a round the price signers flag moves that far unpaid (see Splits and dividends).
A read that fails, returns something malformed, or asks for a round not written yet changes nothing: the market tries again on the next call.
Which round fills a ticket
Section titled “Which round fills a ticket”A ticket fills at the first reading after its commit: the first copied round that Chainlink observed more than 60 seconds after the commit (see Delayed NAV).
- Observation time. A copy lands on Elysium seconds after Chainlink observed the price. The market goes by the observation time, so a round still on its way when you commit can’t fill your ticket at its older price.
- A minute’s margin. A round observed within 60 seconds of your commit can’t fill it, so a move seen on a faster venue can’t be bought at the price from before it.
- No closures. Chainlink’s crypto feeds on Solana publish every day around the clock. Their copies never carry the closure mark, so the first round after any gap fills waiting tickets as usual.
Chainlink’s oracle network prices each feed from its own sources, so trading on Sagitta never moves a Chainlink market.
A retiring market
Section titled “A retiring market”When a Chainlink market is retired, its freeze reading is the first round observed more than 60 seconds after the retirement. The signers copy a retiring market’s feed until it freezes, tickets or not, so the market freezes at a round of its own.
The feeds
Section titled “The feeds”- Chainlink publishes 13 crypto push feeds on Solana, and every one lists. See Chainlink markets, which lists every one with its settings.
- Chainlink’s feeds for stocks on Solana, which follow an exchange’s trading hours, are not listed. Stocks are priced from their own tokens (see Stock tokens).
- Each copy is a relayed feed of its own on Elysium, deployed by the signer set for that Chainlink feed. The Registry lists it like any feed, and every market on it reads it directly.
No uptime feed
Section titled “No uptime feed”On some networks Chainlink also publishes a feed that says whether the network is up, so contracts can distrust prices around an outage. Sagitta needs none. A ticket fills by when Chainlink observed a price, never by when the round landed, so a round delayed by an outage fills nothing it couldn’t have filled on time. A feed that stops updating, for any reason, leaves its tickets waiting; if the oldest still has no reading 7 days after its commit, the market freezes at its last price and every holder redeems there (see Refunds).