Category: [CONTRACT]
Difficulty: ● EASY
Tags: soroban, security, governance, circuit-breaker, pause
Add an emergency "Pause" button logic to the smart contract. In the event of a security breach or system migration, the organization administrator should be able to globally pause all execute_batch operations while still allowing administrative actions.
- Implement a
set_paused(bool)function restricted to admins. - Add a
require_not_pausedcheck to all core payment functions. - Emit a
ContractStatusChangedevent when pausing/unpausing. - Ensure that
unpausecan only be called by the multi-sig administrator.