@exodus/solana-lib 1.7.6 → 1.8.0
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/package.json +4 -3
- package/src/transaction.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Exodus internal Solana low-level library",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"lint:fix": "yarn lint --fix"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@exodus/asset-lib": "^
|
|
21
|
+
"@exodus/asset-lib": "^4.1.0",
|
|
22
22
|
"@exodus/buffer-layout": "^1.2.0-exodus1",
|
|
23
23
|
"@exodus/key-utils": "^3.1.0",
|
|
24
24
|
"@exodus/models": "^10.1.0",
|
|
@@ -34,5 +34,6 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@solana/web3.js": "^1.90.0"
|
|
37
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"gitHead": "dc0ae33970f29ed4ac1d66ea4211f6da10202d14"
|
|
38
39
|
}
|
package/src/transaction.js
CHANGED
|
@@ -102,7 +102,7 @@ class Tx {
|
|
|
102
102
|
// if fee greater than base fee. Add prioritization fee:
|
|
103
103
|
if (fee > feeData.fee.toBaseNumber()) {
|
|
104
104
|
const ratio = fee - feeData.fee.toBaseNumber()
|
|
105
|
-
if (ratio >
|
|
105
|
+
if (ratio > 1_000_000) throw new Error('Prioritization fee is too high')
|
|
106
106
|
|
|
107
107
|
const priorityFeeInstruction = ComputeBudgetProgram.setComputeUnitPrice({
|
|
108
108
|
microLamports: ratio || 100,
|