HyperLend
  • HyperLend
  • → ESSENTIALS
    • What is HyperLend?
    • Why Hyperliquid EVM?
    • Add to Home Screen (Mobile App)
    • Key Features and Benefits
    • Partners
    • How to HyperLend?
      • ↪How to Lend on HyperLend
      • ↪ How to Borrow from HyperLend
      • ↪ How to Loop on HyperLend
      • ↪ How to Refer on HyperLend
      • ↪ How to Share your Yield in Style
      • ↪ How to Create a Proposal
  • → HyperLend
    • Core Components
    • Risks
    • Oracle
    • Points
    • Tokenization
    • Fees
    • Liquidations
    • HyperLoop
    • Referrals
    • Fees and Yield
    • Liquid Perpetual Positions
    • Liquid Hyperliquidity Provider (hHLP)
    • HyperLend Architecture
  • → HYPERTRACK
    • Introduction
    • Getting Started
    • Bot Functions
      • ↪ Watch Address
      • ↪ Remove Address
      • ↪ Liquidations Alert
      • ↪ Health Factor
      • ↪ Borrow Rate
      • ↪ Advanced Approach
    • FAQ
  • → DEVELOPER DOCUMENTATION
    • Introduction
    • API
    • Data & Indexers
    • SDK
    • Contract Addresses
    • Core Pools
      • ↪ pool
      • ↪ oracles
      • ↪ interest rate strategy
      • ↪ flash-loans
    • Isolated Pools
      • ↪ overview
      • ↪ key-concepts
      • ↪ liquidations
      • ↪ interest rates
Powered by GitBook
On this page
  1. → DEVELOPER DOCUMENTATION
  2. Core Pools

↪ oracles

HyperlendOracle

Contract for obtaining asset prices and managing price sources.

This contract is governed by Hyperlend Governance.


View Methods

getAssetPrice

solidityCopy codefunction getAssetPrice(address asset) public view override returns (uint256)

Retrieves the price of the supported asset in the BASE_CURRENCY of the Hyperlend Market, denominated in wei.

Input Parameters:

Name
Type
Description

asset

address

The address of the asset

Return Values:

Type
Description

uint256

The price of the asset in the BASE_CURRENCY of Hyperlend Market in wei


getAssetsPrices

solidityCopy codefunction getAssetsPrices(address[] calldata assets) external view override returns (uint256[] memory)

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:

Name
Type
Description

assets

address[]

The list of asset addresses to query prices for

Return Values:

Type
Description

uint256[]

The prices of the specified assets in the BASE_CURRENCY of Hyperlend Market in wei


getSourceOfAsset

solidityCopy codefunction getSourceOfAsset(address asset) external view override returns (address)

Returns the address of the price source for a specific asset.

Input Parameters:

Name
Type
Description

asset

address

The address of the asset

Return Values:

Type
Description

address

The address of the price source


getFallbackOracle

solidityCopy codefunction getFallbackOracle() external view returns (address)

Retrieves the address of the fallback oracle.

Return Values:

Type
Description

address

The address of the fallback oracle

Previous↪ poolNext↪ interest rate strategy

Last updated 16 days ago