IOracle
IOracle
Oracle interface for use with PriceFeed
Addresses
Chain | Address |
---|
Functions
setValue
Record the newest value for a particular product
function setValue(ProductId productId, FPUnsigned value, uint64 timestamp) external
Parameters
Name | Type | Description |
---|---|---|
productId | ProductId | 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(ProductId productId) external view returns (FPUnsigned value, uint64 timestamp)
Parameters
Name | Type | Description |
---|---|---|
productId | ProductId | Product to retrieve |
InvalidOracle
error InvalidOracle()