Reduce MetaMask Default Suggested Gas
- Right now, gas fee suggestions are way higher than they need to be for an OnChain boost (MetaMask default is 40 GWEI, ~$1.30+)
- When users OnChain boost, we can set the default suggestion in MetaMask to something lower and more reasonable.
Here is an approach that @benhayward.ben discovered: https://github.com/MetaMask/metamask-extension/issues/1473
We can decide what threshold we want the default to be at. I have safely cut the fee by around 70% and it still settled in under a minute. We can cut it by ~40-50% of the default suggestion to be safe. This should run in parallel with our onchain updates.
added to epic &4 (closed)
changed the description 2 times within 2 minutes
changed due date to March 15, 2019
- Owner
We are actually setting the default gas fee to 40 GWei, which is just under double the current gas fee of 23 (https://etherscan.io/gasTracker). It's very volatile though so I think there needs to be some kind of a buffer.
Smart contract interactions generally need higher gas fees than just standard ethereum transactions. If its too low then the transactions can get forgotten about. If somebody replaces the transactions by providing a higher gas fee later, the transaction will succeed but Minds is expecting a different TX hash and this causes issues on our end.
What gas fee are you generally using now?
- Developer
Why not set the gas price dynamically with a buffer ontop using something like https://github.com/ethgasstation/ethgasstation-api ?
Or even just plugging into Etherscan https://etherscan.io/gasTracker
Edited by Ben Hayward - Reporter
I’ve been able to comfortably use 7-15 GWEi (30-40c) which is a big improvement and still usually settles in 60-100 secs - but I definitely agree a % buffer should be used just in case of price fluctuation.
Edited by Faizan Khan closed
reopened
changed due date to March 29, 2019
added T - Feature label
added 1 - High P - Platform P - Rewards labels
- Developer
Escalating this to high as I had another user who was wanting to move off-chain to on-chain due to a very high default gas fee. Should also take some load off the H&S channel.
Edited by Ben Hayward changed due date to April 05, 2019
changed due date to April 11, 2019
closed
reopened
assigned to @brianhatchet
changed milestone to %sprint: Hipster Hedgehog
- Owner
Discussed on rev call, metamask has pretty much fixed this with their new speed suggestions.
closed
- Developer
@markeharding can this be re-opened? I don't feel MetaMask have fixed this. Their speed suggestions are still unreliable and sometimes outright insane.
There's some options we can look into without going the whole mile: https://ethereum.stackexchange.com/questions/41408/how-can-i-set-the-gas-price-while-deploying-a-contract-with-web3-js?rq=1