IERC7726OraclePriceCache
Title: IERC7726OraclePriceCache
Author: OlympusDAO
Pair-level cache interface for oracle clones
Use this interface for clone contracts that expose cache helpers for arbitrary base/quote pairs while applying their own configured max-age policy internally.
Functions
cachePrice
Updates the cached direct pair unconditionally
function cachePrice(address base_, address quote_) external;
Parameters
| Name | Type | Description |
|---|---|---|
base_ | address | The base asset address |
quote_ | address | The quote asset address |
cachePriceIfNecessary
Updates the cached direct pair only if stale or unset
function cachePriceIfNecessary(address base_, address quote_) external;
Parameters
| Name | Type | Description |
|---|---|---|
base_ | address | The base asset address |
quote_ | address | The quote asset address |