IOracle
IOracle
Oracle interface for use with PriceFeed
Addresses
Chain | Address |
---|
Functions
setValue
Record the newest value for a particular product
function setValue(bytes32 productId, FPUnsigned value, uint64 timestamp) external
Parameters
Name | Type | Description |
---|---|---|
productId | bytes32 | Product to update |
value | FPUnsigned | Newest value, such as a price or dominance % |
timestamp | uint64 | when 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
Name | Type | Description |
---|---|---|
productId | bytes32 | Product to retrieve |