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
  1. Core Contracts
  2. Addresses Provider Registry

ILendingPoolAddressesProviderRegistry

PreviousAddresses Provider RegistryNextvTokens

Last updated 2 years ago

Also available on .

// SPDX-License-Identifier: agpl-3.0
pragma solidity 0.8.11;

/**
 * @title LendingPoolAddressesProviderRegistry contract
 * @dev Main registry of LendingPoolAddressesProvider of multiple Aave protocol's markets
 * - Used for indexing purposes of Aave protocol's markets
 * - The id assigned to a LendingPoolAddressesProvider refers to the market it is connected with,
 *   for example with `0` for the Aave main market and `1` for the next created
 * @author Aave
 **/
interface ILendingPoolAddressesProviderRegistry {
  event AddressesProviderRegistered(address indexed newAddress);
  event AddressesProviderUnregistered(address indexed newAddress);

  function getAddressesProvidersList() external view returns (address[] memory);

  function getAddressesProviderIdByAddress(address addressesProvider)
    external
    view
    returns (uint256);

  function registerAddressesProvider(address provider, uint256 id) external;

  function unregisterAddressesProvider(address provider) external;
}
Github