IAaveOracle
Defines the basic interface for the Aave Oracle
BaseCurrencySet
Emitted after the base currency is set
Parameters
baseCurrency
address
The base currency of used for price quotes
baseCurrencyUnit
uint256
The unit of the base currency
AssetSourceUpdated
Emitted after the price source of an asset is updated
Parameters
asset
address
The address of the asset
source
address
The price source of the asset
FallbackOracleUpdated
Emitted after the address of fallback oracle is updated
Parameters
fallbackOracle
address
The address of the fallback oracle
ADDRESSES_PROVIDER
Returns the PoolAddressesProvider
Return Values
[0]
contract IPoolAddressesProvider
The address of the PoolAddressesProvider contract
setAssetSources
Sets or replaces price sources of assets
Parameters
assets
address[]
The addresses of the assets
sources
address[]
The addresses of the price sources
setFallbackOracle
Sets the fallback oracle
Parameters
fallbackOracle
address
The address of the fallback oracle
getAssetsPrices
Returns a list of prices from a list of assets addresses
Parameters
assets
address[]
The list of assets addresses
Return Values
[0]
uint256[]
The prices of the given assets
getSourceOfAsset
Returns the address of the source for an asset address
Parameters
asset
address
The address of the asset
Return Values
[0]
address
The address of the source
getFallbackOracle
Returns the address of the fallback oracle
Return Values
[0]
address
The address of the fallback oracle