@exodus/solana-plugin 1.3.0 → 1.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-plugin",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Exodus internal Solana asset plugin",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -30,5 +30,5 @@
30
30
  "devDependencies": {
31
31
  "@exodus/assets-testing": "^1.0.0"
32
32
  },
33
- "gitHead": "01254e502415ab368a8d8c9932f7e30476146e9a"
33
+ "gitHead": "6a06eae41e68f914503a0df3762e1e80301774ee"
34
34
  }
@@ -28,6 +28,7 @@ const DEFAULT_MIN_STAKING_AMOUNT = 0.01
28
28
  export const createSolanaAssetFactory =
29
29
  ({ assetList, serverApi }) =>
30
30
  ({
31
+ assetClientInterface,
31
32
  config: {
32
33
  stakingFeatureAvailable = true,
33
34
  includeUnparsed = false,
@@ -42,7 +43,9 @@ export const createSolanaAssetFactory =
42
43
  overrideCallback = ({ asset }) => asset,
43
44
  } = {}) => {
44
45
  const assets = connectAssetsList(assetList)
45
- const base = assets.solana
46
+
47
+ const baseName = assetList.find((asset) => asset.baseAssetName === asset.name)
48
+ const base = assets[baseName]
46
49
 
47
50
  const accountReserve = base.currency.defaultUnit(
48
51
  defaultAccountReserve ?? DEFAULT_ACCOUNT_RESERVE
@@ -97,7 +100,7 @@ export const createSolanaAssetFactory =
97
100
 
98
101
  const features = {
99
102
  accountState: true,
100
- customTokens: true,
103
+ customTokens: base.name === 'solana',
101
104
  feeMonitor: false,
102
105
  feesApi: true,
103
106
  nfts: true,