Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Extremely high gas fee shown while attempting to deposit DAI in Ethereum #230

Open
Patrick1904 opened this issue Apr 28, 2021 · 3 comments

Comments

@Patrick1904
Copy link

Problem
The gas fee shown in Metamask seems unreasonably high. Here is the TX from Explorer: https://explorer.near.org/transactions/GKSFuDXg825h2vXrnLJCntd5arMSUyqczAJziYB169Ku

Screen Shot 2021-04-28 at 12 09 44 PM

@mfornet
Copy link

mfornet commented May 5, 2021

I think something went wrong estimating the amount of gas required to run your transaction (either that or an unreasonable gas price).

From the following recent txs I'm seeing gas consumed is ~310K, and gas limit (estimated) is ~460K.

@paouvrard can we modify gas limit to always be minimum between estimated and some constant (let say 500K).
Which tool are we using right now to estimate the gas limit? is it from ethers library? Maybe it is worth to make some research about why can this happen, and whether it is safe to use lower limit.

@Patrick1904 can you still reproduce this now? In that case, can you check what is the gas price and gas limit used. I don't see how to do it from the metamask you shared in screenshot, but the version I'm using has some advanced options that allows me to check gas limit and gas price.

@paouvrard
Copy link
Member

paouvrard commented May 5, 2021

@mfornet The gas limit is estimated by Metamask. I've never experienced the mis estimation, but since this seems to have happened several times we can fix it with a safe margin, like 500K.

@Patrick1904
Copy link
Author

@Patrick1904 can you still reproduce this now? In that case, can you check what is the gas price and gas limit used. I don't see how to do it from the metamask you shared in screenshot, but the version I'm using has some advanced options that allows me to check gas limit and gas price.

@mfornet yep I'm still able to reproduce the high gas fee, and here is the gas price and limit used (I haven't changed it):

Screen Shot 2021-05-05 at 1 43 52 PM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants