@exodus/assets-feature 9.3.2 → 9.3.3

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,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
+ ## [9.3.3](https://github.com/ExodusMovement/exodus/compare/@exodus/assets-feature@9.3.2...@exodus/assets-feature@9.3.3) (2026-09-11)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **assets-feature:** exclude testnet assets from dynamic combined assets ([#44957](https://github.com/ExodusMovement/exodus/issues/44957)) ([00c8d84](https://github.com/ExodusMovement/exodus/commit/00c8d849a93e8c5c9537bddf4d6b8707d6e91a32))
11
+
6
12
  ## [9.3.2](https://github.com/ExodusMovement/exodus/compare/@exodus/assets-feature@9.3.1...@exodus/assets-feature@9.3.2) (2026-09-02)
7
13
 
8
14
  ### Bug Fixes
@@ -24,8 +24,7 @@ const groupAssetsByTickerAndName = (assets) => {
24
24
 
25
25
  const isTestnetVariant = (asset) => asset.baseAsset?.api?.features?.isTestnet === true
26
26
 
27
- const byPrimaryPreference = (a, b) =>
28
- Number(isTestnetVariant(a)) - Number(isTestnetVariant(b)) || a.name.localeCompare(b.name)
27
+ const byName = (a, b) => a.name.localeCompare(b.name)
29
28
 
30
29
  const resolveDecimals = (assets) => {
31
30
  const decimals = assets.map((a) => a.currency?.defaultUnit?.power ?? 8)
@@ -33,7 +32,7 @@ const resolveDecimals = (assets) => {
33
32
  }
34
33
 
35
34
  const createDynamicCombinedAssetDefinition = (assetGroup) => {
36
- const sortedAssets = [...assetGroup].sort(byPrimaryPreference)
35
+ const sortedAssets = [...assetGroup].sort(byName)
37
36
  const [primary] = sortedAssets
38
37
 
39
38
  const normalizedTicker = normalizeForName(primary.displayTicker)
@@ -74,7 +73,9 @@ export const isTrustedAsset = (asset) => {
74
73
 
75
74
  export const createDynamicCombinedAssetDefinitions = (assets) => {
76
75
  const assetList = Array.isArray(assets) ? assets : Object.values(assets)
77
- const trustedAssets = assetList.filter(isTrustedAsset)
76
+ const trustedAssets = assetList.filter(
77
+ (asset) => isTrustedAsset(asset) && !isTestnetVariant(asset)
78
+ )
78
79
  const groups = groupAssetsByTickerAndName(trustedAssets)
79
80
 
80
81
  const definitions = []
@@ -103,4 +104,5 @@ export const findDynamicCombinedAssetForToken = (token, existingCombinedAssets)
103
104
  return null
104
105
  }
105
106
 
106
- export const shouldTokenJoinCombinedAsset = (token) => isTrustedAsset(token)
107
+ export const shouldTokenJoinCombinedAsset = (token) =>
108
+ isTrustedAsset(token) && !isTestnetVariant(token)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/assets-feature",
3
- "version": "9.3.2",
3
+ "version": "9.3.3",
4
4
  "license": "MIT",
5
5
  "description": "This Exodus SDK feature provides access to instances of all blockchain asset adapters supported by the wallet, and enables you to search for and add custom tokens at runtime.",
6
6
  "type": "module",
@@ -84,5 +84,5 @@
84
84
  "access": "public",
85
85
  "provenance": false
86
86
  },
87
- "gitHead": "b8b267e27a2516dfc57d737b82aa361da652d0c1"
87
+ "gitHead": "3f88b975403ac684cd7c23b7559fecbb797d83ad"
88
88
  }