@exodus/solana-api 3.25.0 → 3.25.1

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,16 @@
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
+ ## [3.25.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.25.0...@exodus/solana-api@3.25.1) (2025-11-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix(SOL): Fix mint address key mapping in clarity monitor balance aggregation (#6839)
13
+
14
+
15
+
6
16
  ## [3.25.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.24.1...@exodus/solana-api@3.25.0) (2025-10-30)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.25.0",
3
+ "version": "3.25.1",
4
4
  "description": "Transaction monitors, fee monitors, RPC with the blockchain node, and other networking code for Solana",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -49,7 +49,7 @@
49
49
  "@exodus/assets-testing": "^1.0.0",
50
50
  "@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
51
51
  },
52
- "gitHead": "747fdeb31c49ca85b21904d406a589c06a3bc101",
52
+ "gitHead": "a87798a8db1f3ffceb94684a842f22b35025d549",
53
53
  "bugs": {
54
54
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
55
55
  },
@@ -298,12 +298,9 @@ export class SolanaClarityMonitor extends BaseMonitor {
298
298
  } else {
299
299
  delegatedBalances[mintAddress] = fullBalanceCurrency
300
300
  }
301
- }
302
301
 
303
- // Store delegated amounts separately for the account state
304
- if (this.assets[tokenName]) {
305
302
  const delegatedAmountCurrency = this.assets[tokenName].currency.baseUnit(delegatedAmount)
306
- if (!delegatedAmountCurrency.isZero()) {
303
+ if (!delegatedAmountCurrency.equals(this.assets[tokenName].currency.ZERO)) {
307
304
  if (!delegatedTokenAmounts[tokenName]) {
308
305
  delegatedTokenAmounts[tokenName] = {}
309
306
  }
@@ -316,8 +313,23 @@ export class SolanaClarityMonitor extends BaseMonitor {
316
313
  }
317
314
  }
318
315
 
319
- // Combine owned and delegated balances
320
- const combinedBalances = { ...splBalances }
316
+ const combinedBalances = {}
317
+
318
+ const tokenNameToMintAddress = {}
319
+ for (const account of ownedTokenAccounts || []) {
320
+ if (account.tokenName && account.mintAddress) {
321
+ tokenNameToMintAddress[account.tokenName] = account.mintAddress
322
+ }
323
+ }
324
+
325
+ for (const [tokenName, balance] of Object.entries(splBalances)) {
326
+ const mintAddress = tokenNameToMintAddress[tokenName]
327
+
328
+ if (mintAddress) {
329
+ combinedBalances[mintAddress] = balance
330
+ }
331
+ }
332
+
321
333
  for (const [mintAddress, delegatedBalanceCurrency] of Object.entries(delegatedBalances)) {
322
334
  const tokenName = this.api.tokens.get(mintAddress)?.name
323
335
  if (tokenName && this.assets[tokenName]) {