Skip to content

[Android] ETH tokens not synced first time after restore  #412

@mindhacker42

Description

@mindhacker42

Description:
ETH tokens - I tested only with LINK currency, but it seems to be a problem for all ETH tokens - are not synced first time after creating System after Account restore. After creating system I added LINK wallet, but it didn't sync, I know I have non-zero balance from before, but it shows 0 balance.

After debugging I found out that LINK wallet is automatically added to the system if there is non-zero balance. But after restore, System has available only currencies bundled with SDK, so in this case wallet is not added, since SDK has no currency definition. If I try to add wallet for ETH token later after currencies are already fetched from remote, it doesn't help, wallet is still not synced. I have to note, that this bug was not reproducible on Google Pixel 5, And 12, so it might be more prominent on slower/older devices.

If user creates system again (after currencies are fetched and cached) then it is synced correctly and shows non-zero balance.

Environment:

Reproduction steps:

  1. Restore Account that has some balance on LINK or other ETH token currency.
  2. Show LINK wallet if not already shown.

Expected result:
Non-zero balance on LINK currency.

Actual result:
Zero balance with wallet in CONNECTED state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions