@lavarage/sdk 7.4.0 → 7.4.2

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.mjs CHANGED
@@ -821,7 +821,8 @@ function getPositionsEvm(provider, tokenHolderContractAddress) {
821
821
  initialMargin: loan.userPaid,
822
822
  transactionHash: "",
823
823
  // Not available from loan data
824
- timestamp: Number(loan.timestamp)
824
+ timestamp: Number(loan.timestamp),
825
+ interestRate: loan.collateral.interestRate
825
826
  });
826
827
  }
827
828
  }
@@ -5435,8 +5436,8 @@ var closeTradeV1 = (lavarageProgram, position, offer, jupInstruction, partnerFee
5435
5436
  jupiterIxs = [
5436
5437
  ...setupInstructions.map(deserializeInstruction),
5437
5438
  deserializeInstruction(swapInstructionPayload),
5438
- deserializeInstruction(cleanupInstruction)
5439
- ];
5439
+ cleanupInstruction ? deserializeInstruction(cleanupInstruction) : null
5440
+ ].filter((i) => !!i);
5440
5441
  addressLookupTableAccounts.push(
5441
5442
  ...yield getAddressLookupTableAccounts([
5442
5443
  "5LEAB3owNUSKvECm7vkr58tDtQpzbngQ2NYpc7qmRFdi",