IPoolAddressesProvider
Defines the basic interface for a Pool Addresses Provider.
MarketIdSet
Emitted when the market identifier is updated.
Parameters
oldMarketId
string
The old id of the market
newMarketId
string
The new id of the market
PoolUpdated
Emitted when the pool is updated.
Parameters
oldAddress
address
The old address of the Pool
newAddress
address
The new address of the Pool
PoolConfiguratorUpdated
Emitted when the pool configurator is updated.
Parameters
oldAddress
address
The old address of the PoolConfigurator
newAddress
address
The new address of the PoolConfigurator
PriceOracleUpdated
Emitted when the price oracle is updated.
Parameters
oldAddress
address
The old address of the PriceOracle
newAddress
address
The new address of the PriceOracle
ACLManagerUpdated
Emitted when the ACL manager is updated.
Parameters
oldAddress
address
The old address of the ACLManager
newAddress
address
The new address of the ACLManager
ACLAdminUpdated
Emitted when the ACL admin is updated.
Parameters
oldAddress
address
The old address of the ACLAdmin
newAddress
address
The new address of the ACLAdmin
PriceOracleSentinelUpdated
Emitted when the price oracle sentinel is updated.
Parameters
oldAddress
address
The old address of the PriceOracleSentinel
newAddress
address
The new address of the PriceOracleSentinel
PoolDataProviderUpdated
Emitted when the pool data provider is updated.
Parameters
oldAddress
address
The old address of the PoolDataProvider
newAddress
address
The new address of the PoolDataProvider
ProxyCreated
Emitted when a new proxy is created.
Parameters
id
bytes32
The identifier of the proxy
proxyAddress
address
The address of the created proxy contract
implementationAddress
address
The address of the implementation contract
AddressSet
Emitted when a new non-proxied contract address is registered.
Parameters
id
bytes32
The identifier of the contract
oldAddress
address
The address of the old contract
newAddress
address
The address of the new contract
AddressSetAsProxy
Emitted when the implementation of the proxy registered with id is updated
Parameters
id
bytes32
The identifier of the contract
proxyAddress
address
The address of the proxy contract
oldImplementationAddress
address
The address of the old implementation contract
newImplementationAddress
address
The address of the new implementation contract
getMarketId
Returns the id of the Aave market to which this contract points to.
Return Values
[0]
string
The market id
setMarketId
Associates an id with a specific PoolAddressesProvider.
This can be used to create an onchain registry of PoolAddressesProviders to identify and validate multiple Aave markets.
Parameters
newMarketId
string
The market id
getAddress
Returns an address by its identifier.
The returned address might be an EOA or a contract, potentially proxied It returns ZERO if there is no registered address with the given id
Parameters
id
bytes32
The id
Return Values
[0]
address
The address of the registered for the specified id
setAddressAsProxy
General function to update the implementation of a proxy registered with
certain id
. If there is no proxy registered, it will instantiate one and
set as implementation the newImplementationAddress
.
IMPORTANT Use this function carefully, only for ids that don't have an explicit setter function, in order to avoid unexpected consequences
Parameters
id
bytes32
The id
newImplementationAddress
address
The address of the new implementation
setAddress
Sets an address for an id replacing the address saved in the addresses map.
IMPORTANT Use this function carefully, as it will do a hard replacement
Parameters
id
bytes32
The id
newAddress
address
The address to set
getPool
Returns the address of the Pool proxy.
Return Values
[0]
address
The Pool proxy address
setPoolImpl
Updates the implementation of the Pool, or creates a proxy
setting the new pool
implementation when the function is called for the first time.
Parameters
newPoolImpl
address
The new Pool implementation
getPoolConfigurator
Returns the address of the PoolConfigurator proxy.
Return Values
[0]
address
The PoolConfigurator proxy address
setPoolConfiguratorImpl
Updates the implementation of the PoolConfigurator, or creates a proxy
setting the new PoolConfigurator
implementation when the function is called for the first time.
Parameters
newPoolConfiguratorImpl
address
The new PoolConfigurator implementation
getPriceOracle
Returns the address of the price oracle.
Return Values
[0]
address
The address of the PriceOracle
setPriceOracle
Updates the address of the price oracle.
Parameters
newPriceOracle
address
The address of the new PriceOracle
getACLManager
Returns the address of the ACL manager.
Return Values
[0]
address
The address of the ACLManager
setACLManager
Updates the address of the ACL manager.
Parameters
newAclManager
address
The address of the new ACLManager
getACLAdmin
Returns the address of the ACL admin.
Return Values
[0]
address
The address of the ACL admin
setACLAdmin
Updates the address of the ACL admin.
Parameters
newAclAdmin
address
The address of the new ACL admin
getPriceOracleSentinel
Returns the address of the price oracle sentinel.
Return Values
[0]
address
The address of the PriceOracleSentinel
setPriceOracleSentinel
Updates the address of the price oracle sentinel.
Parameters
newPriceOracleSentinel
address
The address of the new PriceOracleSentinel
getPoolDataProvider
Returns the address of the data provider.
Return Values
[0]
address
The address of the DataProvider
setPoolDataProvider
Updates the address of the data provider.
Parameters
newDataProvider
address
The address of the new DataProvider