@lavarage/sdk 7.5.15 → 7.5.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
@@ -569,6 +569,7 @@ export const borrowV1 = async (
569
569
 
570
570
  const allInstructions = [
571
571
  fromTokenAccount.instruction!,
572
+ toTokenAccount.instruction!,
572
573
  partnerFeeRecipientCreateIx,
573
574
  tradingOpenBorrowInstruction!,
574
575
  openAddCollateralInstruction!,
@@ -1189,6 +1190,7 @@ export const openTradeV1 = async (
1189
1190
 
1190
1191
  const allInstructions = [
1191
1192
  fromTokenAccount.instruction!,
1193
+ toTokenAccount.instruction!,
1192
1194
  partnerFeeRecipientCreateIx,
1193
1195
  tradingOpenBorrowInstruction!,
1194
1196
  ...jupiterIxs,
@@ -1623,6 +1625,7 @@ export const openTradeV2 = async (
1623
1625
  if (splitTransactions) {
1624
1626
  const setUpInstructions = [
1625
1627
  fromTokenAccount.instruction!,
1628
+ toTokenAccount.instruction!,
1626
1629
  partnerFeeRecipientVaultCreateIx,
1627
1630
  partnerFeeRecipientTokenAccountCreateIx,
1628
1631
  ...setupInstructions.map(deserializeInstruction),
@@ -1656,6 +1659,7 @@ export const openTradeV2 = async (
1656
1659
 
1657
1660
  const allInstructions = [
1658
1661
  fromTokenAccount.instruction!,
1662
+ toTokenAccount.instruction!,
1659
1663
  partnerFeeRecipientVaultCreateIx,
1660
1664
  partnerFeeRecipientTokenAccountCreateIx,
1661
1665
  tradingOpenBorrowInstruction!,
@@ -3028,7 +3032,7 @@ export const closeTradeV2 = async (
3028
3032
  partnerFeeRecipientVaultCreateIx,
3029
3033
  partnerFeeRecipientTokenAccountCreateIx,
3030
3034
  jupInstruction.instructions && platformFeeRecipientAccount?.instruction ? platformFeeRecipientAccount.instruction : null,
3031
- //createAssociatedTokenAccountInstruction,
3035
+ createAssociatedTokenAccountInstruction,
3032
3036
  ].filter((i) => !!i);
3033
3037
 
3034
3038
  const allInstructions = [
@@ -3066,7 +3070,7 @@ export const closeTradeV2 = async (
3066
3070
  partnerFeeRecipientVaultCreateIx,
3067
3071
  partnerFeeRecipientTokenAccountCreateIx,
3068
3072
  jupInstruction.instructions && platformFeeRecipientAccount?.instruction ? platformFeeRecipientAccount.instruction : null,
3069
- //createAssociatedTokenAccountInstruction,
3073
+ createAssociatedTokenAccountInstruction,
3070
3074
  jupInstruction.instructions?.tokenLedgerInstruction
3071
3075
  ? deserializeInstruction(
3072
3076
  jupInstruction.instructions.tokenLedgerInstruction
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lavarage/sdk",
3
- "version": "7.5.15",
3
+ "version": "7.5.17",
4
4
  "description": "Lavarage SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",