Skip to content

Emergency Pause ("Circuit Breaker") for Entire Contract #291

@Luluameh

Description

@Luluameh

Background
If a critical zero-day exploit is discovered, admins must be able to halt all new sessions and deposits immediately to protect user funds.
Goal
Implement a platform-wide emergency pause mechanism controlled by SuperAdmin.
Acceptance Criteria

  • emergency_pause() and emergency_unpause() functions.
  • Check is_paused at the beginning of start_session, initialize_session, and reserve_session.
  • Settles and withdrawals are not paused during emergency to allow users to retrieve their funds safely.
    Key Files
    contracts/src/admin.rs, contracts/src/lib.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    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