@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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/evm.ts +2 -1
- package/index.ts +2 -2
- package/interfaces/evm.ts +1 -0
- package/package.json +1 -1
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",
|