@exodus/solana-api 3.17.2 → 3.17.4

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,26 @@
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.17.4](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.17.3...@exodus/solana-api@3.17.4) (2025-04-25)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+
12
+ * fix(solana): don't throw for rent when we add a fee payer (#5501)
13
+
14
+
15
+
16
+ ## [3.17.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.17.2...@exodus/solana-api@3.17.3) (2025-04-23)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+
22
+ * fix: SOL skip unparsed token2022 (#5476)
23
+
24
+
25
+
6
26
  ## [3.17.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.17.1...@exodus/solana-api@3.17.2) (2025-04-21)
7
27
 
8
28
  **Note:** Version bump only for package @exodus/solana-api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "3.17.2",
3
+ "version": "3.17.4",
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": "2e550990ef9db4209f8fe4e6e0485579d1afeedf",
50
+ "gitHead": "aaa9d5613e770483159c799b5ccf5bef971acc47",
51
51
  "bugs": {
52
52
  "url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
53
53
  },
package/src/api.js CHANGED
@@ -830,6 +830,8 @@ export class Api {
830
830
  const { pubkey, account } = entry
831
831
 
832
832
  const mint = lodash.get(account, 'data.parsed.info.mint')
833
+ if (!mint) continue // not a token account (or cannot be parsed)
834
+
833
835
  const token = this.getTokenByAddress(mint) || {
834
836
  name: 'unknown',
835
837
  ticker: 'UNKNOWN',
@@ -218,17 +218,19 @@ export const createUnsignedTxForSend = async ({
218
218
  .gte(rentExemptAmount)
219
219
  }
220
220
 
221
- if (!isEnoughForRent) {
221
+ const tx = await maybeAddFeePayer({
222
+ unsignedTx,
223
+ feePayerApiUrl,
224
+ assetName: asset.baseAsset.name,
225
+ })
226
+
227
+ if (!isEnoughForRent && !tx.txMeta.usedFeePayer) {
222
228
  const err = new Error('Sending SOL amount is too low to cover the rent exemption fee.')
223
229
  err.rentExemptAmount = true
224
230
  throw err
225
231
  }
226
232
 
227
- return maybeAddFeePayer({
228
- unsignedTx,
229
- feePayerApiUrl,
230
- assetName: asset.baseAsset.name,
231
- })
233
+ return tx
232
234
  }
233
235
 
234
236
  export const extractTxLogData = async ({ unsignedTx, api }) => {