MetaMask / MetaMask/metamask-mobile

[Bug]: Swap network fees not always accurate

Open
#23,830 2 comments 0 reactions 0 assignees View on GitHub
needs-triage quality-sprint-dec-2025 regression-prod-7.60.4 Sev2 ta-bot-triage ta-needs-engineer-escalation ta-needs-triage team-swaps-and-bridge type-bug
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

### Describe the bug

Issues
- effective gas fees are used to gate tx submission (these are lower than the actual required gas amount)
- when gas is included in the quote, the network fee estimates are shown instead of the estimates provided by the backend

### Expected behavior

The totalNetworkFee should gate tx submission. `includedTxFees` should be shown when submitting a gasIncluded trade

### Screenshots/Recordings

_No response_

### Steps to reproduce

1. Request EVM quotes

### Error messages or log output

```shell

```

### Where was this bug found?

Live version (from official store)

### Version

7.60.4

### Build number

3255

### Build type

None

### Device

iPhone 15

### Operating system

iOS

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by tracing the EVM quote request and gasIncluded trade submission flow in the mobile app. Verify that totalNetworkFee gates transaction submission and that includedTxFees is displayed for gasIncluded trades; reproduce with an EVM quote to confirm the corrected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
blockchain, react-native, typescript
Domain
blockchain, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.