mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Merge branch 'fix/171-getter-marketid' into 'master'
- Added getter to _marketId Closes #171 See merge request aave-tech/protocol-v2!194
This commit is contained in:
commit
578f3171bf
|
@ -20,6 +20,8 @@ interface ILendingPoolAddressesProvider {
|
||||||
event ProxyCreated(bytes32 id, address indexed newAddress);
|
event ProxyCreated(bytes32 id, address indexed newAddress);
|
||||||
event AddressSet(bytes32 id, address indexed newAddress, bool hasProxy);
|
event AddressSet(bytes32 id, address indexed newAddress, bool hasProxy);
|
||||||
|
|
||||||
|
function getMarketId() external returns (string memory);
|
||||||
|
|
||||||
function setMarketId(string calldata marketId) external;
|
function setMarketId(string calldata marketId) external;
|
||||||
|
|
||||||
function setAddress(bytes32 id, address newAddress) external;
|
function setAddress(bytes32 id, address newAddress) external;
|
||||||
|
|
|
@ -32,6 +32,14 @@ contract LendingPoolAddressesProvider is Ownable, ILendingPoolAddressesProvider
|
||||||
_setMarketId(marketId);
|
_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
|
* @dev Allows to set the market which this LendingPoolAddressesProvider represents
|
||||||
* @param marketId The market id
|
* @param marketId The market id
|
||||||
|
|
Loading…
Reference in New Issue
Block a user