IAaveOracle
Defines the basic interface for the Aave Oracle
BaseCurrencySet
event BaseCurrencySet(address baseCurrency, uint256 baseCurrencyUnit)
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
event AssetSourceUpdated(address asset, address source)
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
event FallbackOracleUpdated(address fallbackOracle)
Emitted after the address of fallback oracle is updated
Parameters
fallbackOracle
address
The address of the fallback oracle
ADDRESSES_PROVIDER
function ADDRESSES_PROVIDER() external view returns (contract IPoolAddressesProvider)
Returns the PoolAddressesProvider
Return Values
[0]
contract IPoolAddressesProvider
The address of the PoolAddressesProvider contract
setAssetSources
function setAssetSources(address[] assets, address[] sources) external
Sets or replaces price sources of assets
Parameters
assets
address[]
The addresses of the assets
sources
address[]
The addresses of the price sources
setFallbackOracle
function setFallbackOracle(address fallbackOracle) external
Sets the fallback oracle
Parameters
fallbackOracle
address
The address of the fallback oracle
getAssetsPrices
function getAssetsPrices(address[] assets) external view returns (uint256[])
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
function getSourceOfAsset(address asset) external view returns (address)
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
function getFallbackOracle() external view returns (address)
Returns the address of the fallback oracle
Return Values
[0]
address
The address of the fallback oracle