Why the venue builds its own
The alternative is to consume someone else’s oracle, and the failure mode of that arrangement is well documented: a venue that references a price influenced by its own market creates a loop where a distortion in one place becomes a forced liquidation cascade in another. Building it in-house means the sources, weights, and thresholds are all inspectable and tunable, and none of them point back at this venue’s own book.From venue quotes to one number
Normalize and convert the quote currency
Clamp every source to the median ± a band
Weight by volume, spread and stability
Cap the weight any one venue can carry
Index price
So the median that follows is taken over comparable numbers
Major crypto 1% · stablecoins 0.5% · everything else 3%
Stability compares recent volume against a longer run, so a sudden burst on one venue cannot buy influence
However good its quotes look
An input, not an execution price — nothing fills at the index
Exchange feeds in, one number out
What the step removes
Clamping rather than discarding: discarding lets an attacker shrink the sample by pushing one venue away, which raises the weight of everything left.
The choice to clamp rather than discard is deliberate. Discarding an outlier lets an attacker shrink the sample by pushing one venue away, which increases the weight of everything remaining. Clamping keeps every source counted while bounding how far any one can pull.
Weight by quality. Sources are combined by weighted mean rather than equally, on three factors:
- Volume — a venue with more real turnover carries more information
- Spread — a tighter book is a more confident quote
- Stability — recent volume compared against a longer-run average, so a sudden burst on one venue does not buy influence
When a source misbehaves
Three defenses run continuously, each addressing a different failure.
When a source’s weight goes to zero, the remaining weights scale up proportionally. The index does not gap because one venue disconnected.
A crossed book — bid at or above ask — is not a tradable market, it is a broken feed. Accepting it would let a malfunctioning venue inject an arbitrary mid into the aggregate.
Update cadence and staleness
The index recomputes roughly every three seconds and is certified inside consensus, so the price a transaction settles against was signed by the same validator quorum that committed the transaction. See Oracle for how that certification works. Freshness is checked before a validator will sign: a stale reading produces no submission rather than an old one. Downstream, mark price treats an index older than about ten seconds as unavailable for that block and proceeds without it.Index price is not mark price
Keeping them separate is what lets the mark reflect local conditions — a real premium or discount on this venue — without letting local conditions become the only thing it reflects.
Where to go next
Mark price
How the index becomes the number that governs your position.
Funding
How the gap between mark and index is priced and settled.
Oracle
Certification in consensus, and why price availability gates block production.
Risk disclosures
What price risk remains, and what it can cost.