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
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()andemergency_unpause()functions.is_pausedat the beginning ofstart_session,initialize_session, andreserve_session.Key Files
contracts/src/admin.rs,contracts/src/lib.rs