From 5e9ccb5244edea9db09ddbdf2d292ca75104a515 Mon Sep 17 00:00:00 2001 From: eboado Date: Fri, 27 Nov 2020 10:00:11 +0100 Subject: [PATCH] - Added getter to _marketId --- contracts/interfaces/ILendingPoolAddressesProvider.sol | 2 ++ .../configuration/LendingPoolAddressesProvider.sol | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/contracts/interfaces/ILendingPoolAddressesProvider.sol b/contracts/interfaces/ILendingPoolAddressesProvider.sol index 3c826c52..cec353d0 100644 --- a/contracts/interfaces/ILendingPoolAddressesProvider.sol +++ b/contracts/interfaces/ILendingPoolAddressesProvider.sol @@ -20,6 +20,8 @@ interface ILendingPoolAddressesProvider { event ProxyCreated(bytes32 id, address indexed newAddress); event AddressSet(bytes32 id, address indexed newAddress, bool hasProxy); + function getMarketId() external returns (string memory); + function setMarketId(string calldata marketId) external; function setAddress(bytes32 id, address newAddress) external; diff --git a/contracts/protocol/configuration/LendingPoolAddressesProvider.sol b/contracts/protocol/configuration/LendingPoolAddressesProvider.sol index 520a0513..9a6fb255 100644 --- a/contracts/protocol/configuration/LendingPoolAddressesProvider.sol +++ b/contracts/protocol/configuration/LendingPoolAddressesProvider.sol @@ -32,6 +32,14 @@ contract LendingPoolAddressesProvider is Ownable, ILendingPoolAddressesProvider _setMarketId(marketId); } + /** + * @dev Returns the id of the Aave market to which this contracts points to + * @return The market id + **/ + function getMarketId() external override returns (string memory) { + return _marketId; + } + /** * @dev Allows to set the market which this LendingPoolAddressesProvider represents * @param marketId The market id