Skip to content

core: implement protocol pause mechanism #21

@EmeditWeb

Description

@EmeditWeb

Problem

There is no emergency pause mechanism. If a critical
bug is found or the protocol is under attack, there
is no way to halt operations.

What To Build

  1. Add paused flag to parameters contract
  2. Add pause() and unpause() functions
  3. Add check_not_paused() to all contracts

Files To Touch

  • contracts/parameters-contract/src/lib.rs
    All 5 contract lib.rs and errors.rs files

Acceptance Criteria

  • pause() halts all protocol mutations
  • unpause() restores normal operation
  • View functions unaffected by pause
  • Only admin can pause/unpause

Mandatory Checks Before PR

  • cargo build passes
  • All tests pass
  • PR references this issue

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions