mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
cleaned: removed functions related to now deprecated LendingPool _pause state
This commit is contained in:
parent
93d3e9de86
commit
a54ab5e5bd
|
@ -113,16 +113,6 @@ interface ILendingPool {
|
|||
uint16 referralCode
|
||||
);
|
||||
|
||||
/**
|
||||
* @dev Emitted when the pause is triggered.
|
||||
*/
|
||||
event Paused();
|
||||
|
||||
/**
|
||||
* @dev Emitted when the pause is lifted.
|
||||
*/
|
||||
event Unpaused();
|
||||
|
||||
/**
|
||||
* @dev Emitted when a borrower is liquidated. This event is emitted by the LendingPool via
|
||||
* LendingPoolCollateral manager using a DELEGATECALL
|
||||
|
@ -508,19 +498,7 @@ interface ILendingPool {
|
|||
function getAddressesProvider() external view returns (ILendingPoolAddressesProvider);
|
||||
|
||||
/**
|
||||
* @dev Set the _pause state of a reserve
|
||||
* - Only callable by the LendingPoolConfigurator contract
|
||||
* @param val `true` to pause the reserve, `false` to un-pause it
|
||||
*/
|
||||
function setPause(bool val) external;
|
||||
|
||||
/**
|
||||
* @dev Returns if the LendingPool is paused
|
||||
*/
|
||||
function paused() external view returns (bool);
|
||||
|
||||
/**
|
||||
* @dev Authorizes/Unauthorizes a flash borrower. Authorized borrowers pay no flash loan premium.
|
||||
* @dev Authorizes/Unauthorizes a flash borrower. Authorized borrowers pay no flash loan premium.
|
||||
* Only callable by the LendingPoolConfigurator contract
|
||||
* @param flashBorrower address of the flash borrower
|
||||
* @param authorized `true` to authorize, `false` to unauthorize
|
||||
|
|
|
@ -543,11 +543,6 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
|||
return _reserves[asset].getNormalizedDebt();
|
||||
}
|
||||
|
||||
///@inheritdoc ILendingPool
|
||||
function paused() external view override returns (bool) {
|
||||
return _paused;
|
||||
}
|
||||
|
||||
///@inheritdoc ILendingPool
|
||||
function getReservesList() external view override returns (address[] memory) {
|
||||
uint256 reserveListCount = _reservesCount;
|
||||
|
@ -684,16 +679,6 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
|||
_reserves[asset].configuration.data = configuration;
|
||||
}
|
||||
|
||||
///@inheritdoc ILendingPool
|
||||
function setPause(bool val) external override onlyLendingPoolConfigurator {
|
||||
_paused = val;
|
||||
if (_paused) {
|
||||
emit Paused();
|
||||
} else {
|
||||
emit Unpaused();
|
||||
}
|
||||
}
|
||||
|
||||
///@inheritdoc ILendingPool
|
||||
function updateFlashBorrowerAuthorization(address flashBorrower, bool authorized)
|
||||
external
|
||||
|
|
Loading…
Reference in New Issue
Block a user