@exodus/ethereum-api 8.33.3 → 8.33.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [8.33.4](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.33.3...@exodus/ethereum-api@8.33.4) (2025-03-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: ensure the tipGasPrice cannot exceed the maxFeePerGas (#5235)
13
+
14
+
15
+
6
16
  ## [8.33.3](https://github.com/ExodusMovement/assets/compare/@exodus/ethereum-api@8.33.2...@exodus/ethereum-api@8.33.3) (2025-03-11)
7
17
 
8
18
  **Note:** Version bump only for package @exodus/ethereum-api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/ethereum-api",
3
- "version": "8.33.3",
3
+ "version": "8.33.4",
4
4
  "description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Ethereum and EVM-based blockchains",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -64,5 +64,5 @@
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/ExodusMovement/assets.git"
66
66
  },
67
- "gitHead": "daf913a8a92b372fa46daa3dd45668386540dbe0"
67
+ "gitHead": "c13d977ea0c99066b13258271555a74f3b8d3c07"
68
68
  }
package/src/get-fee.js CHANGED
@@ -36,7 +36,12 @@ export const getFeeFactory =
36
36
  }) => {
37
37
  const { eip1559Enabled, baseFeePerGas, tipGasPrice, useBaseGasPrice } = feeData
38
38
 
39
- const gasPrice = customFee || resolveGasPrice({ feeData })
39
+ let gasPrice = customFee || resolveGasPrice({ feeData })
40
+
41
+ // The `gasPrice` must be at least the `tipGasPrice`.
42
+ if (eip1559Enabled && tipGasPrice && gasPrice.lt(tipGasPrice)) {
43
+ gasPrice = tipGasPrice
44
+ }
40
45
 
41
46
  const gasLimit = providedGasLimit || asset.gasLimit || defaultGasLimit
42
47