@lavarage/sdk 7.4.2 → 7.4.4

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
@@ -5100,7 +5100,7 @@ var openTradeV2 = (lavarageProgram, offer, jupInstruction, marginSOL, leverage,
5100
5100
  }
5101
5101
  ] : []
5102
5102
  ).instruction();
5103
- const openAddCollateralInstruction = yield lavarageProgram.methods.tradingOpenAddCollateral(offer.account.interestRate).accountsStrict({
5103
+ const openAddCollateralInstruction = yield lavarageProgram.methods.tradingOpenAddCollateral(offer.account.interestRate < 255 ? offer.account.interestRate + 1 : 255).accountsStrict({
5104
5104
  tradingPool: offer.publicKey,
5105
5105
  trader: lavarageProgram.provider.publicKey,
5106
5106
  mint: offer.account.collateralType,
@@ -5468,7 +5468,7 @@ var closeTradeV1 = (lavarageProgram, position, offer, jupInstruction, partnerFee
5468
5468
  jupiterIxs = [
5469
5469
  ...setupInstructions.map(deserializeInstruction),
5470
5470
  deserializeInstruction(swapInstructionPayload),
5471
- cleanupInstruction ? deserializeInstruction(cleanupInstruction) : null
5471
+ deserializeInstruction(cleanupInstruction)
5472
5472
  ].filter((i) => !!i);
5473
5473
  addressLookupTableAccounts.push(
5474
5474
  ...yield getAddressLookupTableAccounts([