Merged
Conversation
…nForm for improved migration handling * Added WalletMigrationModal to TransferForm and TransactionForm to prompt users for migration when necessary. * Enhanced migration logic to determine when migration is mandatory based on user status and deadline. * Updated button text and styles in WalletTransferApprovalModal for consistency and clarity. * Refactored useSwapButton to include isRemainingFundsMigration for better migration state management.
fix: wallet migration fixes
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
onahprosper
approved these changes
Feb 25, 2026
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.
Description
This pull request introduces a mandatory wallet migration flow for users whose wallets require migration after a specific deadline (March 1, 2026). The main changes ensure that users are prompted with a migration modal and prevented from submitting transfers or swaps until migration is completed. The logic distinguishes between full migrations and "remaining funds" migrations, and improves UI consistency in migration-related modals.
Mandatory wallet migration flow:
TransferForm.tsxandTransactionForm.tsxto check if migration is mandatory (based onneedsMigration,isRemainingFundsMigration, and the deadline), and to block form submissions by opening theWalletMigrationModalif migration is required. [1] [2] [3] [4] [5] [6] [7]WalletMigrationModal and related UI improvements:
WalletMigrationModal.tsxandWalletTransferApprovalModal.tsxfor a more polished user experience. [1] [2]Swap button logic updates:
useSwapButtonhook to handle the new migration logic, ensuring the button is enabled only when appropriate and migration is enforced when required. [1] [2] [3] [4] [5] [6]Component and dependency updates:
WalletMigrationModalin relevant files to support the new migration flow. [1] [2]References
Testing
Checklist
mainBy submitting a PR, I agree to Paycrest's Contributor Code of Conduct and Contribution Guide.