PoolAddressesProvider

Git Source

Inherits: IPoolAddressesProvider

State Variables

_marketId

string private _marketId;

_addresses

mapping(bytes32 => address) private _addresses;

POOL_CONFIGURATOR

bytes32 private constant POOL_CONFIGURATOR = "POOL_CONFIGURATOR";

ISLE_GLOBALS

bytes32 private constant ISLE_GLOBALS = "ISLE_GLOBALS";

LOAN_MANAGER

bytes32 private constant LOAN_MANAGER = "LOAN_MANAGER";

WITHDRAWAL_MANAGER

Functions

onlyGovernor

constructor

getMarketId

setMarketId

getPoolConfigurator

Retrieves the address of the PoolConfigurator proxy.

Returns

Name
Type
Description

<none>

address

The address of the PoolConfigurator proxy.

setPoolConfiguratorImpl

Sets or initializes the PoolConfigurator proxy with a new implementation.

Parameters

Name
Type
Description

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

Name
Type
Description

<none>

address

The address of the LoanManager proxy.

setLoanManagerImpl

Sets or initializes the LoanManager proxy with a new implementation.

Parameters

Name
Type
Description

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

Name
Type
Description

<none>

address

The address of the WithdrawalManager proxy.

setWithdrawalManagerImpl

Sets or initializes the WithdrawalManager proxy with a new implementation.

Parameters

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

<none>

address

The address of IsleGlobals.

setIsleGlobals

Sets a new address for IsleGlobals, replacing the current address in the registry.

Parameters

Name
Type
Description

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

Name
Type
Description

id

bytes32

The identifier of the contract to retrieve.

Returns

Name
Type
Description

<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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

id

bytes32

The id

Returns

Name
Type
Description

<none>

address

The address of the implementation contract

Last updated