function getMarketId() external view override returns (string memory)
Fetch the market id of the associated Aave market.
Return Values
getAddress
function getAddress(bytes32 id) public view override returns (address)
Fetch the address of protocol contract stored at given id.
Call Params
Return Values
// Get address of incentive controllerimport { utils } from'@ethers/lib/utils';constid=utils.keccak256(utils.toUtf8Bytes("INCENTIVES_CONTROLLER"));constaddress=poolAddressProvider.getAddress(id);
getPool
function getPool() external view override returns (address)
Fetch the contract of latest pool
Return Values
getPoolConfigurator
function getPoolConfigurator() external view override returns (address)
Fetch the PoolConfigurator is used for configuration methods, like init reserves or update token implementation etc, of the market.
Return Value
getPriceOracle
function getPriceOracle() external view override returns (address)
Fetch Price Oracle used by the market.
Return Value
getACLManager
function getACLManager() external view override returns (address)
Fetch ACLManger that manages the system role of the market
Return Value
getACLAdmin
function getACLAdmin() external view override returns (address)
Fetch ACLAdmin of the market which holds the DEFAULT_ADMIN_ROLE in ACLManager.
Return Value
getPriceOracleSentinel
function getPriceOracleSentinel() external view override returns (address)
Return Value
getPoolDataProvider
function getPoolDataProvider() external view override returns (address) Fetch address of latest pool data provider.
Return Value
Write Methods
setMarketId
function setMarketId(string memory newMarketId) external override onlyOwner
Updates the identifier of the Aave market
Call Params
setAddress
function setAddress(bytes32 id, address newAddress) external override onlyOwner
Sets the address of protocol contract stored at given id.
Eg. utils.keccak256(utils.toUtf8Bytes("INCENTIVES_CONTROLLER")) is set to address of INCENTIVES_CONTROLLER
Call Params
setAddressAsProxy
function setAddressAsProxy(bytes32 id, address newImplementationAddress) external override onlyOwner
Sets/updates the implementation address of a specific proxied protocol contract.
If there is no proxy registered with the given identifier, it creates the proxy setting newAddress as implementation and calls the initialize() function on the proxy
Call Params
setPoolImpl
function setPoolImpl(address newPoolImpl) external override onlyOwner
Sets/update the implementation of the POOL proxy contract.
Call Params
setPoolConfiguratorImp
function setPoolConfiguratorImpl(address newPoolConfiguratorImpl) external override onlyOwner
Sets/updates the implementation of the POOL_CONFIGURATOR proxy contract.
Call Params
setPriceOracle
function setPriceOracle(address newPriceOracle) external override onlyOwner
Sets/updates address of the PriceOracle contract.
Call Params
setACLAdmin
function setACLAdmin(address newAclAdmin) external override onlyOwner
Sets/updates address of the AclAdmin.
Call Params
setPriceOracleSentinel
function setPriceOracleSentinel(address newPriceOracleSentinel) external override onlyOwner
Sets/updates address of the Price oracle sentinel.
Call Params
setPoolDataProvider
function setPoolDataProvider(address newDataProvider) external override onlyOwner