Skip to content
This repository was archived by the owner on May 24, 2022. It is now read-only.
This repository was archived by the owner on May 24, 2022. It is now read-only.

Missing 'Estimated Transaction Fee'. Send token page shows label 'Transaction Fee' even though Gas Price value is shown #293

@ltfschoen

Description

@ltfschoen

The 'Transaction Fee' equals the Gas Price (i.e. 3 Gwei (shannon), or 0.000000003 Wei) multiplied by the Estimated Gas Limit +values.gas (i.e. estimated at 21000 for Sending Ether, and estimated at ~39401.25, or Estimated gas 31521, with buffer 39401.25, for Sending THIBCoin since its a transaction to a token contract).

I think the user should be able to set the Gas Price (as they can do already), but the label should be "Gas Price" instead of "Transaction Fee". And there should be another label called "Estimated Transaction Fee", which shows the value of (Gas Price * Estimated Gas Limit)

 console.log('estimated tx cost (ether): ', values.gas && values.gas.mul(toWei(values.gasPrice, 'shannon')).div(1000000000000000000).toString());

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions