Oracle Hub
Overview
OracleHub (Price Oracle)
Purpose
Interface
interface IOracleHub {
function getPriceUsdWad(address asset)
external view
returns (
uint256 priceWad, // Price in WAD (18 decimals)
uint256 timestamp, // Last update time
bool valid // Is price reliable
);
}Supported Sources
Source
Use Case
Update Frequency
Price Flow Example
Source Architecture
AprOracle (Yield Oracle)
Purpose
Interface
Rate Calculation
APR Adapters
Adapter
Token Type
Source
Adapter Interface
Rate Accumulation
How VY is Tracked
Oracle Buffer
Integration with CollateralEngine
Settlement calculation
Margin requirement (worst case)
Adding New Sources
New Price Source
New APR Adapter
Error Handling
Price Validation
Rate Validation
Security Considerations
Oracle Manipulation Protection
Protection
Description
Admin Controls
Current Deployments (Polygon)
Contract
Address
Key Takeaways
Next Steps
Last updated