mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
Remove Context and account from PausablePool events.
This commit is contained in:
parent
775d003cc0
commit
98ed475000
|
@ -130,14 +130,14 @@ interface ILendingPool {
|
||||||
bool receiveAToken
|
bool receiveAToken
|
||||||
);
|
);
|
||||||
/**
|
/**
|
||||||
* @dev Emitted when the pause is triggered by `account`.
|
* @dev Emitted when the pause is triggered.
|
||||||
*/
|
*/
|
||||||
event Paused(address account);
|
event Paused();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Emitted when the pause is lifted by `account`.
|
* @dev Emitted when the pause is lifted.
|
||||||
*/
|
*/
|
||||||
event Unpaused(address account);
|
event Unpaused();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev deposits The underlying asset into the reserve. A corresponding amount of the overlying asset (aTokens)
|
* @dev deposits The underlying asset into the reserve. A corresponding amount of the overlying asset (aTokens)
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
pragma solidity ^0.6.0;
|
pragma solidity ^0.6.0;
|
||||||
|
|
||||||
import {Context} from './Context.sol';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Contract module which allows children to implement an emergency stop
|
* @dev Contract module which allows children to implement an emergency stop
|
||||||
* mechanism that can be triggered by an authorized account.
|
* mechanism that can be triggered by an authorized account.
|
||||||
|
@ -11,16 +9,16 @@ import {Context} from './Context.sol';
|
||||||
* the functions of your contract. Note that they will not be pausable by
|
* the functions of your contract. Note that they will not be pausable by
|
||||||
* simply including this module, only once the modifiers are put in place.
|
* simply including this module, only once the modifiers are put in place.
|
||||||
*/
|
*/
|
||||||
contract PausablePool is Context {
|
contract PausablePool {
|
||||||
/**
|
/**
|
||||||
* @dev Emitted when the pause is triggered by `account`.
|
* @dev Emitted when the pause is triggered by `account`.
|
||||||
*/
|
*/
|
||||||
event Paused(address account);
|
event Paused();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev Emitted when the pause is lifted by `account`.
|
* @dev Emitted when the pause is lifted by `account`.
|
||||||
*/
|
*/
|
||||||
event Unpaused(address account);
|
event Unpaused();
|
||||||
|
|
||||||
bool private _paused;
|
bool private _paused;
|
||||||
|
|
||||||
|
@ -71,7 +69,7 @@ contract PausablePool is Context {
|
||||||
*/
|
*/
|
||||||
function _pause() internal virtual whenNotPaused {
|
function _pause() internal virtual whenNotPaused {
|
||||||
_paused = true;
|
_paused = true;
|
||||||
emit Paused(_msgSender());
|
emit Paused();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -83,6 +81,6 @@ contract PausablePool is Context {
|
||||||
*/
|
*/
|
||||||
function _unpause() internal virtual whenPaused {
|
function _unpause() internal virtual whenPaused {
|
||||||
_paused = false;
|
_paused = false;
|
||||||
emit Unpaused(_msgSender());
|
emit Unpaused();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user