BinanceOracle
BinanceOracle
This oracle fetches price of assets from Binance.
Solidity API
sidRegistryAddress
Used to fetch feed registry address.
BNB_ADDR
Set this as asset address for BNB. This is the underlying address for vBNB
maxStalePeriod
Max stale period configuration for assets
symbols
Override symbols to be compatible with Binance feed registry
feedRegistryAddress
Used to fetch price of assets used directly when space ID is not supported by current chain.
constructor
Constructor for the implementation contract.
initialize
Sets the contracts required to fetch prices
Parameters
setMaxStalePeriod
Used to set the max stale period of an asset
Parameters
setSymbolOverride
Used to override a symbol when fetching price
Parameters
setFeedRegistryAddress
Used to set feed registry address when current chain does not support space ID.
Parameters
getFeedRegistryAddress
Uses Space ID to fetch the feed registry address
Return Values
getPrice
Gets the price of a asset from the binance oracle
Parameters
Return Values
Last updated