@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/dist/index.d.mts +567 -1047
- package/dist/index.d.ts +567 -1047
- package/dist/index.js +531 -1010
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +531 -1010
- package/dist/index.mjs.map +1 -1
- package/idl/lavarageUSDC.json +594 -1074
- package/idl/lavarageUSDC.ts +594 -1074
- package/index.ts +4 -2
- package/package.json +1 -1
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
|
|
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,
|