Skip to content

[Bug]: balance api fetcher is broken #21030

@salimtb

Description

@salimtb

Describe the bug

The AccountsApiBalanceFetcher had a critical bug caused by address format incompatibility between different controllers in the MetaMask core system:

  • TokenBalancesController: Uses lowercase addresses for ERC20 tokens
  • AccountTrackerController: Uses checksum addresses for native tokens

Expected behavior

should see balances updated every polling cycle

Screenshots/Recordings

No response

Steps to reproduce

1- enable the feature flag to fetch balances using api
2- check the balances for ERC20

Error messages or log output

Detection stage

During release testing

Version

7.57.0

Build type

None

Device

iphone 14

Operating system

iOS

Additional context

No response

Severity

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    RCA-neededIssue root cause analysis neededSev1-highAn issue that may have caused fund loss or access to wallet in the past & may still be ongoingneeds-triageIssue needs to be triagedregression-RC-7.57.0Regression bug that was found in release candidate (RC) for release 7.57.0release-7.58.0Issue or pull request that will be included in release 7.58.0release-blockerThis bug is blocking the next releasetype-bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    Status
    To be triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions