2021-12-06 15:29:34 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
|
|
|
pragma solidity 0.6.12;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @title IAaveOracle interface
|
|
|
|
* @notice Interface for the Aave oracle.
|
|
|
|
**/
|
|
|
|
|
|
|
|
interface IAaveOracle {
|
|
|
|
function BASE_CURRENCY() external view returns (address); // if usd returns 0x0, if eth returns weth address
|
|
|
|
function BASE_CURRENCY_UNIT() external view returns (uint256);
|
|
|
|
|
|
|
|
/***********
|
|
|
|
@dev returns the asset price in ETH
|
|
|
|
*/
|
|
|
|
function getAssetPrice(address asset) external view returns (uint256);
|
2022-02-03 11:49:06 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @notice Returns the address of the source for an asset address
|
|
|
|
* @param asset The address of the asset
|
|
|
|
* @return The address of the source
|
|
|
|
*/
|
|
|
|
function getSourceOfAsset(address asset) external view returns (address);
|
2022-02-03 11:56:11 +00:00
|
|
|
}
|