Lending Market Contract
AppNFT FinanceGithubDocument Hub
  • Introduction
  • Core Contracts
    • LendingPool
      • ILendingPool
    • Addresses Provider
      • ILendingPoolAddressesProvider
    • Addresses Provider Registry
      • ILendingPoolAddressesProviderRegistry
    • vTokens
      • IVToekn
    • Debt Tokens
      • IVariableDebtToken
    • WETH Gateway
  • Deployment
    • Set the environment variables
    • Set the market parameters
    • Deploy to the blockchain
  • Security
    • Audits
Powered by GitBook
On this page
  • LendingPoolAddressesProvider
  • View Methods
  • getMarketId**()**
  • getLendingPool**()**
  • getLendingPoolConfigurator**()**
  • getLendingPoolCollateralManager**()**
  • getPoolAdmin**()**
  • getPoolEmergencyAdmin**()**
  • getPriceOracle**()**
  • getLendingRateOracle**()**
  • getAddress**()**
  1. Core Contracts

Addresses Provider

PreviousILendingPoolNextILendingPoolAddressesProvider

Last updated 2 years ago

LendingPoolAddressesProvider

Addresses register of the protocol for a particular market. This contract is immutable and the address will never change.

Whenever the LendingPool contract is needed, we recommended you fetch the correct address from the LendingPoolAddressesProvider smart contract.

The source code can be .

View Methods

getMarketId**()**

function getMarketId()

Return values

Type
Description

string

A string representation of the market

getLendingPool**()**

function getLendingPool()

Return values

Type
Description

address

getLendingPoolConfigurator**()**

function getLendingPoolConfigurator()

The LendingPoolConfigurator is used for configuration methods for each market, e.g.initialising a reserve or updating vTokens.

Return values

Type
Description

address

The address of the associated LendingPoolConfiguator

getLendingPoolCollateralManager**()**

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.

Return values

Type
Description

address

The address of the associated LendingPoolCollateralManager

getPoolAdmin**()**

function getPoolAdmin()

Return values

Type
Description

address

The address of the market / pool's admin

getPoolEmergencyAdmin**()**

function getPoolEmergencyAdmin()

Return values

Type
Description

address

The address of the market / pool's emergency admin

getPriceOracle**()**

function getPriceOracle()

Return values

Type
Description

address

The address of the price oracle

getLendingRateOracle**()**

function getLendingRateOracle()

Return values

Type
Description

address

The address of the LendingRateOracle

getAddress**()**

function getAddress(bytes32 id)

Return values

Type
Description

address

The address associated with the bytes32 id used

The address of the associated

For example, the uses the id: 0x1

found on Github here
Protocol Data Provider
LendingPool