@lavarage/sdk 7.5.15 → 7.5.17
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 +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/index.ts +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5494,6 +5494,7 @@ var borrowV1 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, tokenPr
|
|
|
5494
5494
|
});
|
|
5495
5495
|
const allInstructions = [
|
|
5496
5496
|
fromTokenAccount.instruction,
|
|
5497
|
+
toTokenAccount.instruction,
|
|
5497
5498
|
partnerFeeRecipientCreateIx,
|
|
5498
5499
|
tradingOpenBorrowInstruction,
|
|
5499
5500
|
openAddCollateralInstruction,
|
|
@@ -5910,6 +5911,7 @@ var openTradeV1 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
5910
5911
|
}
|
|
5911
5912
|
const allInstructions = [
|
|
5912
5913
|
fromTokenAccount.instruction,
|
|
5914
|
+
toTokenAccount.instruction,
|
|
5913
5915
|
partnerFeeRecipientCreateIx,
|
|
5914
5916
|
tradingOpenBorrowInstruction,
|
|
5915
5917
|
...jupiterIxs,
|
|
@@ -6190,6 +6192,7 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
6190
6192
|
if (splitTransactions) {
|
|
6191
6193
|
const setUpInstructions = [
|
|
6192
6194
|
fromTokenAccount.instruction,
|
|
6195
|
+
toTokenAccount.instruction,
|
|
6193
6196
|
partnerFeeRecipientVaultCreateIx,
|
|
6194
6197
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
6195
6198
|
...setupInstructions.map(deserializeInstruction)
|
|
@@ -6217,6 +6220,7 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
6217
6220
|
}
|
|
6218
6221
|
const allInstructions = [
|
|
6219
6222
|
fromTokenAccount.instruction,
|
|
6223
|
+
toTokenAccount.instruction,
|
|
6220
6224
|
partnerFeeRecipientVaultCreateIx,
|
|
6221
6225
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
6222
6226
|
tradingOpenBorrowInstruction,
|
|
@@ -7030,8 +7034,8 @@ var closeTradeV2 = (lavarageProgram, position, offer, jupInstruction, quoteToken
|
|
|
7030
7034
|
const setUpInstructions = [
|
|
7031
7035
|
partnerFeeRecipientVaultCreateIx,
|
|
7032
7036
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
7033
|
-
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null
|
|
7034
|
-
|
|
7037
|
+
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null,
|
|
7038
|
+
createAssociatedTokenAccountInstruction2
|
|
7035
7039
|
].filter((i) => !!i);
|
|
7036
7040
|
const allInstructions2 = [
|
|
7037
7041
|
((_a = jupInstruction.instructions) == null ? void 0 : _a.tokenLedgerInstruction) ? deserializeInstruction(
|
|
@@ -7060,7 +7064,7 @@ var closeTradeV2 = (lavarageProgram, position, offer, jupInstruction, quoteToken
|
|
|
7060
7064
|
partnerFeeRecipientVaultCreateIx,
|
|
7061
7065
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
7062
7066
|
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null,
|
|
7063
|
-
|
|
7067
|
+
createAssociatedTokenAccountInstruction2,
|
|
7064
7068
|
((_b = jupInstruction.instructions) == null ? void 0 : _b.tokenLedgerInstruction) ? deserializeInstruction(
|
|
7065
7069
|
jupInstruction.instructions.tokenLedgerInstruction
|
|
7066
7070
|
) : null,
|