Skip to content

Latest commit

 

History

History
126 lines (111 loc) · 3.86 KB

IPriceFeed.md

File metadata and controls

126 lines (111 loc) · 3.86 KB

IPriceFeed.sol

View Source: contracts/Interfaces/IPriceFeed.sol

↘ Derived Contracts: PriceFeed

IPriceFeed

Events

event LastGoodPriceUpdated(uint256  _lastGoodPrice);

Functions


fetchPrice

Returns the latest price obtained from the Oracle. Called by Zero functions that require a current price. It uses the main price feed and fallback to the backup one in case of an error. If both fail return the last good price seen.

function fetchPrice() external nonpayable
returns(uint256)
Source Code
function fetchPrice() external returns (uint256);

Contracts