Price Oracles
The Price Oracle is one of many Oracles on the Helium Network. The market value of the Helium tokens is required on-chain as the price is needed to calculate everything from burning HNT for Data Credits (DC) to treasury allocations for the Mobile and IoT networks.
The Helium Network uses the tried and tested Pyth Network, which publishes financial market data. As an overview, Pyth works by having publishers (exchanges and market-making firms) submit price points for given token pair values and then aggregates this data, making it available on-chain.
Pyth's exponentially-weighted moving average (EMA) price aggregation adds time to the aggregation with a heavier weight given to more recent price samples, smoothing the price and controlling for outliers to help further increase trust in the price and help shield against potential bad actors.
On the day of the chain migration, price feeds were not available for all tokens. In this time, the existing Helium L1 Price Oracles continued to contribute market data.
As a stable price feeds became available, community-sourced price feeds were removed in favor of Pyth.
The current Price Oracles can be viewed here:
HNT Price OracleHandled by Pyth HNT-USD as of May 11, 2023.MOBILE Price OracleHandled by Pyth MOBILE-USD as of February 8, 2024.IOT Price OracleHandled by Pyth IOT-USD as of March 5, 2024.