Lendpool Address Provider
LendPoolAddressProvider.sol
Last updated
LendPoolAddressProvider.sol
Last updated
An Immutable contract address that stores the addresses of the main contracts in the protocol.
The source can be found on .
function getMarketId() external view override returns (string memory)
Returns the id of the associated Unlockd Market.
string
a string representation of the market id
function getAddress(bytes32 id) public view override returns (address)
Returns the latest deployed address of a protocol smart contract stored at a given id.
id
bytes32
id. Example, the Protocol Data Provider uses id 0x1
address
The address associated with the given bytes32 variable.
function getLendPool() external view override returns (address)
Returns the proxy address of the lendpool deployed.
address
The address of the associated LendPool
function getLendPoolConfigurator() external view override returns (address)
Returns the proxy address of the LendPoolConfigurator deployed.
address
The address of the associated LendPoolConfigurator
function getPoolAdmin() external view override returns (address)
Returns the address of the LendPool Admin (wallet or contract).
address
The address of the associated LendPool Admin
function getEmergencyAdmin() external view override returns (address)
Returns the address of the Emergency LendPool Admin (wallet or contract).
address
The address of the associated Emergency LendPool Admin
getReserveOracle
function getReserveOracle() external view override returns (address)
Returns the proxy address of the ReserveOracle (Will be used for reserves ERC20).
address
The address of the associated Reserve Oracle
function getNFTOracle() external view override returns (address)
Returns the proxy address of the NFTOracle (Will be used for collateral ERC721)
address
The address of the associated NFT Oracle
function getLendPoolLoan() external view override returns (address)
Returns the proxy address of the LendPoolLoan (Contract associated with the collaterals - loans).
address
The address of the associated LendPoolLoan
function getUNFTRegistry() external view override returns (address)
Returns the proxy address of the UNFTRegistry.
address
The address of the associated UNFTRegistry
function getIncentivesController() external view override returns (address)
Returns the latest deployed address of the IncentivesController.
address
The address of the associated Incentives Controller.
function getUIDataProvider() external view override returns (address)
Returns the proxy address of the UIDataProvider.
address
The address of the associated UIDataProvider.
function getUnlockdDataProvider() external view override returns (address)
Returns the proxy address of the UnlockdDataProvider.
address
The address of the associated UnlockdDataProvider.
function getWalletBalanceProvider() external view override returns (address)
Returns the latest deployed address of the WalletBalanceProvider.
address
The address of the associated WalletBalanceProvider.
function getImplementation(address proxyAddress) external view onlyOwner returns (address)
Returns the latest deployed Implementation address for the given proxy address.
proxyAddress
address
the proxy address will return the associated implementation contract.
address
The implementation address of the associated proxy Address.
function setMarketId(string memory marketId) external override onlyOwner
Set/update the id (Identifier) of the Unlockd market.
marketId
string
the new id of the market
function setAddressAsProxy(bytes32 id, address implementationAddress, bytes memory encodedDataCall) external override onlyOwner
Set/update the implementation address of a specified proxied protocol contract
id
bytes32
the id of Proxy contract
implementationAddress
address
the address of the new implementation contract for the specified proxy.
encodedDataCall
bytes
[]
function setAddress(bytes32 id, address newAddress) external override onlyOwner
Sets the address of a protocol contract stored at a given id.
id
bytes32
keccak256 hash of UTF8Bytes string representing Contract
newAddress
address
The new address to be set corresponding to the id
function setLendPoolImpl(address pool, bytes memory encodedCallData) external override onlyOwner
Sets/Update the implementation address of the LendPool proxy contract.
pool
address
the new lendpool implementation address
encodedCallData
bytes
[]
function setLendPoolConfiguratorImpl(address configurator, bytes memory encodedCallData) external override onlyOwner
Sets/updates the implementation address of the LendPoolConfigurator proxy contract.
configurator
address
the new lendPoolConfigurator implementation address
encodedCallData
bytes
[]
function setPoolAdmin(address admin) external override onlyOwner
Sets/updates the LendPoolAdmin wallet or contract address.
admin
address
the new LendPoolAdmin wallet or contract address
function setEmergencyAdmin(address emergencyAdmin) external override onlyOwner
Sets/updates the EmergencyAdmin wallet or contract address.
emergencyAdmin
address
the new EmergencyAdmin wallet or contract address
function setReserveOracle(address reserveOracle) external override onlyOwner
Sets/updates the ReserveOracle implementation address.
reserveOracle
address
the new Reserve Oracle implementation address
function setNFTOracle(address nftOracle) external override onlyOwner
Sets/updates the NFTOracle implementation address.
nftOracle
address
the new NFT Oracle implementation address.
function setLendPoolLoanImpl(address loanAddress, bytes memory encodedCallData) external override onlyOwner
Sets/updates the LendPoolLoan implementation address.
loanAddress
address
the new LendPool Loan implementation address
encodedCallData
bytes
[]
function setUNFTRegistry(address factory) external override onlyOwner
Sets/updates the new unftRegisty contract address.
factory
address
the new UNFT Registy contract address
function setIncentivesController(address controller) external override onlyOwner
Sets/updates the new Incentives Controller wallet or contract address.
controller
address
the new Incentives Controller wallet or contract address.
function setUIDataProvider(address provider) external override onlyOwner
Sets/updates the new UIDataProvider contract address.
provider
address
the new UI Data Provider contract address
function setUnlockdDataProvider(address provider) external override onlyOwner
Sets/updates the new Unlockd Data Provider contract address.
provider
address
the new Unlockd Data Provider contract address
function setWalletBalanceProvider(address provider) external override onlyOwner
Sets/updates the new WalletBalanceProvider wallet or contract address.
provider
address
the new Wallet Balance Provider wallet or contract address.