@exodus/ethereum-lib 2.21.1 → 2.21.2
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 +2 -2
- package/src/utils/index.js +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-lib",
|
|
3
|
-
"version": "2.21.
|
|
3
|
+
"version": "2.21.2",
|
|
4
4
|
"description": "Ethereum Library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"ms": "^2.1.1",
|
|
27
27
|
"reselect": "~3.0.1"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "0c9784a5eba8cec14a1907a77d5343c2eefa4f64"
|
|
30
30
|
}
|
package/src/utils/index.js
CHANGED
|
@@ -83,7 +83,17 @@ export const isApproveTx = (tx) => tx?.data?.data?.startsWith(APPROVE_METHOD_ID)
|
|
|
83
83
|
export const isFeePaymentTx = (tx) => tx?.data?.data?.startsWith(FEE_PAYMENT_PREFIX)
|
|
84
84
|
|
|
85
85
|
export const isRpcBalanceAsset = (asset) =>
|
|
86
|
-
[
|
|
86
|
+
[
|
|
87
|
+
'bsc',
|
|
88
|
+
'matic',
|
|
89
|
+
'babydoge_bsc',
|
|
90
|
+
'steth',
|
|
91
|
+
'weth',
|
|
92
|
+
'wmatic_matic_424fae45',
|
|
93
|
+
'wbnb_bsc_7329a389',
|
|
94
|
+
'wavax_avalanchec_635505b3',
|
|
95
|
+
'wftm_fantommainnet_7edc4949',
|
|
96
|
+
].includes(asset.name)
|
|
87
97
|
|
|
88
98
|
export const getAssetAddresses = (asset) => {
|
|
89
99
|
// It seems to be two schemas of assets. The original and the transformed by the client.
|