MetaMask / MetaMask/metamask-extension
Balances rounding up are confusing, need UX improvement
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
**Describe the bug**
I have `_._07089 ETH`. Metamask shows it as `_._071` which is more than I actually have. (numbers redacted for privacy).
**Steps to reproduce (REQUIRED)**
Steps to reproduce the behavior, libraries used with version number, and/or any setup information to easily reproduce:
1. Open the extension
**Expected behavior**
All balances should be rounded down, meaning it shows `_._070`.
**Screenshots**
Parts of the screenshots are blacked out to protect personal information. Important bits are highlighted in red.


**Browser details (please complete the following information):**
- OS: MacOS Big Sur
- Hardware Wallet: n/a
- Browser: Issue reproduced on latest Chrome and Firefox
- MetaMask Version: 8.1.5
**Additional context (Error Messages, etc.)**
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the balance display in the extension on Chrome or Firefox with a value that rounds upward. Trace the balance-formatting entry point and verify that displayed balances are rounded down; done means the shown value never exceeds the actual balance and the behavior is covered by an appropriate test.
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
- 35/100