Skip to content

Conversation

dewanshparashar
Copy link
Contributor

@dewanshparashar dewanshparashar commented Sep 8, 2025

Refactors route management to centralize state, remove stateful child components, and improve scalability for future route-based features.

Enhanced State Management

  1. Enhanced useRouteStore with centralized route data and eligibility tracking
  2. Removed stateful child components that couldn't be accessed from other places in code - eg. Lifi
  3. Added useRoutesUpdater hook for centralized route calculations

🚀 Future Benefits

This refactor enables us to:

  1. Pre-select the best routes for enhanced user-experience
  2. Base gas estimation on selected route (later)
  3. Calculate max amounts dynamically per route (later)

@cla-bot cla-bot bot added the cla-signed label Sep 8, 2025
Copy link

vercel bot commented Sep 8, 2025

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

Project Deployment Preview Updated (UTC)
arbitrum-token-bridge Ready Ready Preview Sep 8, 2025 11:27am

Copy link
Member

@fionnachan fionnachan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@spsjvc spsjvc merged commit 95ece86 into master Sep 8, 2025
441 of 462 checks passed
@spsjvc spsjvc deleted the fs-1396/pre-select-best-route branch September 8, 2025 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants