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:
First checking for a price from a Chainlink aggregator.
If the price is below or equal to zero, we call our fallback price oracle.
The fallback price oracle is currently maintained by the Aave team.
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.
function getAssetPrice(address _asset) public view returns(uint256)
Returns the price of the supported
_asset in ETH wei units.
function getAssetsPrices(address calldata _assets) external view returns(uint256 memory)
Returns any array of prices in ETH wei units.
an array of addresses of the underlying assets
function getSourceOfAsset(address _asset) external view returns(uint256)
Returns the address of the price source for
function getFallbackOracle() external view returns(uint256)
Returns the address of the fallback oracle.