-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Pause/Unpause #10
Copy link
Copy link
Open
Labels
@geevapp/app/wave2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2
Metadata
Metadata
Assignees
Labels
@geevapp/app/wave2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2Moving to the app repo, as the contracts repo was not accepted for Drips Wave 2
Type
Fields
Give feedbackNo fields configured for issues without a type.
User Story
Description
A global switch that prevents public actions when activated, effectively stopping any unwanted or malicious activity.
Files to Create / Edit
Functional Requirements
Storage
is_paused(bool)Modifier / Check
is_pausedat the start of every public function"ContractPaused"if trueAdmin Function:
set_paused(env, val)Pausedkey tovalSuggested Implementation
Function:
set_paused(env, val)valtoPausedkey in storageHelper / Modifier:
check_paused(env)Pausedkey from storagetrue,panic!("ContractPaused")Acceptance Criteria
Submission Guidelines
feat/pause-logic