- Added getter to _marketId

This commit is contained in:
eboado 2020-11-27 10:00:11 +01:00
parent 4e25664eef
commit 5e9ccb5244
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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