Each reserve within HypurrFi is associated with an oracle contract. Oracle contracts are responsible for reporting the market price of assets in the protocol, which is essential for determining collateralisation requirements and liquidations.

The oracle contract submits price feed updates based on its operational logic (time-based, deviation-based, etc.).

Types of Oracles in Use

Currently, there are three primary types of oracle contracts:

  1. Hyperliquid Price Feeds: Hyperliquid Validators provide highly reliable, decentralised price data for various assets. These price feeds pull data from multiple sources and aggregate them, minimising the risk of manipulation or outages.

  2. Redstone and Pyth price feeds are available to provide alternative sources of decentralized price data for various assets not supported by the Hyperliquid validators.

  3. Correlated Assets Price Oracle (CAPO): CAPO is designed for assets that have a strong correlation with another asset’s price. For example, wrapped tokens can use this oracle to mirror the price of their underlying assets. CAPO leverages specialised logic to adjust and submit prices that follow the movements of these correlated assets. See more details about its implementation on GitHub.