2020-05-29 16:45:37 +00:00
|
|
|
// SPDX-License-Identifier: agpl-3.0
|
|
|
|
pragma solidity ^0.6.8;
|
|
|
|
|
|
|
|
/**
|
|
|
|
@title ILendingPoolAddressesProvider interface
|
2020-06-20 23:40:03 +00:00
|
|
|
@notice provides the interface to fetch the Aave protocol address
|
2020-05-29 16:45:37 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
interface ILendingPoolAddressesProvider {
|
2020-08-21 14:03:01 +00:00
|
|
|
event LendingPoolUpdated(address indexed newAddress);
|
2020-09-16 12:09:42 +00:00
|
|
|
event AaveAdminUpdated(address indexed newAddress);
|
2020-08-21 14:03:01 +00:00
|
|
|
event LendingPoolConfiguratorUpdated(address indexed newAddress);
|
2020-09-16 10:41:12 +00:00
|
|
|
event LendingPoolCollateralManagerUpdated(address indexed newAddress);
|
2020-08-21 14:03:01 +00:00
|
|
|
event EthereumAddressUpdated(address indexed newAddress);
|
|
|
|
event PriceOracleUpdated(address indexed newAddress);
|
|
|
|
event LendingRateOracleUpdated(address indexed newAddress);
|
|
|
|
event ProxyCreated(bytes32 id, address indexed newAddress);
|
2020-09-29 14:31:21 +00:00
|
|
|
event AddressSet(bytes32 id, address indexed newAddress, bool hasProxy);
|
|
|
|
|
|
|
|
function setAddress(
|
|
|
|
bytes32 id,
|
|
|
|
address newAddress,
|
|
|
|
address impl
|
|
|
|
) external;
|
|
|
|
|
|
|
|
function getAddress(bytes32 id) external view returns (address);
|
2020-08-21 14:03:01 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
function getLendingPool() external view returns (address);
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-08-19 12:53:00 +00:00
|
|
|
function setLendingPoolImpl(address pool) external;
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-07-13 08:54:08 +00:00
|
|
|
function getLendingPoolConfigurator() external view returns (address);
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-08-19 12:53:00 +00:00
|
|
|
function setLendingPoolConfiguratorImpl(address configurator) external;
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-09-16 10:41:12 +00:00
|
|
|
function getLendingPoolCollateralManager() external view returns (address);
|
2020-05-29 16:45:37 +00:00
|
|
|
|
2020-09-16 10:41:12 +00:00
|
|
|
function setLendingPoolCollateralManager(address manager) external;
|
2020-07-13 08:54:08 +00:00
|
|
|
|
2020-09-16 12:09:42 +00:00
|
|
|
function getAaveAdmin() external view returns (address);
|
2020-07-13 08:54:08 +00:00
|
|
|
|
2020-09-16 12:09:42 +00:00
|
|
|
function setAaveAdmin(address aaveAdmin) external;
|
2020-07-13 08:54:08 +00:00
|
|
|
|
|
|
|
function getPriceOracle() external view returns (address);
|
|
|
|
|
2020-08-19 12:53:00 +00:00
|
|
|
function setPriceOracle(address priceOracle) external;
|
2020-07-13 08:54:08 +00:00
|
|
|
|
|
|
|
function getLendingRateOracle() external view returns (address);
|
|
|
|
|
2020-08-19 12:53:00 +00:00
|
|
|
function setLendingRateOracle(address lendingRateOracle) external;
|
2020-07-13 08:54:08 +00:00
|
|
|
}
|