Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Displayed tx fee wrong #1885

@tschubotz

Description

@tschubotz

Title/Description

Dispalyed tx fee is wrong on the tx modal.

Seems like only safeTxGas is taken into account, not the Ethereum gas limit.

Environment

Steps to reproduce

  1. Create a tx (I did an ERC20 transfer)
  2. Collect signatures
  3. Execute
  4. Check advanced params before executing.

Expected result

Ethereum gas limit * gas price (in GWei) / 1e9 = Tx fee i.e. 0.025828 in my example.

Obtained result

0.01081 ETH is displayed.

It seems like only the safeTxGas is taken into account here. However it should really the Ethereum gas limit that's taken into account.
The Metamask calculation is correct. I expect that Metamask calculation to be in sync with our tx fee calculation.

Screenshots

Screenshot 2021-02-11 at 17.46.46.pngScreenshot 2021-02-11 at 17.47.07.png

Rating this as major since it's about displaying how much funds are spent, max.

Metadata

Metadata

Assignees

Labels

Bug 🐛Something isn't workingMajorNeeds to be fixed for immediate next public release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions