Pausable
contract Pausable
is Ownable
Base contract which allows children to implement an emergency stop mechanism.
Source: lifecycle/Pausable.sol
Reference
Events
Pause
event Pause()
Unpause
event Unpause()
Modifiers
whenNotPaused
modifier whenNotPaused()
Modifier to make a function callable only when the contract is not paused.
whenPaused
modifier whenPaused()
Modifier to make a function callable only when the contract is paused.
Functions
pause
function pause() public
Called by the owner to pause, triggers stopped state.
- Modifiers:
- onlyOwner whenNotPaused
unpause
function unpause() public
Called by the owner to unpause, returns to normal state.
- Modifiers:
- onlyOwner whenPaused