diff --git a/contracts/interfaces/ILendingPoolAddressesProvider.sol b/contracts/interfaces/ILendingPoolAddressesProvider.sol index cec353d0..2eb16dcc 100644 --- a/contracts/interfaces/ILendingPoolAddressesProvider.sol +++ b/contracts/interfaces/ILendingPoolAddressesProvider.sol @@ -20,7 +20,7 @@ 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 getMarketId() external view returns (string memory); function setMarketId(string calldata marketId) external; diff --git a/contracts/protocol/configuration/LendingPoolAddressesProvider.sol b/contracts/protocol/configuration/LendingPoolAddressesProvider.sol index 9a6fb255..37b2ed8e 100644 --- a/contracts/protocol/configuration/LendingPoolAddressesProvider.sol +++ b/contracts/protocol/configuration/LendingPoolAddressesProvider.sol @@ -36,7 +36,7 @@ contract LendingPoolAddressesProvider is Ownable, ILendingPoolAddressesProvider * @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) { + function getMarketId() external view override returns (string memory) { return _marketId; }