Lendpool Address Provider

LendPoolAddressProvider.sol

An Immutable contract address that stores the addresses of the main contracts in the protocol.

If you are searching for a smart contract address, we recommend fetching it from the LendPoolAddressProvider.

The source can be found on GitHub.

View Methods

getMarketId

function getMarketId() external view override returns (string memory)

Returns the id of the associated Unlockd Market.

Return Values

getAddress

function getAddress(bytes32 id) public view override returns (address)

Returns the latest deployed address of a protocol smart contract stored at a given id.

Call Params

Return Values

// Get the address of the NFTX vault factory
import { utils } from '@ethers/lib/utils';

const id =  utils.keccak256(utils.toUtf8Bytes("NFTX_VAULT_FACTORY"));
const address = poolAddressProvider.getAddress(id);

getLendPool

function getLendPool() external view override returns (address)

Returns the proxy address of the lendpool deployed.

Return Values

getLendPoolConfigurator

function getLendPoolConfigurator() external view override returns (address)

Returns the proxy address of the LendPoolConfigurator deployed.

Return Values

getPoolAdmin

function getPoolAdmin() external view override returns (address)

Returns the address of the LendPool Admin (wallet or contract).

Return Values

getEmergencyAdmin

function getEmergencyAdmin() external view override returns (address)

Returns the address of the Emergency LendPool Admin (wallet or contract).

Return Values

getReserveOracle

function getReserveOracle() external view override returns (address)

Returns the proxy address of the ReserveOracle (Will be used for reserves ERC20).

Return Values

getNFTOracle

function getNFTOracle() external view override returns (address)

Returns the proxy address of the NFTOracle (Will be used for collateral ERC721)

Return Values

getLendPoolLoan

function getLendPoolLoan() external view override returns (address)

Returns the proxy address of the LendPoolLoan (Contract associated with the collaterals - loans).

Return Values

getUNFTRegistry

function getUNFTRegistry() external view override returns (address)

Returns the proxy address of the UNFTRegistry.

Return Values

getIncentivesController

function getIncentivesController() external view override returns (address)

Returns the latest deployed address of the IncentivesController.

Return Values

getUIDataProvider

function getUIDataProvider() external view override returns (address)

Returns the proxy address of the UIDataProvider.

Return Values

getUnlockdDataProvider

function getUnlockdDataProvider() external view override returns (address)

Returns the proxy address of the UnlockdDataProvider.

Return Values

getWalletBalanceProvider

function getWalletBalanceProvider() external view override returns (address)

Returns the latest deployed address of the WalletBalanceProvider.

Return Values

getImplementation

function getImplementation(address proxyAddress) external view onlyOwner returns (address)

Returns the latest deployed Implementation address for the given proxy address.

Call Params

Return Values

Write Methods

setMarketId

function setMarketId(string memory marketId) external override onlyOwner

Set/update the id (Identifier) of the Unlockd market.

Call Params

setAddressAsProxy

function setAddressAsProxy(bytes32 id, address implementationAddress, bytes memory encodedDataCall) external override onlyOwner

Set/update the implementation address of a specified proxied protocol contract

Call Params

setAddress

function setAddress(bytes32 id, address newAddress) external override onlyOwner

Sets the address of a protocol contract stored at a given id.

Call Params

setLendPoolImpl

function setLendPoolImpl(address pool, bytes memory encodedCallData) external override onlyOwner

Sets/Update the implementation address of the LendPool proxy contract.

Call Params

setLendPoolConfiguratorImpl

function setLendPoolConfiguratorImpl(address configurator, bytes memory encodedCallData) external override onlyOwner

Sets/updates the implementation address of the LendPoolConfigurator proxy contract.

Call Params

setPoolAdmin

function setPoolAdmin(address admin) external override onlyOwner

Sets/updates the LendPoolAdmin wallet or contract address.

Call Params

setEmergencyAdmin

function setEmergencyAdmin(address emergencyAdmin) external override onlyOwner

Sets/updates the EmergencyAdmin wallet or contract address.

Call Params

setReserveOracle

function setReserveOracle(address reserveOracle) external override onlyOwner

Sets/updates the ReserveOracle implementation address.

Call Params

setNFTOracle

function setNFTOracle(address nftOracle) external override onlyOwner

Sets/updates the NFTOracle implementation address.

Call Params

setLendPoolLoanImpl

function setLendPoolLoanImpl(address loanAddress, bytes memory encodedCallData) external override onlyOwner

Sets/updates the LendPoolLoan implementation address.

Call Params

setUNFTRegistry

function setUNFTRegistry(address factory) external override onlyOwner

Sets/updates the new unftRegisty contract address.

Call Params

setIncentivesController

function setIncentivesController(address controller) external override onlyOwner

Sets/updates the new Incentives Controller wallet or contract address.

Call Params

setUIDataProvider

function setUIDataProvider(address provider) external override onlyOwner

Sets/updates the new UIDataProvider contract address.

Call Params

setUnlockdDataProvider

function setUnlockdDataProvider(address provider) external override onlyOwner

Sets/updates the new Unlockd Data Provider contract address.

Call Params

setWalletBalanceProvider

function setWalletBalanceProvider(address provider) external override onlyOwner

Sets/updates the new WalletBalanceProvider wallet or contract address.

Call Params

Last updated