Skip to content

Multisig Emergency "Pause" & Recovery #14

@hman38705

Description

@hman38705

Descriptions:

Issue #8:

Developer Goal: Enhance the circuit_breaker.rs to support multi-signature approval for high-risk actions.

Technical Requirements:

  1. Hierarchical Admin: Introduce a GuardianAccount (a Multisig address) in admin.rs.
  2. Pause Function: e.current_contract_address().require_auth() if the caller is the Guardian.
  3. Partial Freeze: Standardize require_closed() such that place_bet is blocked, but withdraw_refund remains open.

Verification Checklist:

  • Mock Guardian account successfully triggers pause().
  • When paused, place_bet returns ErrorCode::ContractPaused.
  • When paused, claim_winnings or withdraw_refund still functions (Partial Freeze check).
  • Only the Guardian Set (multisig) can call unpause().
  • git checkout -b features/issue-Multisig Emergency "Pause" & Recovery
  • Pr Request create your pr against develop branch

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions