Skip to main content

IOraclePriceCache

Git Source

Title: IOraclePriceCache

Author: OlympusDAO

Interface for pair oracle contracts that can trigger caching for their configured pair

Use this for pair oracles where the cached pair is embedded in oracle configuration, so callers do not pass pair arguments.

Functions​

cachePrice​

Triggers a cache update for the oracle's configured pair

function cachePrice() external;

cachePriceIfNecessary​

Triggers a cache update only when the oracle's configured pair cache is stale

function cachePriceIfNecessary() external;