Closed williamchong closed 5 years ago
Currently we always use network price x 1.5, however it might be too low when the network price is fluctuating in lower prices. Should set a reasonable min gas price, and show the required ETH amount in the NOT_ENOUGH_GAS error
NOT_ENOUGH_GAS
Ideally should be something like min(userBalance / gasLimit, max(MIN_GAS_PRICE, 1.5 * networkGasPrice))
min(userBalance / gasLimit, max(MIN_GAS_PRICE, 1.5 * networkGasPrice))
Currently we always use network price x 1.5, however it might be too low when the network price is fluctuating in lower prices. Should set a reasonable min gas price, and show the required ETH amount in the
NOT_ENOUGH_GAS
error