@lavarage/sdk 6.0.0 → 6.0.1
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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/index.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2849,7 +2849,7 @@ var closeTradeV1 = (lavarageProgram, position, offer, jupInstruction, partnerFee
|
|
|
2849
2849
|
}).instruction();
|
|
2850
2850
|
let repaySolIx = null;
|
|
2851
2851
|
let jupiterIxs = [];
|
|
2852
|
-
if (jupInstruction.instructions ==
|
|
2852
|
+
if (jupInstruction.instructions == void 0) {
|
|
2853
2853
|
repaySolIx = yield lavarageProgram.methods.tradingCloseRepaySol(new import_anchor.BN(jupInstruction.quoteResponse.outAmount), new import_anchor.BN(9997)).accountsStrict({
|
|
2854
2854
|
nodeWallet: pool.account.nodeWallet,
|
|
2855
2855
|
positionAccount: positionAccountPDA,
|
|
@@ -2964,7 +2964,7 @@ var closeTradeV2 = (lavarageProgram, position, offer, jupInstruction, quoteToken
|
|
|
2964
2964
|
}).instruction();
|
|
2965
2965
|
let repaySolIx = null;
|
|
2966
2966
|
let jupiterIxs = [];
|
|
2967
|
-
if (jupInstruction.instructions ==
|
|
2967
|
+
if (jupInstruction.instructions == void 0) {
|
|
2968
2968
|
repaySolIx = yield lavarageProgram.methods.tradingCloseRepaySol(new import_anchor.BN(jupInstruction.quoteResponse.outAmount), new import_anchor.BN(9997)).accountsStrict({
|
|
2969
2969
|
nodeWallet: pool.account.nodeWallet,
|
|
2970
2970
|
positionAccount: positionAccountPDA,
|