Price Oracle
Throughout the Aave Protocol, we require reliable, up to date, and secure price feeds. Our proxy price provider contract provides this capability and works by:
Aave market
    1.
    First checking for a price from a Chainlink aggregator.
    2.
    If the price is below or equal to zero, we call our fallback price oracle.
      1.
      The fallback price oracle is currently maintained by the Aave team.
    3.
    In the future, Aave governance mechanisms will manage the selection of sources and the fallback price oracle.
The source code can be found on the verified Etherscan contract.
If you need development support, join the #developers channel on our Aave community Discord server.
Always get the latest price oracle address by calling getPriceOracle() on the LendingPoolAddressProvider contract.

View Methods

getAssetPrice()

function getAssetPrice(address _asset) public view returns(uint256)
Returns the price of the supported _asset in ETH wei units.
Parameter Name
Type
Description
_asset
address
address of the underlying asset

getAssetsPrices()

function getAssetsPrices(address[] calldata _assets) external view returns(uint256[] memory)
Returns any array of prices in ETH wei units.
Parameter Name
Type
Description
_assets
address[ ]
an array of addresses of the underlying assets

getSourceOfAsset()

function getSourceOfAsset(address _asset) external view returns(uint256)
Returns the address of the price source for _asset.
Parameter Name
Type
Description
_asset
address
address of the underlying asset

getFallbackOracle()

function getFallbackOracle() external view returns(uint256)
Returns the address of the fallback oracle.
Last modified 10mo ago