mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Keep standard paused() name function.
This commit is contained in:
parent
6e0091a668
commit
775d003cc0
|
@ -388,5 +388,5 @@ interface ILendingPool {
|
|||
|
||||
function unpause() external;
|
||||
|
||||
function isPaused() external view returns (bool);
|
||||
function paused() external view returns (bool);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user