Skip to main content

PauserPausable

PauserPausable

Inheriting from OpenZeppelin's Pausable contract, this does small augmentations to make it work with a PAUSER_ROLE, leveraging the AccessControl contract. It is meant to be inherited.

PAUSER_ROLE

bytes32 PAUSER_ROLE

PauserPausableinit

function __PauserPausable__init() public

pause

function pause() public

_Pauses all functions guarded by Pause

See {Pausable-_pause}.

Requirements:

  • the caller must have the PAUSERROLE.

unpause

function unpause() public

_Unpauses the contract

See {Pausable-_unpause}.

Requirements:

  • the caller must have the Pauser role_

onlyPauserRole

modifier onlyPauserRole()