Oracle

The Oracle contract serves as a bridge for retrieving asset price data, using Redstone as the underlying data provider. It integrates with the Pool contract to deliver real-time asset prices, ensuring that all operations involving collateral and liquidation are calculated based on up-to-date market data.

Key Features:

  1. Price Retrieval with Redstone: The Oracle fetches asset prices from Redstone's decentralized data providers. This enables the Pool contract to perform accurate calculations for borrow limits, collateral values, and liquidation thresholds.

  2. Stateless Design: The Oracle does not persist any pricing information internally. It processes requests in real time, ensuring that price data is fresh and relevant.

  3. Permissionless Access: The Oracle can be queried by any contract (such as Pool) to retrieve price data for various assets.

Last updated