Skip to main content

IOracle

IOracle

Oracle interface for use with PriceFeed

Addresses

ChainAddress

Functions

setValue

Record the newest value for a particular product

function setValue(bytes32 productId, FPUnsigned value, uint64 timestamp) external

Parameters

NameTypeDescription
productIdbytes32Product to update
valueFPUnsignedNewest value, such as a price or dominance %
timestampuint64when value was generated

getValue

Retrieve newest value (and timestamp) for a particular product

function getValue(bytes32 productId) external view returns (FPUnsigned value, uint64 timestamp)

Parameters

NameTypeDescription
productIdbytes32Product to retrieve