@lavarage/sdk 7.5.12 → 7.5.14
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/idl/lavaragev2.ts +134 -2
- package/index.ts +29 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5428,7 +5428,6 @@ var borrowV1 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, tokenPr
|
|
|
5428
5428
|
});
|
|
5429
5429
|
const allInstructions = [
|
|
5430
5430
|
fromTokenAccount.instruction,
|
|
5431
|
-
toTokenAccount.instruction,
|
|
5432
5431
|
partnerFeeRecipientCreateIx,
|
|
5433
5432
|
tradingOpenBorrowInstruction,
|
|
5434
5433
|
openAddCollateralInstruction,
|
|
@@ -5844,7 +5843,6 @@ var openTradeV1 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
|
|
|
5844
5843
|
}
|
|
5845
5844
|
const allInstructions = [
|
|
5846
5845
|
fromTokenAccount.instruction,
|
|
5847
|
-
toTokenAccount.instruction,
|
|
5848
5846
|
partnerFeeRecipientCreateIx,
|
|
5849
5847
|
tradingOpenBorrowInstruction,
|
|
5850
5848
|
...jupiterIxs,
|
|
@@ -6549,8 +6547,7 @@ var closeTradeV1 = (lavarageProgram, position, offer, jupInstruction, partnerFee
|
|
|
6549
6547
|
if (splitTransactions) {
|
|
6550
6548
|
const setUpInstructions = [
|
|
6551
6549
|
partnerFeeRecipientCreateIx,
|
|
6552
|
-
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null
|
|
6553
|
-
createAssociatedTokenAccountInstruction2
|
|
6550
|
+
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null
|
|
6554
6551
|
].filter((i) => !!i);
|
|
6555
6552
|
const allInstructions2 = [
|
|
6556
6553
|
((_a = jupInstruction.instructions) == null ? void 0 : _a.tokenLedgerInstruction) ? deserializeInstruction(
|
|
@@ -6578,7 +6575,6 @@ var closeTradeV1 = (lavarageProgram, position, offer, jupInstruction, partnerFee
|
|
|
6578
6575
|
const allInstructions = [
|
|
6579
6576
|
partnerFeeRecipientCreateIx,
|
|
6580
6577
|
jupInstruction.instructions && (platformFeeRecipientAccount == null ? void 0 : platformFeeRecipientAccount.instruction) ? platformFeeRecipientAccount.instruction : null,
|
|
6581
|
-
createAssociatedTokenAccountInstruction2,
|
|
6582
6578
|
((_b = jupInstruction.instructions) == null ? void 0 : _b.tokenLedgerInstruction) ? deserializeInstruction(
|
|
6583
6579
|
jupInstruction.instructions.tokenLedgerInstruction
|
|
6584
6580
|
) : null,
|