MasterPriceOracle
Inherits: Ownable, IOracle
Author: Sperax Foundation
Communicates with different price feeds to get the price
State Variables
tokenPriceFeed
Store price feed data for tokens.
Functions
updateTokenPriceFeed
Add/Update price feed for _token
Have to be extra cautious while updating the price feed.
Parameters
removeTokenPriceFeed
Remove an existing price feed for _token
.
Parameters
getPrice
Gets the price feed for _token
.
Function reverts if the price feed does not exists.
Parameters
Returns
priceFeedExists
Validates if price feed exists for a _token
Function reverts if price feed not set.
Parameters
Returns
_getPriceFeed
Gets the price feed for a _token
given the feed data.
Parameters
Returns
Events
PriceFeedUpdated
PriceFeedRemoved
Errors
InvalidAddress
UnableToFetchPriceFeed
InvalidPriceFeed
PriceFeedNotFound
Last updated