BlastPriceOracle
0x3A9B69eE4b7F238c38380A540B211f682f724968
Methods
MAX_SWING
function MAX_SWING() external view returns (uint256)
The max swing of the price per update (20%)
Returns
_0
uint256
undefined
UPDATE_INTERVAL
function UPDATE_INTERVAL() external view returns (uint256)
The min update interval (5 minutes)
Returns
_0
uint256
undefined
fallbackPrices
function fallbackPrices(address) external view returns (uint256)
The fallback price of the assets
Parameters
_0
address
undefined
Returns
_0
uint256
undefined
getPrice
function getPrice(address asset) external view returns (uint256)
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
function lastUpdated(address) external view returns (uint256)
The last updated time of the assets
Parameters
_0
address
undefined
Returns
_0
uint256
undefined
owner
function owner() external view returns (address)
Returns the address of the current owner.
Returns
_0
address
undefined
poster
function poster() external view returns (address)
The poster address
Returns
_0
address
undefined
redStoneFeeds
function redStoneFeeds(address) external view returns (address)
The red stone price feeds
Parameters
_0
address
undefined
Returns
_0
address
undefined
renounceOwnership
function renounceOwnership() external nonpayable
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
function setFallbackPrices(BlastPriceOracle.PriceData[] priceData) external nonpayable
Parameters
priceData
BlastPriceOracle.PriceData[]
undefined
setPoster
function setPoster(address _poster) external nonpayable
Sets the poster address
Parameters
_poster
address
The poster address
setRedStonePriceFeeds
function setRedStonePriceFeeds(BlastPriceOracle.PriceFeedData[] priceFeedData) external nonpayable
Parameters
priceFeedData
BlastPriceOracle.PriceFeedData[]
undefined
transferOwnership
function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (newOwner
). Can only be called by the current owner.
Parameters
newOwner
address
undefined
Events
FallbackPriceSet
event FallbackPriceSet(address asset, uint256 price)
Parameters
asset
address
undefined
price
uint256
undefined
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Parameters
previousOwner indexed
address
undefined
newOwner indexed
address
undefined
PosterSet
event PosterSet(address poster)
Parameters
poster
address
undefined
PriceFeedSet
event PriceFeedSet(address asset, address priceFeed)
Parameters
asset
address
undefined
priceFeed
address
undefined
Last updated