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
<none>
address
The address of the PoolConfigurator proxy.
setPoolConfiguratorImpl
Sets or initializes the PoolConfigurator proxy with a new implementation.
Parameters
newPoolConfiguratorImpl
address
The address of the new PoolConfigurator implementation.
params
bytes
The initialization parameters for the PoolConfigurator.
getLoanManager
Retrieves the address of the LoanManager proxy.
Returns
<none>
address
The address of the LoanManager proxy.
setLoanManagerImpl
Sets or initializes the LoanManager proxy with a new implementation.
Parameters
newLoanManagerImpl
address
The address of the new LoanManager implementation.
params
bytes
The initialization parameters for the LoanManager.
getWithdrawalManager
Retrieves the address of the WithdrawalManager proxy.
Returns
<none>
address
The address of the WithdrawalManager proxy.
setWithdrawalManagerImpl
Sets or initializes the WithdrawalManager proxy with a new implementation.
Parameters
newWithdrawalManagerImpl
address
The address of the new WithdrawalManager implementation.
params
bytes
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
id
bytes32
The identifier of the contract to update.
newImplementationAddress
address
The address of the new implementation.
params
bytes
The initialization parameters for the proxy contract.
getIsleGlobals
Retrieves the address of IsleGlobals.
Returns
<none>
address
The address of IsleGlobals.
setIsleGlobals
Sets a new address for IsleGlobals, replacing the current address in the registry.
Parameters
newIsleGlobals
address
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
id
bytes32
The identifier of the contract to retrieve.
Returns
<none>
address
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
id
bytes32
The identifier for which to set the address.
newAddress
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
id
bytes32
The id of the proxy to be updated
newAddress
address
The address of the new implementation
_updateImpl
_setMarketId
Updates the identifier of the Isle market.
Parameters
newMarketId
string
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
id
bytes32
The id
Returns
<none>
address
The address of the implementation contract
Last updated