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
Set per market on-chain. Fallbacks: major crypto 1% · stablecoins 0.5% · others 3%
Stability compares recent volume against a longer run, so a sudden burst on one venue cannot buy influence
45% for the three largest venues, 35% for others, however good their 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.
deviation_threshold_ppm); a market without one uses these fallbacks:
Outliers are clamped, not discarded, so pushing one venue away cannot shrink the sample and raise the weight of the rest.
Weight by quality. Sources are combined by weighted mean on:
- Volume: more real turnover, more weight.
- Spread: a tighter book counts for more.
- Stability: recent volume against a longer-run average, so a sudden burst on one venue does not buy influence.
When a source misbehaves
When a source’s weight goes to zero, the remaining weights scale up proportionally, so the index does not gap when one venue disconnects.