-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: update non-evm token balances on flip #24329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsThe changes are focused on the
The hook is used in:
These are all part of the Bridge/Swap functionality, making |
app/components/UI/Bridge/hooks/useLatestBalance/useLatestBalance.test.tsx
Show resolved
Hide resolved
app/components/UI/Bridge/hooks/useLatestBalance/useLatestBalance.test.tsx
Show resolved
Hide resolved
|



Description
fixes an issue where flipping source/dest assets do not update balances when user has zero balance on non-evm chains
Changelog
CHANGELOG entry: fixes an issue where flipping source/dest assets do not update balances when user has zero balance on non-evm chains
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/SWAPS-3693
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Improves
useLatestBalancebehavior for non‑EVM and token switching scenarios.token.addresschanges to avoid stale UI; returns cached balance immediately while fetching new data0when token not found or balance is empty/undefinedWritten by Cursor Bugbot for commit 330d2db. This will update automatically on new commits. Configure here.