Addresses register of the protocol for a particular market. This contract is immutable and the address will never change. Also see Deployed Contracts section.
Whenever the LendingPool
contract is needed, we recommended you fetch the correct address from the LendingPoolAddressesProvider
smart contract.
The source code can be found on Github here.
function getMarketId()
Type | Description |
string | A string representation of the market |
function getLendingPool()
Type | Description |
address | The address of the associated LendingPool |
function getLendingPoolConfigurator()
The LendingPoolConfigurator
is used for configuration methods for each market, e.g.initialising a reserve or updating aTokens.
Type | Description |
address | The address of the associated |
function getLendingPoolCollateralManager()
The LendingPoolCollateralManager
is used for management of collateral in the protocol, the main one being for liquidations. The contract should never be called directly, only via the LendingPool
.
Type | Description |
address | The address of the associated |
function getPoolAdmin()
Type | Description |
address | The address of the market / pool's admin |
function getPoolEmergencyAdmin()
Type | Description |
address | The address of the market / pool's emergency admin |
function getPriceOracle()
Type | Description |
address | The address of the price oracle |
function getLendingRateOracle()
Type | Description |
address | The address of the |
function getAddress(bytes32 id)
For example, the Protocol Data Provider uses the id: 0x1
Type | Description |
address | The address associated with the |