- Changed _paused visibility and added getter.

This commit is contained in:
eboado 2020-09-15 15:46:19 +02:00
parent 89ca48e0b2
commit aef8e68ce0
2 changed files with 17 additions and 1 deletions

View File

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

View File

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