Description
Similar to the vault, the ProjectRegistry has no pause mechanism. In case of an emergency, the ability to pause project creation and score updates would be valuable.
Current Code Location
project_registry/src/lib.rs
Recommendation
- Add
Paused boolean storage key
- Add
pause() and unpause() admin functions
- Add pause checks to
create_project and update_impact_score
- Emit
Paused and Unpaused events
Severity
Medium — Emergency control for the registry.
Description
Similar to the vault, the ProjectRegistry has no pause mechanism. In case of an emergency, the ability to pause project creation and score updates would be valuable.
Current Code Location
project_registry/src/lib.rsRecommendation
Pausedboolean storage keypause()andunpause()admin functionscreate_projectandupdate_impact_scorePausedandUnpausedeventsSeverity
Medium — Emergency control for the registry.