diff --git a/contracts/interfaces/ILendingPool.sol b/contracts/interfaces/ILendingPool.sol index d62c9eb9..85746888 100644 --- a/contracts/interfaces/ILendingPool.sol +++ b/contracts/interfaces/ILendingPool.sol @@ -430,5 +430,14 @@ interface ILendingPool { function getReserves() external view returns (address[] memory); + /** + * @dev Set the _pause state + * @param val the boolean value to set the current pause state of LendingPool + */ function setPause(bool val) external; + + /** + * @dev Returns if the LendingPool is paused + */ + function paused() external view returns(bool); } diff --git a/contracts/lendingpool/LendingPool.sol b/contracts/lendingpool/LendingPool.sol index 58c8262f..69a92b6f 100644 --- a/contracts/lendingpool/LendingPool.sol +++ b/contracts/lendingpool/LendingPool.sol @@ -55,7 +55,7 @@ contract LendingPool is VersionedInitializable, ILendingPool { address[] internal _reservesList; bool internal _flashLiquidationLocked; - bool public _paused; + bool internal _paused; /** * @dev only lending pools configurator can use functions affected by this modifier @@ -1031,4 +1031,11 @@ contract LendingPool is VersionedInitializable, ILendingPool { emit Unpaused(); } } + + /** + * @dev Returns if the LendingPool is paused + */ + function paused() external view override returns(bool) { + return _paused; + } }