MetaMask / MetaMask/metamask-mobile

[Bug]: Address gas issues causing Predict Withdraw transactions to fail

Open
#23,726 1 comment 0 reactions 0 assignees View on GitHub
INVALID-ISSUE-TEMPLATE MM-Pay-backlog regression-prod-7.60.0 Sev2-normal team-confirmations type-bug
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

**Describe the bug**
We have 2 gas errors that are responsible for ~13% of Predict withdraw transactions failing. We should investigate and address them.

```
insufficient funds for gas * price + value: balance 0, tx cost xxx, overshot yyy - 9.66%
Gas fee token not found and insufficient native balance - 3.23%
```
All transactions with this error have the `gas_paid_with` property set as `not set`, suggesting gas station wasn't used.

Source: https://mixpanel.com/s/gkZps

**Steps to reproduce**

Unclear how to reproduce the failures.

**Error messages or log output**

```shell

```

**Detection stage**

In production (default)

**Version**

7.60.0

**Build number**

-

**Build type**

None

**Device**

-

**Operating system**

Other (please elaborate in the "Additional Context" section)

Contributor guide

Open the contributing guide

Research direction

No file, test, or entry point is identified. Start by tracing Predict Withdraw transactions and the gas_paid_with property, then inspect the two listed production errors in relation to gas station usage. Done means the reported gas failures are addressed and transaction failures are verified against the production behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
blockchain, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.