IOracleFeed
Author: luoyhang003
Standardized interface for oracle price feeds.
Provides a unified method for fetching the latest asset price. Implementations may differ (e.g., Chainlink, Redstone, custom oracles), but must conform to this interface.
Functions
peek
Returns the latest price from the oracle.
The return value should be normalized to 18 decimals whenever possible to maintain consistency across different oracle implementations.
function peek() external view returns (uint256 price_);
Returns
| Name | Type | Description |
|---|---|---|
price_ | uint256 | The most recent valid price. |