Skip to content

Conversation

@hyphenized
Copy link
Collaborator

@hyphenized hyphenized commented Dec 8, 2025

Prevents infinite balances on networks where alchemy_getTokenBalances is not available and fallbacks to multicall balance lookups if it fails. For some tokens, the returned value when calling balanceOf included extra data

image image

To test

  • Revert first commit, install extension and block alchemy domains
  • Add testingtester.eth, should see some assets with infinite balances on the wallet UI
  • Reset branch, everything should display normally

This fixes the problem with some tokens where calling BigInt directly over the
response data resulted in an infinite balance being returned and
displayed to the user.
Fallback to multicall if alchemy_getTokenBalances fails
@hyphenized hyphenized marked this pull request as ready for review December 9, 2025 01:04
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.

2 participants