You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way to halt user-facing operations during an active incident (e.g. a discovered bug being actively exploited). This issue adds a Guardian-multisig-gated pause switch.
Problem
VaultRouter.deposit/withdraw/early_exit have no paused/unpaused check anywhere. If a critical bug were discovered in production, the only mitigation available today is the 72-hour Governance timelock (too slow for an active exploit) — there is no fast-acting stop mechanism at all, for any role.
Proposed Solution
Add DataKey::Paused (bool) to VaultRouter.
Add pause() / unpause(), both requiring auth from the Guardian address (the same address registered in Governance, ideally the multisig from NF-06 so no single key can pause/unpause unilaterally).
Add a require_not_paused() internal check called at the top of deposit, withdraw, and early_exit. Deliberately do not gate read-only functions like position() — users must still be able to see their funds while paused.
Emit a contract event on pause/unpause transitions for off-chain monitoring/alerting.
Acceptance Criteria
deposit/withdraw/early_exit all revert with a clear ProtocolPaused error while paused
position() and other read-only calls continue to work while paused
Only the Guardian address can call pause/unpause
Pause/unpause emits an event
Unit tests cover: deposit rejected while paused, deposit succeeds after unpause, pause call from non-Guardian address rejected
Activity
Leothosine commentedon Jul 16, 2026
Please can i work on this issue. I will deliver beyond expectations. ETA is 1 day/ A well structured, modular and maintainable pr.
grantfox-oss commentedon Jul 16, 2026
🦊 GrantFox — @Leothosine has been assigned to this issue as part of the Official Campaign | FWC26 campaign!
Next steps:
Closes #82)Good luck! Track your progress on GrantFox.
grantfox-oss commentedon Jul 21, 2026
🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!
@Leothosine's PR #134 was approved and merged by @wumibals.
🏆 @Leothosine: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (764 total points). Track your full progress on GrantFox.
👏 Great work, @Leothosine! Keep contributing to LadderMine.