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