@lavarage/sdk 8.0.8 → 8.0.10

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 CHANGED
@@ -9720,10 +9720,11 @@ var borrowV2 = (lavarageProgram, offer, marginSOL, leverage, randomSeed, quoteTo
9720
9720
  microLamports: computeBudgetMicroLamports != null ? computeBudgetMicroLamports : 1e5
9721
9721
  });
9722
9722
  const allInstructions = [
9723
+ // must be the first instruction in the transaction
9724
+ ...updateOracleInstructions,
9723
9725
  fromTokenAccount.instruction,
9724
9726
  partnerFeeRecipientVaultCreateIx,
9725
9727
  partnerFeeRecipientTokenAccountCreateIx,
9726
- ...updateOracleInstructions,
9727
9728
  tradingOpenBorrowInstruction,
9728
9729
  openAddCollateralInstruction,
9729
9730
  computeBudgetMicroLamports ? computeFeeIx : void 0
@@ -10264,12 +10265,13 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
10264
10265
  const setUpInstructions = [
10265
10266
  // fromTokenAccount.instruction!,
10266
10267
  // toTokenAccount.instruction!,
10268
+ // must be the first instruction in the transaction
10269
+ ...updateOracleInstructions,
10267
10270
  partnerFeeRecipientVaultCreateIx,
10268
10271
  partnerFeeRecipientTokenAccountCreateIx,
10269
10272
  ...setupInstructions.map(deserializeInstruction)
10270
10273
  ].filter(Boolean);
10271
10274
  const allInstructions2 = [
10272
- ...updateOracleInstructions,
10273
10275
  tradingOpenBorrowInstruction,
10274
10276
  deserializeInstruction(swapInstructionPayload),
10275
10277
  ,
@@ -10293,9 +10295,10 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
10293
10295
  const allInstructions = [
10294
10296
  // fromTokenAccount.instruction!,
10295
10297
  // toTokenAccount.instruction!,
10298
+ // must be the first instruction in the transaction
10299
+ ...updateOracleInstructions,
10296
10300
  partnerFeeRecipientVaultCreateIx,
10297
10301
  partnerFeeRecipientTokenAccountCreateIx,
10298
- ...updateOracleInstructions,
10299
10302
  tradingOpenBorrowInstruction,
10300
10303
  ...jupiterIxs,
10301
10304
  openAddCollateralInstruction,