ethers-io / ethers-ens

Deprecated; please see `@ethersproject/cli` instead
https://github.com/ethers-io/ethers.js/tree/ethers-v5-beta/packages/cli
48 stars 15 forks source link

Gwei Price 99 - Auto Gwei? #16

Closed x011 closed 4 years ago

x011 commented 6 years ago

Since the last night update, Gwei is set to 99 by default, this is way to much, specially when the gas price was only 1 Gwei at that time. I've just paid $9.37 for a reveal bid execution - https://www.dropbox.com/s/oc9jr9n7gvzps4y/ss_144.jpg?dl=0 It would be nice to grab the gas price before every transaction. this would create a small delay in execution but we'd always pay the lowest price.

I'm aware that we can use --gas-price or --cheap in order to set a lower gas price, but way too often I forget to set it and, as explained above, it can be costly. Having the gas price set by default to the lowest price would prevent situations like this one.

ricmoo commented 4 years ago

I think this must have been during the ICO-wars. :)

The provider.getGasPrice() should be more sane now, but please let me know (in the new repository) if you still have problems. :)