BlastPriceOracle
0x3A9B69eE4b7F238c38380A540B211f682f724968
Methods
MAX_SWING
The max swing of the price per update (20%)
Returns
_0
uint256
undefined
UPDATE_INTERVAL
The min update interval (5 minutes)
Returns
_0
uint256
undefined
fallbackPrices
The fallback price of the assets
Parameters
_0
address
undefined
Returns
_0
uint256
undefined
getPrice
Gets the price of an asset
Parameters
asset
address
The asset to get the price of
Returns
_0
uint256
The price of the asset
lastUpdated
The last updated time of the assets
Parameters
_0
address
undefined
Returns
_0
uint256
undefined
owner
Returns the address of the current owner.
Returns
_0
address
undefined
poster
The poster address
Returns
_0
address
undefined
redStoneFeeds
The red stone price feeds
Parameters
_0
address
undefined
Returns
_0
address
undefined
renounceOwnership
Leaves the contract without owner. It will not be possible to call onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
setFallbackPrices
Parameters
priceData
BlastPriceOracle.PriceData[]
undefined
setPoster
Sets the poster address
Parameters
_poster
address
The poster address
setRedStonePriceFeeds
Parameters
priceFeedData
BlastPriceOracle.PriceFeedData[]
undefined
transferOwnership
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
newOwner
address
undefined
Events
FallbackPriceSet
Parameters
asset
address
undefined
price
uint256
undefined
OwnershipTransferred
Parameters
previousOwner indexed
address
undefined
newOwner indexed
address
undefined
PosterSet
Parameters
poster
address
undefined
PriceFeedSet
Parameters
asset
address
undefined
priceFeed
address
undefined
Last updated