Skip to content

feat: add global protocol pause#150

Open
TUPM96 wants to merge 1 commit into
sorosave-protocol:mainfrom
TUPM96:codex/protocol-pause-42
Open

feat: add global protocol pause#150
TUPM96 wants to merge 1 commit into
sorosave-protocol:mainfrom
TUPM96:codex/protocol-pause-42

Conversation

@TUPM96
Copy link
Copy Markdown

@TUPM96 TUPM96 commented May 25, 2026

/claim #42

Summary:

  • Added protocol-wide pause state in instance storage with pause_protocol, unpause_protocol, and is_protocol_paused entrypoints.
  • Restricted pause/unpause to the protocol admin.
  • Added protocol pause checks to all external state-changing entrypoints except pause/unpause themselves.
  • Emits protocol pause/unpause events and returns ProtocolPaused for blocked mutations.
  • Added regression tests for admin-only controls, lifecycle mutations blocked while paused, active group mutations blocked while paused, and resumed behavior after unpause.

Validation:

  • cargo fmt --check -> passed
  • cargo test --package sorosave -> 12 passed
  • cargo clippy --package sorosave --all-targets -- -D warnings -> passed
  • git diff --check -> passed

No secrets, private runtime data, or public payment details are included. Payout details can be provided privately on acceptance.

Copilot AI review requested due to automatic review settings May 25, 2026 10:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants