MetaMask / MetaMask/metamask-extension

[Bug]: Account balance mismatch between home screen and accounts dropdown after switching accounts

Open
#40,494 1 comment 0 reactions 0 assignees View on GitHub
regression-RC-13.21.0 Sev2-normal team-assets type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

Account 1's balance displays inconsistently between the home screen and the accounts dropdown. When first viewing Account 1, the home screen and dropdown both correctly show ~$23.09. However, after switching to Account 2 and reopening the accounts dropdown, Account 1's balance drops to $12.72. Switching back to Account 1 confirms the home screen also shows $12.72 initially the balance eventually corrects back to $23.09.

### Expected behavior

_No response_

### Screenshots/Recordings

https://github.com/user-attachments/assets/e72164c5-3043-45c1-8697-aaa7eacb9576

### Steps to reproduce

1. Go to home screen and view the balance on the first account
2. Switch to any other account
3. Click on the accounts dropdown
4. Observe the balance is different for the first account in the dropdown
5. Switch to the previous account and notice for a moment the balance remains different before being updated again

### Error messages or log output

```shell

```

### Where was this bug found?

Internal release testing

### Version

13.21.0

### Build type

None

### Browser

Chrome

### Operating system

MacOS

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the mismatch in the home screen and accounts dropdown on Chrome using version 13.21.0, then trace the balance updates triggered by switching accounts. Done means Account 1 keeps the same balance in both views before, during, and after switching to another account.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.