Skip to content

BinanceOracle

The following transparent-proxy implementations were read on August 27, 2026 and match the BinanceOracle v2.16.0 source:

NetworkChecked blockProxyImplementation
BNB Chain1183673420x594810b741d136f1960141C0d8Fb4a91bE78A8200x201C72986d391A5a8E1713ac5a42CEAf90556a1b
opBNB1788377320xB09EC9B628d04E1287216Aa3e2432291f50F95880x05CEE4B936C654be43993D3A8Baa76c8fdd5BeCC

Feed-registry addresses, token-symbol overrides, stale periods, ownership, ACM permissions, and active ResilientOracle roles are dynamic and must be read separately.

The proxy API inherits owner, pendingOwner, transferOwnership, acceptOwnership, renounceOwnership, accessControlManager, and owner-only setAccessControlManager.

This oracle fetches price of assets from Binance.

Used to fetch feed registry address.

address sidRegistryAddress

Set this as asset address for BNB. This is the underlying address for vBNB

address BNB_ADDR

Max stale period configuration for assets

mapping(string => uint256) maxStalePeriod

Override symbols to be compatible with Binance feed registry

mapping(string => string) symbols

Used to fetch price of assets used directly when space ID is not supported by current chain.

address feedRegistryAddress

Constructor for the implementation contract.

constructor() public

Sets the contracts required to fetch prices

function initialize(address _sidRegistryAddress, address _accessControlManager) external
NameTypeDescription
_sidRegistryAddressaddressAddress of SID registry
_accessControlManageraddressAddress of the access control manager contract

Used to set the max stale period of an asset

function setMaxStalePeriod(string symbol, uint256 _maxStalePeriod) external
NameTypeDescription
symbolstringThe symbol of the asset
_maxStalePerioduint256The max stake period

Used to override a symbol when fetching price

function setSymbolOverride(string symbol, string overrideSymbol) external
NameTypeDescription
symbolstringThe symbol to override
overrideSymbolstringThe symbol after override

Used to set feed registry address when current chain does not support space ID.

function setFeedRegistryAddress(address newfeedRegistryAddress) external
NameTypeDescription
newfeedRegistryAddressaddressAddress of new feed registry.

Uses Space ID to fetch the feed registry address

function getFeedRegistryAddress() public view returns (address)
NameTypeDescription
[0]addressfeedRegistryAddress Address of binance oracle feed registry.

Gets the price of a asset from the binance oracle

function getPrice(address asset) public view returns (uint256)
NameTypeDescription
assetaddressAddress of the asset
NameTypeDescription
[0]uint256Price in USD