IDenominatedOracle

Git Source

Inherits: IBaseOracle

Functions

priceSource

Address of the base price source that is used to calculate the price

Assumes that the price source is a valid IBaseOracle

function priceSource() external view returns (IBaseOracle _priceSource);

denominationPriceSource

Address of the base price source that is used to calculate the denominated price

Assumes that the price source is a valid IBaseOracle

function denominationPriceSource() external view returns (IBaseOracle _denominationPriceSource);

inverted

Whether the price source quote should be inverted or not

Used to fix an inverted path of token quotes into a continuous chain of tokens (e.g. '(ETH / WBTC)^-1 * (ETH / USD)')

function inverted() external view returns (bool _inverted);

Errors

DenominatedOracle_NullPriceSource

Throws if either the provided price source or denominated price source are null

error DenominatedOracle_NullPriceSource();