Skip to content

One-Click Vault Migration Wizard #141

@edehvictor

Description

@edehvictor

📝 Description

When we launch a V2 Vault, users have to manually withdraw from V1 and deposit into V2. We need a Migration Wizard that batches these operations into a single, seamless transaction.

🎯 Acceptance Criteria

  • Build a frontend UI flow explaining the migration benefits and showing the user's V1 balance.
  • Construct an XDR transaction envelope that sequentially: 1) Withdraws from V1, 2) Approves the V2 contract, 3) Deposits into V2.
  • Handle UI error states specifically if the atomic sequence fails due to slippage or insufficient gas.

🛠 Technical Details

  • Stack: React, Stellar SDK (TransactionBuilder).
  • Location: /frontend/src/features/migration/
  • Security: Ensure the atomic transaction does not leave funds stranded in the user's wallet if the deposit step fails.

⏱ Complexity & Scope

  • Estimated Time: 2 weeks.
  • Drips Complexity: High (200 points) - Complex transaction bundling and UX state management.

📋 Guidelines for Submission

  • Minimum 90 percent test coverage required.
  • Clear NatSpec-style documentation must be added to public contract functions.
  • Timeframe for completion: 2 Wave cycles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave program

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions