-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending private-net ETH: ETH Amount differs from user entry by factor of ≈ USD price of mainnet ETH #9929
Comments
Can you expand on this? |
Downloading & running Ganache might work; I used geth with the puppeth tool. There might be some tutorials out there for geth. I found in one case that resetting the account a few times caused the multiplier to rise to 512.27. After removing and re-adding a network which was different than the one used in testing for this Issue, the multipiler for that network (which had been at 472.89 and then 512.27) fell to 1. I don't know why. |
How are you adding the network? What are you inputting in the fields? |
I'm adding the networks by going to custom RPC and entering the URL (beginning with http...) with port number and chainID. This happened across multiple independent chains with different RPC endpoints and chainIds. The chainId is not one of the preprogrammed ids assigned to mainnnet (1) or a known testnet. |
Can you set the |
The symbol was already set to ETH. (ETH is fine, it's only used for a gas fee anyway). If I get back to seeing transactions with a multiplier >>1, I'll try setting the currency symbol to something else and see if that changes things. |
Closing as a duplicate of #9492. |
Also related to #9701 |
FWIW, I don't really agree with the closure, as I think this issue calls out a few details missed in the other such as the "Gas Price (GWEI)" being expressed as a large number of dollars, "Send Ether" vs. "Sent Ether" messaging, and a fair amount of detail provided here. |
Describe the bug
When using MetaMask to send ETH, the amount shown in confirmation and actually sent differs from what the user entered by a factor of 472.89.
Example:
If I click Next,
If I click Confirm,
and then
Clicking on it produces details showing the amount sent in the summary and the amount the user entered in the Activity Log:
Also notice the "Gas Price (GWEI)" is expressed as a large number of dollars, rather than in GWEI.
When I then look at the receiving account, which had no prior transactions, I see that the higher amount was actually sent:
Here's another demo, passing on what should be 1 ETH from that account to another:
Clicking Next:
Clicking Confirm:
and after the transaction is mined:
Clicking on it produces details showing the amount sent in the summary and the amount the user entered in the Activity Log:
Also notice the "Gas Price (GWEI)" is expressed as a large number of dollars, rather than in GWEI.
Note that if the scaled-up amount plus gas fees exceed the account balance, you will be unable to send. This is what first tipped me off to the bug, when I was unable to send an amount <1/4% the balance of an account, with an insufficient funds error.
Testing across several orders of magnitude, the actual amount appears to scale perfectly linearly with the amount entered by the user, but I don't know where that particular multiplier comes from.
Steps to reproduce (REQUIRED)
Expected behavior
There might be several different issues here, but the combination is very concerning about the trustworthiness of MetaMask as a wallet.
Browser details (please complete the following information):
The text was updated successfully, but these errors were encountered: