@exodus/ethereum-lib 4.1.0 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-lib",
3
- "version": "4.1.0",
3
+ "version": "4.1.1",
4
4
  "description": "Ethereum Library",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -43,5 +43,5 @@
43
43
  "ms": "^2.1.1",
44
44
  "reselect": "~3.0.1"
45
45
  },
46
- "gitHead": "e64d86bbdf4408669596cb0f35831e3578c39871"
46
+ "gitHead": "5279ed9bfccf3952acfcc2036c6ab0d572a7a73f"
47
47
  }
@@ -128,9 +128,11 @@ export const canAccelerateTx = ({
128
128
  if (isQueuedPendingTx(tx, baseAssetName, activeWalletAccount, getTxLog))
129
129
  return wrapResponseToObject({ errorMessage: 'there is a stuck TX with lower nonce' })
130
130
 
131
- const { gasPrice: currentGasPrice, eip1559Enabled } = getFeeData(assetName)
131
+ const { gasPrice: currentGasPrice, gasPriceEconomicalRate, eip1559Enabled } = getFeeData(
132
+ assetName
133
+ )
132
134
 
133
- if (calculateTxGasPrice(tx).gte(currentGasPrice))
135
+ if (calculateTxGasPrice(tx).gte(currentGasPrice.mul(gasPriceEconomicalRate)))
134
136
  return wrapResponseToObject({ errorMessage: 'the used gas price is still high enough' })
135
137
 
136
138
  const { bumpedGasPrice: gasPriceToUse } = calculateBumpedGasPrice({