@lavarage/sdk 8.0.16 → 8.0.17

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/index.ts CHANGED
@@ -846,6 +846,7 @@ export const borrowV2 = async (
846
846
  tradingPool: offer.publicKey,
847
847
  trader: lavarageProgram.provider.publicKey!,
848
848
  mint: offer.account.collateralType,
849
+ quoteMint: quoteToken,
849
850
  toTokenAccount: toTokenAccount.account!.address,
850
851
  systemProgram: SystemProgram.programId,
851
852
  positionAccount,
@@ -1207,12 +1208,12 @@ export const openTradeV1 = async (
1207
1208
  fromTokenAccount.instruction!,
1208
1209
  toTokenAccount.instruction!,
1209
1210
  partnerFeeRecipientCreateIx,
1210
- ...setupInstructions.map(deserializeInstruction),
1211
1211
  ].filter(Boolean) as TransactionInstruction[];
1212
1212
 
1213
1213
  const allInstructions = [
1214
1214
  tradingOpenBorrowInstruction!,
1215
- deserializeInstruction(swapInstructionPayload), ,
1215
+ ...setupInstructions.map(deserializeInstruction),
1216
+ deserializeInstruction(swapInstructionPayload),
1216
1217
  openAddCollateralInstruction!,
1217
1218
  computeBudgetMicroLamports ? computeFeeIx : undefined,
1218
1219
  ].filter(Boolean) as TransactionInstruction[];
@@ -1677,6 +1678,7 @@ export const openTradeV2 = async (
1677
1678
  tradingPool: offer.publicKey,
1678
1679
  trader: program.provider.publicKey!,
1679
1680
  mint: offer.account.collateralType,
1681
+ quoteMint: quoteToken,
1680
1682
  toTokenAccount: toTokenAccount.account!.address,
1681
1683
  systemProgram: SystemProgram.programId,
1682
1684
  positionAccount,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavarage/sdk",
3
- "version": "8.0.16",
3
+ "version": "8.0.17",
4
4
  "description": "Lavarage SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",