IAaveOracle
IAaveOracleβ
Defines the basic interface for the Aave Oracle
BaseCurrencySetβ
event BaseCurrencySet(address baseCurrency, uint256 baseCurrencyUnit)
Emitted after the base currency is set
Parametersβ
Name | Type | Description |
---|---|---|
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β
Name | Type | Description |
---|---|---|
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β
Name | Type | Description |
---|---|---|
fallbackOracle | address | The address of the fallback oracle |
ADDRESSES_PROVIDERβ
function ADDRESSES_PROVIDER() external view returns (contract IPoolAddressesProvider)
Returns the PoolAddressesProvider
Return Valuesβ
Name | Type | Description |
---|---|---|
[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β
Name | Type | Description |
---|---|---|
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β
Name | Type | Description |
---|---|---|
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β
Name | Type | Description |
---|---|---|
assets | address[] | The list of assets addresses |
Return Valuesβ
Name | Type | Description |
---|---|---|
[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β
Name | Type | Description |
---|---|---|
asset | address | The address of the asset |
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The address of the source |
getFallbackOracleβ
function getFallbackOracle() external view returns (address)
Returns the address of the fallback oracle
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The address of the fallback oracle |