Skip to content

Custom tokens show 0 balance after import #7888

@milos-ethernal

Description

@milos-ethernal

Bug description

In MetaMask wallet after the token is added the balance is shown as 0 even tho the ''Add token" pop-up shows correct amount.

After some debuging I noticed that problematic tokens have "aggregators": ["Dynamic"] set and they always get zero balance in AccoutntsApiBalanceFetcher.fetch because API didn't return any value for them.

I opened #7879 which fixes it by calling RPC callback but noticed that this may not be the best solution since the callback is called for 0 balance tokens where some of those could be returned 0 from API and some zero filled and that potentially the fetch should handle this differently so I open this issue to spark a discussion on this bug.

Steps to reproduce

Add any token to wallet which has "aggregators": ["Dynamic"] to wallet

Screenshots of this problem

Screenshot from 2026-02-06 13-13-22 Screenshot from 2026-02-06 13-17-34 Screenshot from 2026-02-06 13-17-42 Screenshot from 2026-02-06 13-17-51

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions