Skip to content

PoolAddressesProviderRegistry

A register of the active PoolAddressesProvider contracts, covering all markets. This contract is immutable and the address will never change.

For example, the Pool address for the main market is different from the Pool address for the AMM market.

View Methods

getAddressesProviderList

function getAddressesProvidersList()

Returns a list of active PoolAddressesProvider contracts for the registered SparkLend markets.

Returns Values

TypeDescription
address[]List of active PoolAddressesProvider

getAddressesProviderIdByAddress

function getAddressesProviderIdByAddress(address addressesProvider)

Returns Id of PoolAddressesProvider .

Call Params

NameTypeDescription
addressesProvideraddressAddress of the PoolAddressesProvider

Return Values

TypeDescription
uint256Id of the associated PoolAddressesProvider. 0 indicates not a valid PoolAddressesProvider address