Oracles
The Oracle module in CAP is responsible for providing reliable, up-to-date price and rate data to the protocol. It acts as the backbone for all value calculations, including minting, burning, borrowing, and liquidation processes.
Oracle Data Sources
The protocol leverages multiple oracle sources for different types of data:
RedStone Oracles: Primary source for reserve asset pricing (USDC, USDT, pyUSD & cUSD)
Chainlink Oracles: Used for delegation asset pricing (wstETH, wBTC) on shared security side
Cap Token Adapter: Calculates weighted average of underlying basket for cUSD pricing
Staked Cap Adapter: Accounts for accrued yield and cUSD price for stcUSD pricing
Aave Adapter: Fetches current borrow rates from external markets
Vault Adapter: Calculates utilization-based interest rates
For function signatures, parameters, and data structures, see the Oracle Contract Reference.
Last updated