Skip to content

feat: wire the V4 migrate page and the earn and borrow migration flows - #3202

Draft
JoaquinBattilana wants to merge 15 commits into
abhijeet/ui-migrationfrom
feat/v4-migration-wiring
Draft

JoaquinBattilana wants to merge 15 commits into
abhijeet/ui-migrationfrom
feat/v4-migration-wiring

Conversation

@JoaquinBattilana

Copy link
Copy Markdown
Member

Wires the V3 → V4 migrate page and both migration flows to the Aave API. Stacked on #3198, which holds the UI components.

What's in here

  • Migrate page: positions come from migrationOpportunities; the page is linked from the More menu.
  • Flow layout: a full-page shell (FlowLayout) with only the close button and the wallet, used by both flows.
  • Earn flow (/migrate/earn): pick a hub, set the amount, live preview, optional "Use as Collateral", then the migration and its transaction card.
  • Borrow flow (/migrate/borrow): pick a market, set the share of the position with the slider, live "Position after migration" preview, then the migration and its transaction card.
  • Migration action (useMigration): loops migratePosition — typed-data signatures, the Safe signature, then the transaction — and waits for the receipt. Migrate stays disabled until the preview confirms exactly what will be sent.

Not ready to merge

Known gaps

  • Mocked on the hub and market cards: 7-day average, APY history, total deposits, backing collateral, incentives. Collateral Exposure in the earn preview is mocked too.
  • Left out for now: token selector, hub/market switcher in the preview, the borrow-market modal when turning collateral on, the list filters, the DeFi Saver footer.
  • "View Position" links to the Aave Pro home page.
  • The network fee row says "Sponsored by Aave" before the migration, but the user pays gas today; the transaction card shows the fee actually paid.

Testing

  • Earn migration run end to end on Ethereum mainnet through staging.
  • Borrow migration: preview and the first migratePosition step checked against the API; not yet run end to end.
  • No automated tests added.

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
interface Ready Ready Preview Nov 27, 2026 2:31am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 207c0969 Deployed Nov 27, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant