0xProject/0x-monorepo

0x-instant allow gas price override

safareli opened this issue · 3 comments

Current Behavior

In 0x.instant package, gas station api is used to determine fast default gas price for transactions. Besides fast gas station api returns gas price for fastest, safeLow and avg processing times.

Motivation/Request

We (at foam.space) would like to be able to set default gas price to safeLow, instead of fast, so purchasing of tokens is cheaper, but API of the 0x.instant does not provide any way to do that.

Possible Solution

One solution would be to add property gasPriceCategory : GasMeterGasPriceGategory to ZeroExInstantOptionalBaseConfig, where:

enum GasMeterGasPriceGategory {
 Fast  = "fast",
 Fastest  = "fastest",
 Average  = "avg",
 SafeLow = "safeLow"
}

or something similar.

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

This issue has been automatically closed because no activity occured in 7 days after being marked as stale. If it's still relevant - feel free to reopen. Thank you for your contributions.

I don't think this should have been closed, it's legit feature request imho