You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
775 B
26 lines
775 B
8 years ago
|
Pausable
|
||
8 years ago
|
=============================================
|
||
|
|
||
|
Base contract that provides an emergency stop mechanism.
|
||
|
|
||
|
Inherits from contract Ownable.
|
||
|
|
||
|
emergencyStop( ) external onlyOwner
|
||
|
"""""""""""""""""""""""""""""""""""""
|
||
|
|
||
|
Triggers the stop mechanism on the contract. After this function is called (by the owner of the contract), any function with modifier stopInEmergency will not run.
|
||
|
|
||
|
modifier stopInEmergency
|
||
|
"""""""""""""""""""""""""""""""""""""
|
||
|
|
||
|
Prevents function from running if stop mechanism is activated.
|
||
|
|
||
|
modifier onlyInEmergency
|
||
|
"""""""""""""""""""""""""""""""""""""
|
||
|
|
||
|
Only runs if stop mechanism is activated.
|
||
|
|
||
|
release( ) external onlyOwner onlyInEmergency
|
||
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||
|
|
||
|
Deactivates the stop mechanism.
|