PauserFacet

The PauserFacet contract provides an implementation of the IPauser interface, allowing the contract owner to pause and unpause the contract by invoking the corresponding functions.

pause():

The pause function is used to pause the contract's functionality. It enforces that only the contract owner can call this function, and upon successful verification, it updates the paused state variable and emits a corresponding event.

unpause():

The unpause function allows the contract owner to resume the functionality of the paused contract. It enforces that only the contract owner can call this function, and upon successful verification, it updates the paused state variable and emits a corresponding event.

Last updated