@exodus/ethereum-api 8.34.5 → 8.34.6

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-api",
3
- "version": "8.34.5",
3
+ "version": "8.34.6",
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",
@@ -49,7 +49,7 @@
49
49
  "ws": "^6.1.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@exodus/assets-testing": "workspace:^",
52
+ "@exodus/assets-testing": "^1.0.0",
53
53
  "@exodus/bsc-meta": "^2.1.2",
54
54
  "@exodus/ethereumarbone-meta": "^2.0.3",
55
55
  "@exodus/ethereumgoerli-meta": "^2.0.1",
@@ -63,5 +63,6 @@
63
63
  "repository": {
64
64
  "type": "git",
65
65
  "url": "git+https://github.com/ExodusMovement/assets.git"
66
- }
66
+ },
67
+ "gitHead": "ceed6b4fb7e39c2e16fed0b01814dc6060a49fc8"
67
68
  }
@@ -5,14 +5,6 @@ import { EXTRA_PERCENTAGE, fetchGasLimit, resolveDefaultTxInput } from './gas-es
5
5
  import { getFeeFactory } from './get-fee.js'
6
6
  import { getNftArguments } from './nft-utils.js'
7
7
 
8
- const FIXED_TRANSFER_GAS_LIMIT_ASSETS = new Set([
9
- 'amp',
10
- 'tetherusd',
11
- 'usdcoin',
12
- 'snx',
13
- 'geminidollar',
14
- ])
15
-
16
8
  const UNKNOWN_ADDRESS_EXTRA_PERCENTAGE = {
17
9
  usdt_bsc_ddedf0f8: 80,
18
10
  }
@@ -24,12 +16,6 @@ export async function resolveExtraPercentage({ asset, fromAddress, toAddress })
24
16
 
25
17
  const isToken = asset.name !== asset.baseAsset.name
26
18
 
27
- const isFixedGasLimitToken = isToken && FIXED_TRANSFER_GAS_LIMIT_ASSETS.has(asset.name)
28
-
29
- if (isFixedGasLimitToken) {
30
- return 0
31
- }
32
-
33
19
  // calling forwarder contracts with a bumped gas limit causes 'Out Of Gas' error on chain
34
20
  const hasForwarderContract =
35
21
  !isToken && toAddress ? await isForwarderContractCached({ asset, address: toAddress }) : false
@@ -29,7 +29,13 @@ export const HACK_maybeRefineSendAllAmount = async ({
29
29
  gasPrice,
30
30
  }) => {
31
31
  try {
32
- const { name: assetName } = asset
32
+ const { name: assetName, estimateL1DataFee } = asset
33
+
34
+ // HACK: For the interim, we won't attempt to
35
+ // reconcile transaction dust on L2s due
36
+ // to the nondeterminism about the calldata
37
+ // fee.
38
+ if (typeof estimateL1DataFee === 'function') return null
33
39
 
34
40
  const [txLog, accountState] = await Promise.all([
35
41
  assetClientInterface.getTxLog({