IOracleFeed

Git Source

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

NameTypeDescription
price_uint256The most recent valid price.