@lavarage/sdk 7.5.15 → 7.5.16

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
@@ -1623,6 +1623,7 @@ export const openTradeV2 = async (
1623
1623
  if (splitTransactions) {
1624
1624
  const setUpInstructions = [
1625
1625
  fromTokenAccount.instruction!,
1626
+ toTokenAccount.instruction!,
1626
1627
  partnerFeeRecipientVaultCreateIx,
1627
1628
  partnerFeeRecipientTokenAccountCreateIx,
1628
1629
  ...setupInstructions.map(deserializeInstruction),
@@ -1656,6 +1657,7 @@ export const openTradeV2 = async (
1656
1657
 
1657
1658
  const allInstructions = [
1658
1659
  fromTokenAccount.instruction!,
1660
+ toTokenAccount.instruction!,
1659
1661
  partnerFeeRecipientVaultCreateIx,
1660
1662
  partnerFeeRecipientTokenAccountCreateIx,
1661
1663
  tradingOpenBorrowInstruction!,
@@ -3028,7 +3030,7 @@ export const closeTradeV2 = async (
3028
3030
  partnerFeeRecipientVaultCreateIx,
3029
3031
  partnerFeeRecipientTokenAccountCreateIx,
3030
3032
  jupInstruction.instructions && platformFeeRecipientAccount?.instruction ? platformFeeRecipientAccount.instruction : null,
3031
- //createAssociatedTokenAccountInstruction,
3033
+ createAssociatedTokenAccountInstruction,
3032
3034
  ].filter((i) => !!i);
3033
3035
 
3034
3036
  const allInstructions = [
@@ -3066,7 +3068,7 @@ export const closeTradeV2 = async (
3066
3068
  partnerFeeRecipientVaultCreateIx,
3067
3069
  partnerFeeRecipientTokenAccountCreateIx,
3068
3070
  jupInstruction.instructions && platformFeeRecipientAccount?.instruction ? platformFeeRecipientAccount.instruction : null,
3069
- //createAssociatedTokenAccountInstruction,
3071
+ createAssociatedTokenAccountInstruction,
3070
3072
  jupInstruction.instructions?.tokenLedgerInstruction
3071
3073
  ? deserializeInstruction(
3072
3074
  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.16",
4
4
  "description": "Lavarage SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",