Keep standard paused() name function.

This commit is contained in:
David Racero 2020-09-14 15:33:24 +02:00
parent 6e0091a668
commit 775d003cc0
3 changed files with 5 additions and 5 deletions

View File

@ -388,5 +388,5 @@ interface ILendingPool {
function unpause() external;
function isPaused() external view returns (bool);
function paused() external view returns (bool);
}

View File

@ -918,20 +918,20 @@ contract LendingPool is VersionedInitializable, PausablePool, ILendingPool {
* @dev pause all the Lending Pool actions
*/
function pause() external override onlyLendingPoolConfigurator {
_pause();
PausablePool._pause();
}
/**
* @dev unpause all the Lending Pool actions
*/
function unpause() external override onlyLendingPoolConfigurator {
_unpause();
PausablePool._unpause();
}
/**
* @dev retrieve pause status
*/
function isPaused() public override view returns (bool) {
function paused() public override(PausablePool, ILendingPool) view returns (bool) {
return PausablePool.paused();
}
}

View File

@ -160,7 +160,7 @@ contract AToken is VersionedInitializable, ERC20, IAToken {
* @return true if the user can transfer amount, false otherwise
**/
function isTransferAllowed(address user, uint256 amount) public override view returns (bool) {
return !POOL.isPaused() && POOL.balanceDecreaseAllowed(UNDERLYING_ASSET_ADDRESS, user, amount);
return !POOL.paused() && POOL.balanceDecreaseAllowed(UNDERLYING_ASSET_ADDRESS, user, amount);
}
/**