@exodus/solana-plugin 1.23.0 → 1.23.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 +22 -0
- package/package.json +3 -3
- package/src/create-asset.js +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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
|
+
## [1.23.2](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.23.1...@exodus/solana-plugin@1.23.2) (2025-06-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
* fix: SOL add multi-dex swap tests (#5927)
|
|
13
|
+
|
|
14
|
+
* fix: SOL move funds (#5935)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## [1.23.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.23.0...@exodus/solana-plugin@1.23.1) (2025-06-11)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* fix: SOL owner changed check (#5805)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [1.23.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.22.0...@exodus/solana-plugin@1.23.0) (2025-06-11)
|
|
7
29
|
|
|
8
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.2",
|
|
4
4
|
"description": "Solana plugin for Exodus SDK powered wallets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@exodus/assets": "^11.0.0",
|
|
25
25
|
"@exodus/bip44-constants": "^195.0.0",
|
|
26
|
-
"@exodus/solana-api": "^3.20.
|
|
26
|
+
"@exodus/solana-api": "^3.20.3",
|
|
27
27
|
"@exodus/solana-lib": "^3.11.2",
|
|
28
28
|
"@exodus/solana-meta": "^2.3.1",
|
|
29
29
|
"@exodus/web3-solana-utils": "^2.9.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"type": "git",
|
|
41
41
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "a5721f9708d787604715c4dba1f0ab16a683d7c4"
|
|
44
44
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -134,11 +134,14 @@ export const createSolanaAssetFactory =
|
|
|
134
134
|
|
|
135
135
|
const defaultAddressPath = 'm/0/0'
|
|
136
136
|
|
|
137
|
-
const getFee = ({ feeData }) => {
|
|
137
|
+
const getFee = ({ asset, feeData }) => {
|
|
138
138
|
const priorityFee = feeData.priorityFee ?? 0
|
|
139
139
|
// NOTE: fee is bumped via remote config, eventually fee = feeData.fee + (priorityFee * unitsConsumed * feeData.computeUnitsMultiplier)
|
|
140
|
-
const
|
|
140
|
+
const SOL_TRANSFER_CU = 450 // standard SOL transfer // HACK: solana needs to use getFeeAsync
|
|
141
|
+
const SPL_TRANSFER_CU = 4944 // SPL transfer // HACK: solana needs to use getFeeAsync
|
|
142
|
+
const isToken = asset.name !== base.name
|
|
141
143
|
|
|
144
|
+
const computeUnits = isToken ? SPL_TRANSFER_CU : SOL_TRANSFER_CU
|
|
142
145
|
const fee = feeData.baseFee.add(
|
|
143
146
|
base.currency.baseUnit(priorityFee).mul(computeUnits).div(1_000_000) // micro lamports to lamports
|
|
144
147
|
)
|