MetaMask / MetaMask/metamask-extension
[Bug]: Perps - Transaction fee details for Deposit don't add up with total transaction fee
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**
When I'm doing a Perps Deposit, I see that the total fee displayed is $0.04, but if I hover on the transaction fee details I see:
- network fee $0.01
- bridge fee $0.04
- metamask fee $0.00
Which don't add up
**Screenshots/Recordings**
**Steps to reproduce**
1. Go to Perps tab
2. Click Deposit
3. Add a token/amount
4. See fees
5. Hover for fee details
**Error messages or log output**
```shell
```
**Where was this bug found?**
Internal release testing
**Version**
13.28.0
**Build type**
None
**Browser**
Chrome
**Operating system**
MacOS
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 in the Perps tab's Deposit flow and reproduce the discrepancy using the listed steps, checking the total fee and each hover-detail component. Trace where those displayed values are assembled and verify the network, bridge, and MetaMask fees reconcile with the total; done means the displayed amounts add up.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, payments
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100