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
|
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
|
* @dev Emitted when a borrower is liquidated. This event is emitted by the LendingPool via
|
||||||
* LendingPoolCollateral manager using a DELEGATECALL
|
* LendingPoolCollateral manager using a DELEGATECALL
|
||||||
|
@ -507,18 +497,6 @@ interface ILendingPool {
|
||||||
**/
|
**/
|
||||||
function getAddressesProvider() external view returns (ILendingPoolAddressesProvider);
|
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
|
* Only callable by the LendingPoolConfigurator contract
|
||||||
|
|
|
@ -543,11 +543,6 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
||||||
return _reserves[asset].getNormalizedDebt();
|
return _reserves[asset].getNormalizedDebt();
|
||||||
}
|
}
|
||||||
|
|
||||||
///@inheritdoc ILendingPool
|
|
||||||
function paused() external view override returns (bool) {
|
|
||||||
return _paused;
|
|
||||||
}
|
|
||||||
|
|
||||||
///@inheritdoc ILendingPool
|
///@inheritdoc ILendingPool
|
||||||
function getReservesList() external view override returns (address[] memory) {
|
function getReservesList() external view override returns (address[] memory) {
|
||||||
uint256 reserveListCount = _reservesCount;
|
uint256 reserveListCount = _reservesCount;
|
||||||
|
@ -684,16 +679,6 @@ contract LendingPool is VersionedInitializable, ILendingPool, LendingPoolStorage
|
||||||
_reserves[asset].configuration.data = configuration;
|
_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
|
///@inheritdoc ILendingPool
|
||||||
function updateFlashBorrowerAuthorization(address flashBorrower, bool authorized)
|
function updateFlashBorrowerAuthorization(address flashBorrower, bool authorized)
|
||||||
external
|
external
|
||||||
|
|
Loading…
Reference in New Issue
Block a user