-
Couldn't load subscription status.
- Fork 3.6k
fix: Wallet balances not updated on some conditions #12426
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
base: develop
Are you sure you want to change the base?
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
8 Skipped Deployments
|
81a0f4e to
9963441
Compare
833ee82 to
2debfa2
Compare
11bb170 to
49fd140
Compare
Wallet balances not updated when
Main Condition is
(if token select modal opened initial fetch is completed and token not yet exist in user's wallet balance)
Then either;
If user collects fee from farm/lp and going back to swap, user can't see the collected token balance (this happens on various transaction types)
User dismiss the swap commit modal after sending trx but before the receipt (which resets the trade therefore useeffect wont work)
User making wrap (which uses another component (WrapCommitButtonReplace) than SwapCommitButton which has the refresh logic)
User making bridge swap output chain balances not updated after successful submit
PR-Codex overview
This PR primarily adds support for handling
outputChainIdin various transaction-related components, enhancing cross-chain functionality and updating state management accordingly.Detailed summary
outputChainIdto transaction-related interfaces and reducers.outputChainId.outputChainIdhandling.WalletBalanceUpdaterto refresh balances based on transaction events.usePublicNodeWaitForTransactionto dispatch wallet transaction events.SwapCommitButtonInnerby removing unused balance refresh logic.