feat(contracts): add emergency migration flow for paused rounds - #1163
Open
Ova-Klik wants to merge 3 commits into
Open
feat(contracts): add emergency migration flow for paused rounds#1163Ova-Klik wants to merge 3 commits into
Ova-Klik wants to merge 3 commits into
Conversation
|
@Ova-Klik Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Author
|
@Cedarich kindly review pr, issue resolved. thanks |
Contributor
|
@Ova-Klik kindly fix workflow |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1047
Summary
This PR implements an emergency migration path for funding rounds that become paused or otherwise unable to complete due to operational edge cases.
The implementation introduces a secure, permissioned recovery mechanism that enables authorized operators to migrate affected rounds while preserving contributor balances, maintaining contract invariants, and providing a complete on-chain audit trail.
Motivation
In exceptional situations, a funding round may become paused or enter a state where participant funds cannot progress through the normal lifecycle.
Without a recovery mechanism, contributors may be left with stranded funds despite no fault of their own.
This change introduces a controlled migration process that safely transitions eligible rounds while maintaining the protocol's safety guarantees and preserving user funds.
Changes
Emergency Migration
State Management
Events
Added explicit contract events for:
These events improve observability and provide a transparent record of all emergency actions.
Safety
Testing
Added tests covering:
Documentation
Updated contract documentation to include:
Impact
This change affects only emergency recovery scenarios.
Normal round creation, contribution, settlement, withdrawals, and reward distribution continue to behave as before.
Checklist
cargo fmtpassescargo clippy -- -D warningspasses