0xProject / 0x-launch-kit-frontend

Apache License 2.0
112 stars 207 forks source link

Estimate wait times are too long #525

Closed mariano-aguero closed 5 years ago

mariano-aguero commented 5 years ago

Connects #524

Currently, the estimate of a transaction is obtained from gas station. Gas station only works for the mainnet, so in the case of being in an environment like kovan, rinkeby or local ganache the estimate will not be reliable. If an exception happens (throttled request, for example) default/hardcoded values will be returned.

Right now the DEFAULT_ESTIMATED_TRANSACTION_TIME_MS constant is the same as in other projects like Instant.