MetaMask / MetaMask/metamask-extension
[Bug]: ETH chain: Discrepancies with Max amount in Send page and Send confirmation page
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
Discrepancies observed for Max amount calculations for ETH chain in Send page and Send confirmation page. Also observed a different value while checking Max in Swap page.
**In Send page, when Available ETH balance was: 0.00102, clicking the Max populates the value as 0.00098...:**
**But in Send confirmation page, the value is reduced to 0.00096**
**whereas clicking on Max in Swap ETH page correctly populates the full ETH amount:**
### Expected behavior
The Max amounts should be consistently displayed and full applicable amount (less the fees) should be sent.
### Screenshots/Recordings
_No response_
### Steps to reproduce
1. Initiate Send operation for ETH token and click on Max, verify the amount
2. Initiate Swap operation for ETH token and click on Max, verify the amount
3. Send the Max amount and check the remaining balance - It is observed that an amount of 0.0000200 ETH ($0.05) always remains as balance in the account.
### Error messages or log output
```shell
```
### Where was this bug found?
Internal release testing
### Version
13.27.0
### Build type
None
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
[Jira issue](https://consensyssoftware.atlassian.net/browse/MCTP-192)
### Expected behavior
No response
### Screenshots/Recordings
No response
### Steps to reproduce
1. Initiate Send operation for ETH token and click on Max, verify the amount
2. Initiate Swap operation for ETH token and click on Max, verify the amount
3. Send the Max amount and check the remaining balance - It is observed that an amount of 0.0000200 ETH ($0.05) always remains as balance in the account.
### Error messages or log output
```shell
```
### Where was this bug found?
No response
### Version
13.27.0
### Build number
No response
### Build type
None
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
No response
### Additional context
No response
### Severity
No response
Contributor guide
Research direction
Reproduce the discrepancy across the ETH Send page, Send confirmation page, and Swap ETH page using the documented steps and version 13.27.0. Compare the Max amount and fee handling in each flow, including the remaining 0.0000200 ETH balance. Done means the applicable amount less fees is displayed consistently and no unexplained balance remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100