@exodus/solana-lib 3.15.1 → 3.15.2

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,14 @@
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.15.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.15.1...@exodus/solana-lib@3.15.2) (2025-11-04)
7
+
8
+ **Note:** Version bump only for package @exodus/solana-lib
9
+
10
+
11
+
12
+
13
+
6
14
  ## [3.15.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-lib@3.15.0...@exodus/solana-lib@3.15.1) (2025-10-30)
7
15
 
8
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-lib",
3
- "version": "3.15.1",
3
+ "version": "3.15.2",
4
4
  "description": "Solana utils, such as for cryptography, address encoding/decoding, transaction building, etc.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -47,5 +47,5 @@
47
47
  "type": "git",
48
48
  "url": "git+https://github.com/ExodusMovement/assets.git"
49
49
  },
50
- "gitHead": "9d712b3aad3011cee863c93accec6a552593bf61"
50
+ "gitHead": "c327da082bf6b55c270d4ab754c2abdc73e0a8de"
51
51
  }
@@ -173,14 +173,7 @@ class Tx {
173
173
  let amountLeft = new BN(amount)
174
174
  let amountToSend
175
175
  let isNotEnoughBalance = false
176
- for (let {
177
- mintAddress,
178
- tokenAccountAddress,
179
- balance,
180
- decimals,
181
- isDelegated,
182
- delegatedAmount,
183
- } of fromTokenAddresses) {
176
+ for (let { mintAddress, tokenAccountAddress, balance, decimals } of fromTokenAddresses) {
184
177
  // need to add more of this instruction until we reach the desired balance (amount) to send
185
178
  assert(mintAddress === tokenMintAddress, `Got unexpected mintAddress ${mintAddress}`)
186
179
 
@@ -188,15 +181,6 @@ class Tx {
188
181
  if (amountLeft.isZero()) break
189
182
 
190
183
  balance = new BN(balance)
191
-
192
- // For delegated accounts, limit transfer amount to delegated amount
193
- if (isDelegated) {
194
- const maxDelegated = new BN(delegatedAmount || '0')
195
- if (balance.gt(maxDelegated)) {
196
- balance = maxDelegated
197
- }
198
- }
199
-
200
184
  if (balance.gte(amountLeft)) {
201
185
  amountToSend = amountLeft
202
186
  amountLeft = new BN(0)