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.
Constants & Variables
bool private _paused;Events
event Paused();
event Unpaused();Ensures that the contract is not paused.
modifier whenNotPaused() internalArguments
| Name | Type | Description |
|---|
Ensures that the contract is paused.
modifier whenPaused() internalArguments
| Name | Type | Description |
|---|
Pauses the contract.
function pause() external nonpayable onlyAdmin whenNotPaused Arguments
| Name | Type | Description |
|---|
Unpauses the contract and returns to normal state.
function unpause() external nonpayable onlyAdmin whenPaused Arguments
| Name | Type | Description |
|---|
Indicates if the contract is paused.
function isPaused() external view
returns(bool)Returns
Returns true if this contract is paused.
Arguments
| Name | Type | Description |
|---|