@raydium-io/raydium-sdk-v2 0.1.90-alpha → 0.1.91-alpha
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/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/lib/raydium/index.js +1 -1
- package/lib/raydium/index.js.map +1 -1
- package/lib/raydium/index.mjs +1 -1
- package/lib/raydium/index.mjs.map +1 -1
- package/lib/raydium/raydium.js +1 -1
- package/lib/raydium/raydium.js.map +1 -1
- package/lib/raydium/raydium.mjs +1 -1
- package/lib/raydium/raydium.mjs.map +1 -1
- package/lib/raydium/tradeV2/index.js.map +1 -1
- package/lib/raydium/tradeV2/index.mjs.map +1 -1
- package/lib/raydium/tradeV2/trade.js +1 -1
- package/lib/raydium/tradeV2/trade.js.map +1 -1
- package/lib/raydium/tradeV2/trade.mjs +1 -1
- package/lib/raydium/tradeV2/trade.mjs.map +1 -1
- package/package.json +3 -2
- package/src/raydium/.DS_Store +0 -0
- package/src/raydium/tradeV2/trade.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raydium-io/raydium-sdk-v2",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.91-alpha",
|
|
4
4
|
"description": "An SDK for building applications on top of Raydium.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"bn.js": "^5.2.1",
|
|
48
48
|
"dayjs": "^1.11.5",
|
|
49
49
|
"decimal.js-light": "^2.5.1",
|
|
50
|
+
"jsonfile": "^6.1.0",
|
|
50
51
|
"lodash": "^4.17.21",
|
|
51
52
|
"toformat": "^2.0.0",
|
|
52
53
|
"tsconfig-paths": "^4.2.0"
|
|
@@ -78,4 +79,4 @@
|
|
|
78
79
|
"typescript": "^4.7.3",
|
|
79
80
|
"yarn": "^1.22.19"
|
|
80
81
|
}
|
|
81
|
-
}
|
|
82
|
+
}
|
package/src/raydium/.DS_Store
CHANGED
|
Binary file
|
|
@@ -209,7 +209,7 @@ export default class TradeV2 extends ModuleBase {
|
|
|
209
209
|
}
|
|
210
210
|
|
|
211
211
|
let destinationAcc: PublicKey;
|
|
212
|
-
if (swapInfo.routeType === "route") {
|
|
212
|
+
if (swapInfo.routeType === "route" && !isOutputSol) {
|
|
213
213
|
destinationAcc = this.scope.account.getAssociatedTokenAccount(
|
|
214
214
|
outputMint,
|
|
215
215
|
amountOut.amount.token.isToken2022 ? TOKEN_2022_PROGRAM_ID : TOKEN_PROGRAM_ID,
|