Rounds and the challenge window
Submitting a round
submit(Report[]) takes one or more reports; each report is a feed id and 2 to 16 observations. Anyone may call it. For each observation the contract recovers the EIP-712 signer and requires:
- the signer is an active reporter (bond at least the minimum, in the current bond asset), and signers are sorted by address with no repeat;
observedAtis newer than every observation the feed has used, at most 10 s ahead of block time (clock skew between reporters and the chain), and within the feed's maximum age;- for hourly feeds, every observation carries the same hour.
The round value is the median of the signed values (the mean of the two middle values for an even count), and every value must sit within the feed's spread of it. On continuous feeds the round must be due: heartbeat elapsed, or a move past its deviation threshold, and at least the least gap since the previous round.
Observation(uint256 feedId,int256 value,uint64 observedAt) domain: name "Kairo Network", version "1", chainId 99901, verifyingContract = KairoFeeds
Pending and final
A new round is pending until finalAt = submittedAt + window. Once that time passes without a dispute it is final, with no further transaction needed: the reads below treat it as final immediately, and the next submit or a call to settle pays its fee. A disputed round is never final.
Reads
latest(feedId) -> (value, observedAt, round, flagged) newest FINAL value valueAt(feedId, round) -> (value, observedAt) reverts unless final roundAt(feedId, time) -> round newest final round observed at or before time pending(feedId) -> (value, observedAt, round, finalAt, status) newest round, any state isFinal(feedId, round) -> bool
flagged is true when a newer round was disputed and latest fell back to an older final value. Contracts that move money should check both flagged and the age of observedAt against their own freshness limit.
A value that nobody disputes within its window becomes final, so the network relies on at least one honest watcher being online during each window; the launch reporters check every pending round against Hyperliquid every 1 to 3 minutes, and windows last 5 to 10 minutes.