@exodus/fiat-balances 13.7.5 → 13.8.0
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 +6 -0
- package/package.json +8 -8
- package/plugin/track-non-dust-asset-names.js +19 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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
|
+
## [13.8.0](https://github.com/ExodusMovement/exodus/compare/@exodus/fiat-balances@13.7.5...@exodus/fiat-balances@13.8.0) (2026-11-08)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **enabled-assets,fiat-balances:** ignore configured wallet accounts ([#48791](https://github.com/ExodusMovement/exodus/issues/48791)) ([8d69151](https://github.com/ExodusMovement/exodus/commit/8d6915133d8f3c58424157dfd644adb2b998c164))
|
|
11
|
+
|
|
6
12
|
## [13.7.5](https://github.com/ExodusMovement/exodus/compare/@exodus/fiat-balances@13.7.4...@exodus/fiat-balances@13.7.5) (2026-10-09)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @exodus/fiat-balances
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/fiat-balances",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.8.0",
|
|
4
4
|
"description": "Track asset and portfolio fiat balances based on changes in crypto balances and the user's preferred fiat currency",
|
|
5
5
|
"author": "Exodus Movement, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,36 +37,36 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@exodus/atoms": "^10.3.5",
|
|
39
39
|
"@exodus/basic-utils": "^5.2.1",
|
|
40
|
-
"@exodus/currency": "^6.4.
|
|
40
|
+
"@exodus/currency": "^6.4.2",
|
|
41
41
|
"@exodus/fiat-currencies": "^1.3.1",
|
|
42
|
-
"@exodus/formatting": "^11.1.
|
|
42
|
+
"@exodus/formatting": "^11.1.1",
|
|
43
43
|
"lodash": "^4.17.21",
|
|
44
|
-
"minimalistic-assert": "^1.0.1",
|
|
45
44
|
"reselect": "^3.0.1"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
47
|
"@exodus/assets": "^11.0.0",
|
|
49
48
|
"@exodus/assets-base": "^12.0.0",
|
|
50
|
-
"@exodus/assets-feature": "^9.
|
|
49
|
+
"@exodus/assets-feature": "^9.7.0",
|
|
51
50
|
"@exodus/available-assets": "^8.11.2",
|
|
52
51
|
"@exodus/balances": "^13.16.1",
|
|
53
52
|
"@exodus/blockchain-metadata": "^17.2.1",
|
|
54
53
|
"@exodus/combined-assets-meta": "^3.3.2",
|
|
55
|
-
"@exodus/enabled-assets": "^10.
|
|
54
|
+
"@exodus/enabled-assets": "^10.12.0",
|
|
56
55
|
"@exodus/favorite-assets": "^2.6.1",
|
|
57
56
|
"@exodus/fee-data-monitors": "^5.0.6",
|
|
58
|
-
"@exodus/models": "^13.3.
|
|
57
|
+
"@exodus/models": "^13.3.3",
|
|
59
58
|
"@exodus/rates-monitor": "^4.16.0",
|
|
60
59
|
"@exodus/redux-dependency-injection": "^5.0.0",
|
|
61
60
|
"@exodus/solana-meta": "^2.0.0",
|
|
62
61
|
"@exodus/storage-memory": "^2.4.1",
|
|
63
62
|
"@exodus/wallet-accounts": "^20.4.12",
|
|
64
63
|
"events": "^3.3.0",
|
|
64
|
+
"minimalistic-assert": "^1.0.1",
|
|
65
65
|
"redux": "^4.2.1"
|
|
66
66
|
},
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public",
|
|
69
69
|
"provenance": false
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "029a93c0112bc16a8a870d43af66b4c197adb9ea"
|
|
72
72
|
}
|
|
@@ -8,19 +8,33 @@ const createTrackNonDustAssetNamesPlugin = ({
|
|
|
8
8
|
fiatBalancesAtom,
|
|
9
9
|
fiatRateConverter,
|
|
10
10
|
nonDustBalanceAssetNamesAtom,
|
|
11
|
-
config: {
|
|
11
|
+
config: {
|
|
12
|
+
balanceThresholdsUsd,
|
|
13
|
+
balanceThresholdByChainUsd,
|
|
14
|
+
defaultBalanceThresholdUsd,
|
|
15
|
+
ignoredWalletAccounts = [],
|
|
16
|
+
},
|
|
12
17
|
}) => {
|
|
18
|
+
if (
|
|
19
|
+
!Array.isArray(ignoredWalletAccounts) ||
|
|
20
|
+
!ignoredWalletAccounts.every((walletAccount) => typeof walletAccount === 'string')
|
|
21
|
+
) {
|
|
22
|
+
throw new TypeError('ignoredWalletAccounts must be an array of wallet account names')
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const ignoredWalletAccountsSet = new Set(ignoredWalletAccounts)
|
|
26
|
+
|
|
13
27
|
const handleFiatBalancesChanged = async ({ balances }) => {
|
|
14
28
|
const { byAssetSource } = balances
|
|
15
29
|
if (!byAssetSource) return
|
|
16
30
|
|
|
17
|
-
const balancesByAssetSource = flattenToPaths(byAssetSource)
|
|
18
|
-
([walletAccount, assetName, _balanceField, balance]) => ({
|
|
31
|
+
const balancesByAssetSource = flattenToPaths(byAssetSource)
|
|
32
|
+
.map(([walletAccount, assetName, _balanceField, balance]) => ({
|
|
19
33
|
walletAccount,
|
|
20
34
|
assetName,
|
|
21
35
|
balance,
|
|
22
|
-
})
|
|
23
|
-
|
|
36
|
+
}))
|
|
37
|
+
.filter(({ walletAccount }) => !ignoredWalletAccountsSet.has(walletAccount))
|
|
24
38
|
|
|
25
39
|
const aboveThreshold = await filterAsync(
|
|
26
40
|
balancesByAssetSource,
|