Pausability

Add an emergency stop mechanism to your smart contracts.

The Pausable design pattern

The Pausable design pattern adds an emergency stop mechanism to our contracts, defined in the OpenZeppelin abstract contract Pausable.sol, which can be imported with import "@openzeppelin/contracts/security/Pausable.sol"; command.

Description

This abstract contract is built around an internal boolean variable, _paused, whose value can be set by two virtual, internal functions _pause() and _unpause(), and read by a getter function paused(). ...