IPriceFeed

Git Source

Functions

FEED_TYPE

The type of the price feed.

function FEED_TYPE() external view returns (string memory);

source

Get the address of the price feed source.

function source() external view returns (address);

decimals

Get the number of decimals used by the price feed.

function decimals() external view returns (uint8);

description

Get the description of the price feed.

function description() external view returns (string memory);

getPrice

Get the current price.

function getPrice() external view returns (uint256);

Errors

BAD_PRICE

Thrown when the oracle price is invalid.

error BAD_PRICE();

STALE_PRICE

Thrown when the oracle price is stale.

error STALE_PRICE();

Last updated