@jup-ag/lend 0.0.87 → 0.0.89
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/borrow/index.mjs +1 -1
- package/dist/flashloan/index.mjs +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/borrow/index.mjs
CHANGED
|
@@ -1193,7 +1193,7 @@ async function loadRelevantTicksHasDebtArrays(vaultId, topTick, program) {
|
|
|
1193
1193
|
Array.from(
|
|
1194
1194
|
{ length: topTickIndex },
|
|
1195
1195
|
(_, i) => program.account.tickHasDebtArray.fetch(
|
|
1196
|
-
getTickHasDebt(vaultId,
|
|
1196
|
+
getTickHasDebt(vaultId, topTickIndex - i)
|
|
1197
1197
|
)
|
|
1198
1198
|
)
|
|
1199
1199
|
);
|
package/dist/flashloan/index.mjs
CHANGED
|
@@ -70,10 +70,10 @@ async function getFlashloanIx(params) {
|
|
|
70
70
|
connection,
|
|
71
71
|
publicKey: signer
|
|
72
72
|
});
|
|
73
|
-
const flashloanAdmin = await
|
|
74
|
-
getFlashloanAdmin()
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
const [flashloanAdmin, borrowIx] = await Promise.all([
|
|
74
|
+
program.account.flashloanAdmin.fetch(getFlashloanAdmin()),
|
|
75
|
+
getFlashBorrowIx(params)
|
|
76
|
+
]);
|
|
77
77
|
const paybackAmount = params.amount.mul(
|
|
78
78
|
new BN(1e4 + flashloanAdmin.flashloanFee).div(new BN(1e4))
|
|
79
79
|
);
|
package/dist/index.mjs
CHANGED