↪ oracles
HyperlendOracle
Contract for obtaining asset prices and managing price sources.
The source code is available on GitHub.
This contract is governed by Hyperlend Governance.
View Methods
getAssetPrice
Retrieves the price of the supported asset
in the BASE_CURRENCY
of the Hyperlend Market, denominated in wei.
Input Parameters:
asset
address
The address of the asset
Return Values:
uint256
The price of the asset in the BASE_CURRENCY
of Hyperlend Market in wei
getAssetsPrices
Retrieves a list of prices for a given list of supported assets
in the BASE_CURRENCY
of the Hyperlend Market. All prices are denominated in wei.
Input Parameters:
assets
address[]
The list of asset addresses to query prices for
Return Values:
uint256[]
The prices of the specified assets in the BASE_CURRENCY
of Hyperlend Market in wei
getSourceOfAsset
Returns the address of the price source for a specific asset
.
Input Parameters:
asset
address
The address of the asset
Return Values:
address
The address of the price source
getFallbackOracle
Retrieves the address of the fallback oracle.
Return Values:
address
The address of the fallback oracle
Last updated