Skip to content

Latest commit

 

History

History
128 lines (86 loc) · 2.36 KB

File metadata and controls

128 lines (86 loc) · 2.36 KB

Custom Pausable Contract (CustomPausable.sol)

View Source: contracts/CustomPausable.sol

↗ Extends: CustomAdmin ↘ Derived Contracts: CappedTransfer, Reclaimable

CustomPausable

This contract provides pausable mechanism to stop in case of emergency. The "pausable" features can be used and set by the contract administrators and the owner.

Contract Members

Constants & Variables

bool private _paused;

Events

event Paused();
event Unpaused();

Modifiers

whenNotPaused

Ensures that the contract is not paused.

modifier whenNotPaused() internal

Arguments

Name Type Description

whenPaused

Ensures that the contract is paused.

modifier whenPaused() internal

Arguments

Name Type Description

Functions

pause

Pauses the contract.

function pause() external nonpayable onlyAdmin whenNotPaused 

Arguments

Name Type Description

unpause

Unpauses the contract and returns to normal state.

function unpause() external nonpayable onlyAdmin whenPaused 

Arguments

Name Type Description

isPaused

Indicates if the contract is paused.

function isPaused() external view
returns(bool)

Returns

Returns true if this contract is paused.

Arguments

Name Type Description

Contracts