PoolAddressesProvider
Inherits: IPoolAddressesProvider
State Variables
_marketId
_addresses
POOL_CONFIGURATOR
ISLE_GLOBALS
LOAN_MANAGER
WITHDRAWAL_MANAGER
Functions
onlyGovernor
constructor
getMarketId
setMarketId
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. |
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.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier of the contract to update. |
|
| The address of the new implementation. |
|
| The initialization parameters for the proxy contract. |
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. |
getAddress
Fetches an address associated with a given identifier.
Can return either a direct contract address or a proxy address.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier of the contract to retrieve. |
Returns
Name | Type | Description |
---|---|---|
|
| The address associated with the specified identifier. |
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.
Parameters
Name | Type | Description |
---|---|---|
|
| The identifier for which to set the address. |
|
| The new address to associate with the identifier. |
_updateImpl
Internal function to update the implementation of a specific proxied component of the protocol.
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
If there is already a proxy registered, it just updates the implementation to newAddress
and calls the initialize() function via upgradeToAndCall() in the proxy
Parameters
Name | Type | Description |
---|---|---|
|
| The id of the proxy to be updated |
|
| The address of the new implementation |
_updateImpl
_setMarketId
Updates the identifier of the Isle market.
Parameters
Name | Type | Description |
---|---|---|
|
| The new id of the market |
_getProxyImplementation
Returns the the implementation contract of the proxy contract by its identifier.
It returns ZERO if there is no registered address with the given id
It reverts if the registered address with the given id is not InitializableImmutableAdminUpgradeabilityProxy
Parameters
Name | Type | Description |
---|---|---|
|
| The id |
Returns
Name | Type | Description |
---|---|---|
|
| The address of the implementation contract |
Last updated