Skip to main content

Overview

x/paxoracle stores validator-submitted market prices and exposes aggregated prices to EVM contracts through the OracleAggregator precompile at 0x0000000000000000000000000000000000000903. The module supports PaxSpot, HyperPax Perps, and other protocols that need validator-consensus price data with sub-second chain finality.

EVM precompile

Read a validator price

Submit a validator price

Only active validators can submit prices. Non-validator addresses should use getValidatorPrice() for reads and should not attempt to post attestations.
submit-price.ts

Aggregation model

x/paxoracle verifies submissions against the active validator set, filters stale submissions, and returns a confidence-weighted median for each market.

Common failure modes