@exodus/solana-api 3.13.5 → 3.13.6

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.13.6](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.13.5...@exodus/solana-api@3.13.6) (2025-02-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix: SOL stakeable negative balance (#5059)
13
+
14
+
15
+
6
16
  ## [3.13.5](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.13.4...@exodus/solana-api@3.13.5) (2025-02-04)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.13.5",
3
+ "version": "3.13.6",
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",
@@ -47,7 +47,7 @@
47
47
  "@exodus/assets-testing": "^1.0.0",
48
48
  "@exodus/solana-web3.js": "^1.63.1-exodus.9-rc3"
49
49
  },
50
- "gitHead": "84efbc1abdb6e85b5250a304cbea2e7d76d11501",
50
+ "gitHead": "99d356ad160e39cb3820c7766e503916966605f0",
51
51
  "bugs": {
52
52
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
53
53
  },
@@ -47,7 +47,9 @@ export const getBalancesFactory =
47
47
  const spendable = balanceWithoutStaking.sub(walletReserve).sub(networkReserve).clampLowerZero()
48
48
 
49
49
  // leave enough amount for accountReserve if it's not reserved already
50
- const stakeable = walletReserve.isZero ? spendable.sub(accountReserve) : spendable
50
+ const stakeable = walletReserve.isZero
51
+ ? spendable.sub(accountReserve).clampLowerZero()
52
+ : spendable
51
53
 
52
54
  const staked = locked
53
55
  const unstaking = pending