IPoolAddressesProvider
Defines the basic interface for a Pool Addresses Provider.
Functions
getMarketId
Returns the id of the Aave market to which this contract points to.
Returns
Name | Type | Description |
---|---|---|
|
| 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
Name | Type | Description |
---|---|---|
|
| 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
Name | Type | Description |
---|---|---|
|
| The id |
Returns
Name | Type | Description |
---|---|---|
|
| 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
Name | Type | Description |
---|---|---|
|
| The id |
|
| The address of the new implementation |
|
| The intialization parameters for the proxied contract |
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
Name | Type | Description |
---|---|---|
|
| The id |
|
| The address to set |
getPoolConfigurator
Returns the address of the PoolConfigurator proxy.
Returns
Name | Type | Description |
---|---|---|
|
| 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
Name | Type | Description |
---|---|---|
|
| The new PoolConfigurator implementation |
|
|
getLoanManager
Returns the address of the LoanManager proxy.
Returns
Name | Type | Description |
---|---|---|
|
| The LoanManager proxy address |
setLoanManagerImpl
Updates the implementation of the LoanManager, or creates a proxy setting the new LoanManager
implementation when the function is called for the first time.
Parameters
Name | Type | Description |
---|---|---|
|
| The new LoanManager implementation |
getWithdrawalManager
Returns the address of the WithdrawalManager proxy.
Returns
Name | Type | Description |
---|---|---|
|
| The WithdrawalManager proxy address |
setWithdrawalManagerImpl
Updates the implementation of the WithdrawalManager, or creates a proxy setting the new WithdrawalManager
implementation when the function is called for the first time.
Parameters
Name | Type | Description |
---|---|---|
|
| The new WithdrawalManager implementation |
|
|
getIsleGlobals
Returns the address of isle globals.
Returns
Name | Type | Description |
---|---|---|
|
| The IsleGlobals address |
setIsleGlobals
Sets an address for IsleGlobals replacing the address saved in the addresses map
Parameters
Name | Type | Description |
---|---|---|
|
| IsleGlobals address |
Events
MarketIdSet
Emitted when the market identifier is updated.
PoolConfiguratorUpdated
Emitted when the pool configurator is updated.
LoanManagerUpdated
Emitted when the loan manager is updated.
WithdrawalManagerUpdated
Emitted when the withdrawal manager is updated.
IsleGlobalsUpdated
Emitted when isle globals is updated.
ProxyCreated
Emitted when a new proxy is created.
AddressSet
Emitted when a new non-proxied contract address is registered.
AddressSetAsProxy
Emitted when the implementation of the proxy registered with id is updated
Last updated