IPoolAddressesProvider
Defines the basic interface for a Pool Addresses Provider.
Functions
getMarketId
Retrieves the identifier of the Isle market associated with this contract.
Returns
Name | Type | Description |
---|---|---|
|
| The identifier of the market. |
setMarketId
Links a new market identifier to this PoolAddressesProvider.
Useful for creating a registry of PoolAddressesProviders for multiple Isle markets.
Parameters
Name | Type | Description |
---|---|---|
|
| The new market identifier. |
getAddress
Fetches an address associated with a given identifier.
Can return either a direct contract address or a proxy address.
Returns address(0) if no address is registered with the given identifier.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier of the contract to retrieve. |
Returns
Name | Type | Description |
---|---|---|
|
| The address associated with the specified identifier. |
setAddressAsProxy
Updates or initializes a proxy for a given identifier with a new implementation address.
Use with caution for identifiers without dedicated setter functions to prevent unintended effects.
Only use for identifiers POOL_CONFIGURATOR, LOAN_MANAGER, WITHDRAWAL_MANAGER, or ISLE_GLOBALS.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier of the contract to update. |
|
| The address of the new implementation. |
|
| The initialization parameters for the proxy contract. |
setAddress
Directly sets a new address for a given identifier, replacing the current address.
Use with caution as this will overwrite the existing address without any checks.
Only use for identifiers POOL_CONFIGURATOR, LOAN_MANAGER, WITHDRAWAL_MANAGER, or ISLE_GLOBALS.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier for which to set the address. |
|
| The new address to associate with the identifier. |
getPoolConfigurator
Retrieves the address of the PoolConfigurator proxy.
Returns
Name | Type | Description |
---|---|---|
|
| The address of the PoolConfigurator proxy. |
setPoolConfiguratorImpl
Sets or initializes the PoolConfigurator proxy with a new implementation.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the new PoolConfigurator implementation. |
|
| The initialization parameters for the PoolConfigurator. |
getLoanManager
Retrieves the address of the LoanManager proxy.
Returns
Name | Type | Description |
---|---|---|
|
| The address of the LoanManager proxy. |
setLoanManagerImpl
Sets or initializes the LoanManager proxy with a new implementation.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the new LoanManager implementation. |
|
| The initialization parameters for the LoanManager. |
getWithdrawalManager
Retrieves the address of the WithdrawalManager proxy.
Returns
Name | Type | Description |
---|---|---|
|
| The address of the WithdrawalManager proxy. |
setWithdrawalManagerImpl
Sets or initializes the WithdrawalManager proxy with a new implementation.
Parameters
Name | Type | Description |
---|---|---|
|
| The address of the new WithdrawalManager implementation. |
|
| The initialization parameters for the WithdrawalManager. |
getIsleGlobals
Retrieves the address of IsleGlobals.
Returns
Name | Type | Description |
---|---|---|
|
| The address of IsleGlobals. |
setIsleGlobals
Sets a new address for IsleGlobals, replacing the current address in the registry.
Parameters
Name | Type | Description |
---|---|---|
|
| The new address for IsleGlobals. |
Events
MarketIdSet
Emitted when the market identifier is changed.
Parameters
Name | Type | Description |
---|---|---|
|
| The previous identifier of the market. |
|
| The new identifier of the market. |
PoolConfiguratorUpdated
Emitted when the address of the PoolConfigurator is updated.
Parameters
Name | Type | Description |
---|---|---|
|
| The former address of the PoolConfigurator. |
|
| The updated address of the PoolConfigurator. |
LoanManagerUpdated
Emitted when the address of the LoanManager is updated.
Parameters
Name | Type | Description |
---|---|---|
|
| The former address of the LoanManager. |
|
| The updated address of the LoanManager. |
WithdrawalManagerUpdated
Emitted when the address of the WithdrawalManager is updated.
Parameters
Name | Type | Description |
---|---|---|
|
| The former address of the WithdrawalManager. |
|
| The updated address of the WithdrawalManager. |
IsleGlobalsUpdated
Emitted when the address of IsleGlobals is updated.
Parameters
Name | Type | Description |
---|---|---|
|
| The former address of IsleGlobals. |
|
| The updated address of IsleGlobals. |
ProxyCreated
Emitted when a new proxy is created for a contract.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier of the contract. |
|
| The address of the newly created proxy contract. |
|
| The address of the implementation contract linked to the proxy. |
AddressSet
Emitted when a new address is registered for a contract without a proxy.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier of the contract. |
|
| The former address of the contract. |
|
| The newly registered address of the contract. |
AddressSetAsProxy
Emitted when the implementation of a registered proxy is updated.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier of the contract. |
|
| The address of the proxy contract. |
|
| The former address of the implementation contract. |
|
| The updated address of the implementation contract. |
Last updated