@lavarage/sdk 7.5.15 → 7.5.16
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 +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/index.ts +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6190,6 +6190,7 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
6190
6190
|
if (splitTransactions) {
|
|
6191
6191
|
const setUpInstructions = [
|
|
6192
6192
|
fromTokenAccount.instruction,
|
|
6193
|
+
toTokenAccount.instruction,
|
|
6193
6194
|
partnerFeeRecipientVaultCreateIx,
|
|
6194
6195
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
6195
6196
|
...setupInstructions.map(deserializeInstruction)
|
|
@@ -6217,6 +6218,7 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
6217
6218
|
}
|
|
6218
6219
|
const allInstructions = [
|
|
6219
6220
|
fromTokenAccount.instruction,
|
|
6221
|
+
toTokenAccount.instruction,
|
|
6220
6222
|
partnerFeeRecipientVaultCreateIx,
|
|
6221
6223
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
6222
6224
|
tradingOpenBorrowInstruction,
|
|
@@ -7030,8 +7032,8 @@ var closeTradeV2 = (lavarageProgram, position, offer, jupInstruction, quoteToken
|
|
|
7030
7032
|
const setUpInstructions = [
|
|
7031
7033
|
partnerFeeRecipientVaultCreateIx,
|
|
7032
7034
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
7033
|
-
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null
|
|
7034
|
-
|
|
7035
|
+
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null,
|
|
7036
|
+
createAssociatedTokenAccountInstruction2
|
|
7035
7037
|
].filter((i) => !!i);
|
|
7036
7038
|
const allInstructions2 = [
|
|
7037
7039
|
((_a = jupInstruction.instructions) == null ? void 0 : _a.tokenLedgerInstruction) ? deserializeInstruction(
|
|
@@ -7060,7 +7062,7 @@ var closeTradeV2 = (lavarageProgram, position, offer, jupInstruction, quoteToken
|
|
|
7060
7062
|
partnerFeeRecipientVaultCreateIx,
|
|
7061
7063
|
partnerFeeRecipientTokenAccountCreateIx,
|
|
7062
7064
|
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null,
|
|
7063
|
-
|
|
7065
|
+
createAssociatedTokenAccountInstruction2,
|
|
7064
7066
|
((_b = jupInstruction.instructions) == null ? void 0 : _b.tokenLedgerInstruction) ? deserializeInstruction(
|
|
7065
7067
|
jupInstruction.instructions.tokenLedgerInstruction
|
|
7066
7068
|
) : null,
|