@lavarage/sdk 8.0.5 → 8.0.6

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
@@ -10141,6 +10141,41 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
10141
10141
  );
10142
10142
  }
10143
10143
  }
10144
+ console.log("SDK: tradingOpenBorrowInstruction accounts", {
10145
+ nodeWallet: offer.account.nodeWallet,
10146
+ instructions: import_web33.SYSVAR_INSTRUCTIONS_PUBKEY,
10147
+ tradingPool: offer.publicKey,
10148
+ positionAccount,
10149
+ trader: program.provider.publicKey,
10150
+ systemProgram: import_web33.SystemProgram.programId,
10151
+ clock: import_web33.SYSVAR_CLOCK_PUBKEY,
10152
+ randomAccountAsId: randomSeed.publicKey.toBase58(),
10153
+ feeTokenAccount: (0, import_spl_token3.getAssociatedTokenAddressSync)(
10154
+ quoteToken,
10155
+ new import_web33.PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF"),
10156
+ true,
10157
+ quoteTokenProgram
10158
+ ),
10159
+ toTokenAccount: (0, import_spl_token3.getAssociatedTokenAddressSync)(
10160
+ quoteToken,
10161
+ program.provider.publicKey,
10162
+ true,
10163
+ quoteTokenProgram
10164
+ ),
10165
+ tokenProgram: quoteTokenProgram,
10166
+ fromTokenAccount: (0, import_spl_token3.getAssociatedTokenAddressSync)(
10167
+ quoteToken,
10168
+ offer.account.nodeWallet,
10169
+ true,
10170
+ quoteTokenProgram
10171
+ ),
10172
+ positionTokenAccount: toTokenAccount.account.address,
10173
+ collateralTokenProgram: tokenProgram,
10174
+ associatedTokenProgram: import_spl_token3.ASSOCIATED_TOKEN_PROGRAM_ID,
10175
+ collateralMint: offer.account.collateralType,
10176
+ quoteMint: quoteToken,
10177
+ feeRecipient: new import_web33.PublicKey("6JfTobDvwuwZxZP6FR5JPmjdvQ4h4MovkEVH2FPsMSrF")
10178
+ });
10144
10179
  const updateOracleInstructions = yield getUpdateOracleIxs(
10145
10180
  // @ts-expect-error IDL mismatch
10146
10181
  program,