@lavarage/sdk 7.5.12 → 7.5.13
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 +1 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -5
- package/dist/index.mjs.map +1 -1
- package/index.ts +0 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5394,7 +5394,6 @@ var borrowV1 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, tokenPr
|
|
|
5394
5394
|
});
|
|
5395
5395
|
const allInstructions = [
|
|
5396
5396
|
fromTokenAccount.instruction,
|
|
5397
|
-
toTokenAccount.instruction,
|
|
5398
5397
|
partnerFeeRecipientCreateIx,
|
|
5399
5398
|
tradingOpenBorrowInstruction,
|
|
5400
5399
|
openAddCollateralInstruction,
|
|
@@ -5810,7 +5809,6 @@ var openTradeV1 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
5810
5809
|
}
|
|
5811
5810
|
const allInstructions = [
|
|
5812
5811
|
fromTokenAccount.instruction,
|
|
5813
|
-
toTokenAccount.instruction,
|
|
5814
5812
|
partnerFeeRecipientCreateIx,
|
|
5815
5813
|
tradingOpenBorrowInstruction,
|
|
5816
5814
|
...jupiterIxs,
|
|
@@ -6515,8 +6513,7 @@ var closeTradeV1 = (lavarageProgram, position, offer, jupInstruction, partnerFee
|
|
|
6515
6513
|
if (splitTransactions) {
|
|
6516
6514
|
const setUpInstructions = [
|
|
6517
6515
|
partnerFeeRecipientCreateIx,
|
|
6518
|
-
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null
|
|
6519
|
-
createAssociatedTokenAccountInstruction2
|
|
6516
|
+
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null
|
|
6520
6517
|
].filter((i) => !!i);
|
|
6521
6518
|
const allInstructions2 = [
|
|
6522
6519
|
((_a = jupInstruction.instructions) == null ? void 0 : _a.tokenLedgerInstruction) ? deserializeInstruction(
|
|
@@ -6544,7 +6541,6 @@ var closeTradeV1 = (lavarageProgram, position, offer, jupInstruction, partnerFee
|
|
|
6544
6541
|
const allInstructions = [
|
|
6545
6542
|
partnerFeeRecipientCreateIx,
|
|
6546
6543
|
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null,
|
|
6547
|
-
createAssociatedTokenAccountInstruction2,
|
|
6548
6544
|
((_b = jupInstruction.instructions) == null ? void 0 : _b.tokenLedgerInstruction) ? deserializeInstruction(
|
|
6549
6545
|
jupInstruction.instructions.tokenLedgerInstruction
|
|
6550
6546
|
) : null,
|