IPoolAddressesProvider
IPoolAddressesProviderβ
Defines the basic interface for a Pool Addresses Provider.
MarketIdSetβ
event MarketIdSet(string oldMarketId, string newMarketId)
Emitted when the market identifier is updated.
Parametersβ
Name | Type | Description |
---|---|---|
oldMarketId | string | The old id of the market |
newMarketId | string | The new id of the market |
PoolUpdatedβ
event PoolUpdated(address oldAddress, address newAddress)
Emitted when the pool is updated.
Parametersβ
Name | Type | Description |
---|---|---|
oldAddress | address | The old address of the Pool |
newAddress | address | The new address of the Pool |
PoolConfiguratorUpdatedβ
event PoolConfiguratorUpdated(address oldAddress, address newAddress)
Emitted when the pool configurator is updated.
Parametersβ
Name | Type | Description |
---|---|---|
oldAddress | address | The old address of the PoolConfigurator |
newAddress | address | The new address of the PoolConfigurator |
PriceOracleUpdatedβ
event PriceOracleUpdated(address oldAddress, address newAddress)
Emitted when the price oracle is updated.
Parametersβ
Name | Type | Description |
---|---|---|
oldAddress | address | The old address of the PriceOracle |
newAddress | address | The new address of the PriceOracle |
ACLManagerUpdatedβ
event ACLManagerUpdated(address oldAddress, address newAddress)
Emitted when the ACL manager is updated.
Parametersβ
Name | Type | Description |
---|---|---|
oldAddress | address | The old address of the ACLManager |
newAddress | address | The new address of the ACLManager |
ACLAdminUpdatedβ
event ACLAdminUpdated(address oldAddress, address newAddress)
Emitted when the ACL admin is updated.
Parametersβ
Name | Type | Description |
---|---|---|
oldAddress | address | The old address of the ACLAdmin |
newAddress | address | The new address of the ACLAdmin |
PriceOracleSentinelUpdatedβ
event PriceOracleSentinelUpdated(address oldAddress, address newAddress)
Emitted when the price oracle sentinel is updated.
Parametersβ
Name | Type | Description |
---|---|---|
oldAddress | address | The old address of the PriceOracleSentinel |
newAddress | address | The new address of the PriceOracleSentinel |
PoolDataProviderUpdatedβ
event PoolDataProviderUpdated(address oldAddress, address newAddress)
Emitted when the pool data provider is updated.
Parametersβ
Name | Type | Description |
---|---|---|
oldAddress | address | The old address of the PoolDataProvider |
newAddress | address | The new address of the PoolDataProvider |
ProxyCreatedβ
event ProxyCreated(bytes32 id, address proxyAddress, address implementationAddress)
Emitted when a new proxy is created.
Parametersβ
Name | Type | Description |
---|---|---|
id | bytes32 | The identifier of the proxy |
proxyAddress | address | The address of the created proxy contract |
implementationAddress | address | The address of the implementation contract |
AddressSetβ
event AddressSet(bytes32 id, address oldAddress, address newAddress)
Emitted when a new non-proxied contract address is registered.
Parametersβ
Name | Type | Description |
---|---|---|
id | bytes32 | The identifier of the contract |
oldAddress | address | The address of the old contract |
newAddress | address | The address of the new contract |
AddressSetAsProxyβ
event AddressSetAsProxy(bytes32 id, address proxyAddress, address oldImplementationAddress, address newImplementationAddress)
Emitted when the implementation of the proxy registered with id is updated
Parametersβ
Name | Type | Description |
---|---|---|
id | bytes32 | The identifier of the contract |
proxyAddress | address | The address of the proxy contract |
oldImplementationAddress | address | The address of the old implementation contract |
newImplementationAddress | address | The address of the new implementation contract |
getMarketIdβ
function getMarketId() external view returns (string)
Returns the id of the Aave market to which this contract points to.
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | string | The market id |
setMarketIdβ
function setMarketId(string newMarketId) external
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 |
---|---|---|
newMarketId | string | The market id |
getAddressβ
function getAddress(bytes32 id) external view returns (address)
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 |
---|---|---|
id | bytes32 | The id |
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The address of the registered for the specified id |
setAddressAsProxyβ
function setAddressAsProxy(bytes32 id, address newImplementationAddress) external
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 |
---|---|---|
id | bytes32 | The id |
newImplementationAddress | address | The address of the new implementation |
setAddressβ
function setAddress(bytes32 id, address newAddress) external
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 |
---|---|---|
id | bytes32 | The id |
newAddress | address | The address to set |
getPoolβ
function getPool() external view returns (address)
Returns the address of the Pool proxy.
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The Pool proxy address |
setPoolImplβ
function setPoolImpl(address newPoolImpl) external
Updates the implementation of the Pool, or creates a proxy
setting the new pool
implementation when the function is called for the first time.
Parametersβ
Name | Type | Description |
---|---|---|
newPoolImpl | address | The new Pool implementation |
getPoolConfiguratorβ
function getPoolConfigurator() external view returns (address)
Returns the address of the PoolConfigurator proxy.
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The PoolConfigurator proxy address |
setPoolConfiguratorImplβ
function setPoolConfiguratorImpl(address newPoolConfiguratorImpl) external
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 |
---|---|---|
newPoolConfiguratorImpl | address | The new PoolConfigurator implementation |
getPriceOracleβ
function getPriceOracle() external view returns (address)
Returns the address of the price oracle.
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The address of the PriceOracle |
setPriceOracleβ
function setPriceOracle(address newPriceOracle) external
Updates the address of the price oracle.
Parametersβ
Name | Type | Description |
---|---|---|
newPriceOracle | address | The address of the new PriceOracle |
getACLManagerβ
function getACLManager() external view returns (address)
Returns the address of the ACL manager.
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The address of the ACLManager |
setACLManagerβ
function setACLManager(address newAclManager) external
Updates the address of the ACL manager.
Parametersβ
Name | Type | Description |
---|---|---|
newAclManager | address | The address of the new ACLManager |
getACLAdminβ
function getACLAdmin() external view returns (address)
Returns the address of the ACL admin.
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The address of the ACL admin |
setACLAdminβ
function setACLAdmin(address newAclAdmin) external
Updates the address of the ACL admin.
Parametersβ
Name | Type | Description |
---|---|---|
newAclAdmin | address | The address of the new ACL admin |
getPriceOracleSentinelβ
function getPriceOracleSentinel() external view returns (address)
Returns the address of the price oracle sentinel.
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The address of the PriceOracleSentinel |
setPriceOracleSentinelβ
function setPriceOracleSentinel(address newPriceOracleSentinel) external
Updates the address of the price oracle sentinel.
Parametersβ
Name | Type | Description |
---|---|---|
newPriceOracleSentinel | address | The address of the new PriceOracleSentinel |
getPoolDataProviderβ
function getPoolDataProvider() external view returns (address)
Returns the address of the data provider.
Return Valuesβ
Name | Type | Description |
---|---|---|
[0] | address | The address of the DataProvider |
setPoolDataProviderβ
function setPoolDataProvider(address newDataProvider) external
Updates the address of the data provider.
Parametersβ
Name | Type | Description |
---|---|---|
newDataProvider | address | The address of the new DataProvider |