Skip to main content

IPriceOracleGetter

IPriceOracleGetter​

Interface for the Aave price oracle.

BASE_CURRENCY​

function BASE_CURRENCY() external view returns (address)

Returns the base currency address

Address 0x0 is reserved for USD as base currency.

Return Values​

NameTypeDescription
[0]addressReturns the base currency address.

BASE_CURRENCY_UNIT​

function BASE_CURRENCY_UNIT() external view returns (uint256)

Returns the base currency unit

1 ether for ETH, 1e8 for USD.

Return Values​

NameTypeDescription
[0]uint256Returns the base currency unit.

getAssetPrice​

function getAssetPrice(address asset) external view returns (uint256)

Returns the asset price in the base currency

Parameters​

NameTypeDescription
assetaddressThe address of the asset

Return Values​

NameTypeDescription
[0]uint256The price of the asset