@lavarage/sdk 7.5.9 → 7.5.11
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/.github/workflows/npm-publish.yml +33 -0
- package/dist/index.d.mts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/docs/functions/borrowV1.html +1 -1
- package/docs/functions/borrowV2.html +1 -1
- package/docs/functions/closePositionEvm.html +2 -2
- package/docs/functions/closeTradeV1.html +7 -3
- package/docs/functions/closeTradeV2.html +7 -3
- package/docs/functions/createTpDelegate.html +2 -2
- package/docs/functions/getActiveLoanCountEvm.html +2 -2
- package/docs/functions/getActiveLoansBatchEvm.html +2 -2
- package/docs/functions/getAllPositions.html +2 -2
- package/docs/functions/getAvailableExposureEvm.html +2 -2
- package/docs/functions/getClosedPositions.html +2 -2
- package/docs/functions/getClosedPositionsEvm.html +2 -2
- package/docs/functions/getCollateralExposureEvm.html +2 -2
- package/docs/functions/getCollateralInfoEvm.html +2 -2
- package/docs/functions/getDelegateAccounts.html +2 -2
- package/docs/functions/getLiquidatedPositions.html +2 -2
- package/docs/functions/getLiquidatedPositionsEvm.html +2 -2
- package/docs/functions/getLoanEvm.html +2 -2
- package/docs/functions/getLoansByBorrowerEvm.html +2 -2
- package/docs/functions/getOffers.html +2 -2
- package/docs/functions/getOffersEvm.html +2 -2
- package/docs/functions/getOpenPositions.html +2 -2
- package/docs/functions/getOpeningFeeEvm.html +2 -2
- package/docs/functions/getPda.html +2 -2
- package/docs/functions/getPositionAccountPDA.html +2 -2
- package/docs/functions/getPositionsEvm.html +2 -2
- package/docs/functions/getProfitFeeEvm.html +2 -2
- package/docs/functions/getTokenBalanceEvm.html +2 -2
- package/docs/functions/getUserLoansEvm.html +2 -2
- package/docs/functions/lending.addToWithdrawalAccessList.html +1 -1
- package/docs/functions/lending.createOffer.html +2 -2
- package/docs/functions/lending.depositFunds.html +2 -2
- package/docs/functions/lending.getNodeWalletPDA.html +2 -2
- package/docs/functions/lending.getTradingPoolPDA.html +2 -2
- package/docs/functions/lending.getWithdrawalAccessList.html +1 -1
- package/docs/functions/lending.getWithdrawalAccessListPDA.html +1 -1
- package/docs/functions/lending.removeFromWithdrawalAccessList.html +1 -1
- package/docs/functions/lending.updateInterestRate.html +2 -2
- package/docs/functions/lending.updateMaxBorrow.html +2 -2
- package/docs/functions/lending.updateMaxExposure.html +2 -2
- package/docs/functions/lending.updateOffer.html +2 -2
- package/docs/functions/lending.withdrawFunds.html +2 -2
- package/docs/functions/lending.withdrawFundsV1.html +2 -2
- package/docs/functions/lending.withdrawFundsV2.html +2 -2
- package/docs/functions/liquidatePositionEvm.html +2 -2
- package/docs/functions/mergePositionV2.html +2 -2
- package/docs/functions/modifyTpDelegate.html +2 -2
- package/docs/functions/openPositionEvm.html +2 -2
- package/docs/functions/openTradeV1.html +8 -3
- package/docs/functions/openTradeV2.html +8 -3
- package/docs/functions/partialRepayV1.html +2 -2
- package/docs/functions/partialRepayV2.html +2 -2
- package/docs/functions/removeTpDelegate.html +2 -2
- package/docs/functions/splitPositionV2.html +2 -2
- package/docs/functions/updateMaxLendPerTokenBatchEvm.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/modules/IDLV2.html +2 -2
- package/docs/modules/lending.html +1 -1
- package/docs/modules.html +2 -2
- package/docs/types/IDLV2.Lavarage.html +2 -2
- package/docs/types/Lavarage.html +2 -2
- package/docs/variables/IDL.html +1 -1
- package/docs/variables/IDLV2.IDL.html +1 -1
- package/index.ts +27 -7
- package/lending.ts +4 -4
- package/package.json +1 -1
- package/.DS_Store +0 -0
package/docs/variables/IDL.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDL | Lavarage SDK Documentation - v7.5.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDL | Lavarage SDK Documentation - v7.5.9</title><meta name="description" content="Documentation for Lavarage SDK Documentation"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lavarage SDK Documentation - v7.5.9</a><div id="tsd-toolbar-links"><a href="https://www.npmjs.com/package/@lavarage/sdk">NPM</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">IDL</a></li></ul><h1>Variable IDL<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">IDL</span><span class="tsd-signature-symbol">:</span> <a href="../types/Lavarage.html" class="tsd-signature-type tsd-kind-type-alias">Lavarage</a><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pinedefi/lavarage-sdk/blob/b2e66083b3ffd1c5b3fd8d8c6ce37856566b763b/idl/lavarage.ts#L1658">idl/lavarage.ts:1658</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://www.npmjs.com/package/@lavarage/sdk" class="tsd-nav-link">NPM</a></nav><nav class="tsd-navigation"><a href="../modules.html">Lavarage SDK Documentation - v7.5.9</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDL | Lavarage SDK Documentation - v7.5.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IDL | Lavarage SDK Documentation - v7.5.9</title><meta name="description" content="Documentation for Lavarage SDK Documentation"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Lavarage SDK Documentation - v7.5.9</a><div id="tsd-toolbar-links"><a href="https://www.npmjs.com/package/@lavarage/sdk">NPM</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/IDLV2.html">IDLV2</a></li><li><a href="" aria-current="page">IDL</a></li></ul><h1>Variable IDL<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">IDL</span><span class="tsd-signature-symbol">:</span> <a href="../modules/IDLV2.html" class="tsd-signature-type tsd-kind-namespace">IDLV2</a><span class="tsd-signature-symbol">.</span><a href="../types/IDLV2.Lavarage.html" class="tsd-signature-type tsd-kind-type-alias">Lavarage</a><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/pinedefi/lavarage-sdk/blob/b2e66083b3ffd1c5b3fd8d8c6ce37856566b763b/idl/lavaragev2.ts#L1771">idl/lavaragev2.ts:1771</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://www.npmjs.com/package/@lavarage/sdk" class="tsd-nav-link">NPM</a></nav><nav class="tsd-navigation"><a href="../modules.html">Lavarage SDK Documentation - v7.5.9</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
package/index.ts
CHANGED
|
@@ -864,6 +864,11 @@ export const borrowV2 = async (
|
|
|
864
864
|
* @param partnerFeeRecipient - Optional wallet to receive partner fees
|
|
865
865
|
* @param partnerFeeMarkup - Optional partner fee amount in basis points
|
|
866
866
|
* @param computeBudgetMicroLamports - Optional compute budget for priority fees
|
|
867
|
+
* @param platformFeeRecipient - Optional wallet to receive platform fees (jup, okx)
|
|
868
|
+
* @param splitTransactions - Optional boolean to split the transaction into multiple transactions (jito bundle)
|
|
869
|
+
* @param discountBps - Optional discount basis points for the referral program
|
|
870
|
+
* @param referralBps - Optional referral basis points for the referral program
|
|
871
|
+
* @param optionalRPCResults - Optional RPC results to use for the transaction (speeds up the transaction building)
|
|
867
872
|
*
|
|
868
873
|
* @returns A versioned transaction ready to be signed and sent
|
|
869
874
|
*
|
|
@@ -1223,6 +1228,11 @@ export const openTradeV1 = async (
|
|
|
1223
1228
|
* @param partnerFeeRecipient - Optional wallet to receive partner fees
|
|
1224
1229
|
* @param partnerFeeMarkup - Optional partner fee amount in basis points
|
|
1225
1230
|
* @param computeBudgetMicroLamports - Optional compute budget for priority fees
|
|
1231
|
+
* @param platformFeeRecipient - Optional wallet to receive platform fees (jup, okx)
|
|
1232
|
+
* @param splitTransactions - Optional boolean to split the transaction into multiple transactions (jito bundle)
|
|
1233
|
+
* @param discountBps - Optional discount basis points for the referral program
|
|
1234
|
+
* @param referralBps - Optional referral basis points for the referral program
|
|
1235
|
+
* @param optionalRPCResults - Optional RPC results to use for the transaction (speeds up the transaction building)
|
|
1226
1236
|
*
|
|
1227
1237
|
* @returns A versioned transaction ready to be signed and sent
|
|
1228
1238
|
*
|
|
@@ -1454,6 +1464,13 @@ export const openTradeV2 = async (
|
|
|
1454
1464
|
}
|
|
1455
1465
|
}
|
|
1456
1466
|
|
|
1467
|
+
const partnerDirectAta = partnerFeeRecipient ? getAssociatedTokenAddressSync(
|
|
1468
|
+
quoteToken,
|
|
1469
|
+
partnerFeeRecipient,
|
|
1470
|
+
true,
|
|
1471
|
+
quoteTokenProgram
|
|
1472
|
+
) : undefined;
|
|
1473
|
+
|
|
1457
1474
|
const tradingOpenBorrowInstruction = useReferral
|
|
1458
1475
|
? await lavarageProgram.methods
|
|
1459
1476
|
.tradingOpenBorrowWithReferral(
|
|
@@ -1543,15 +1560,10 @@ export const openTradeV2 = async (
|
|
|
1543
1560
|
),
|
|
1544
1561
|
})
|
|
1545
1562
|
.remainingAccounts(
|
|
1546
|
-
partnerFeeRecipient && partnerFeeMarkupAsPkey &&
|
|
1563
|
+
partnerFeeRecipient && partnerFeeMarkupAsPkey && partnerDirectAta
|
|
1547
1564
|
? [
|
|
1548
1565
|
{
|
|
1549
|
-
pubkey:
|
|
1550
|
-
quoteToken,
|
|
1551
|
-
userVaultPda,
|
|
1552
|
-
true, // allowOwnerOffCurve for PDA
|
|
1553
|
-
quoteTokenProgram
|
|
1554
|
-
),
|
|
1566
|
+
pubkey: partnerDirectAta,
|
|
1555
1567
|
isSigner: false,
|
|
1556
1568
|
isWritable: true,
|
|
1557
1569
|
},
|
|
@@ -2079,6 +2091,10 @@ export const partialRepayV2 = async (
|
|
|
2079
2091
|
* @param partnerFeeRecipient - Optional wallet to receive partner fees
|
|
2080
2092
|
* @param partnerFeeMarkup - Optional partner fee amount in basis points
|
|
2081
2093
|
* @param computeBudgetMicroLamports - Optional compute budget for priority fees
|
|
2094
|
+
* @param platformFeeRecipient - Optional wallet to receive platform fees (jup, okx)
|
|
2095
|
+
* @param splitTransactions - Optional boolean to split the transaction into multiple transactions (jito bundle)
|
|
2096
|
+
* @param discountBps - Optional discount basis points for the referral program
|
|
2097
|
+
* @param referralBps - Optional referral basis points for the referral program
|
|
2082
2098
|
*
|
|
2083
2099
|
* @returns Transaction to close the position
|
|
2084
2100
|
*
|
|
@@ -2504,6 +2520,10 @@ export const closeTradeV1 = async (
|
|
|
2504
2520
|
* @param partnerFeeRecipient - Optional wallet to receive partner fees
|
|
2505
2521
|
* @param partnerFeeMarkup - Optional partner fee amount in basis points
|
|
2506
2522
|
* @param computeBudgetMicroLamports - Optional compute budget for priority fees
|
|
2523
|
+
* @param platformFeeRecipient - Optional wallet to receive platform fees (jup, okx)
|
|
2524
|
+
* @param splitTransactions - Optional boolean to split the transaction into multiple transactions (jito bundle)
|
|
2525
|
+
* @param discountBps - Optional discount basis points for the referral program
|
|
2526
|
+
* @param referralBps - Optional referral basis points for the referral program
|
|
2507
2527
|
*
|
|
2508
2528
|
* @returns Transaction to close the position
|
|
2509
2529
|
*
|
package/lending.ts
CHANGED
|
@@ -130,7 +130,7 @@ async function createNodeWallet(
|
|
|
130
130
|
);
|
|
131
131
|
// V2 version
|
|
132
132
|
instructions.push(await (lavarageProgram as Program<LavarageV2>).methods
|
|
133
|
-
.lpOperatorCreateNodeWallet(
|
|
133
|
+
.lpOperatorCreateNodeWallet(params.liquidationLtv)
|
|
134
134
|
.accounts({
|
|
135
135
|
nodeWallet: nodeWallet,
|
|
136
136
|
operator: new PublicKey(params.operator),
|
|
@@ -615,7 +615,7 @@ export async function createOffer(
|
|
|
615
615
|
|
|
616
616
|
// Both V1 and V2 lpOperatorCreateTradingPool require mint parameter
|
|
617
617
|
const instruction = await lavarageProgram.methods
|
|
618
|
-
.lpOperatorCreateTradingPool(
|
|
618
|
+
.lpOperatorCreateTradingPool(params.interestRate)
|
|
619
619
|
.accounts({
|
|
620
620
|
tradingPool: params.tradingPool,
|
|
621
621
|
operator: params.poolOwner,
|
|
@@ -776,7 +776,7 @@ export async function updateInterestRate(
|
|
|
776
776
|
await lavarageProgram.provider.connection.getLatestBlockhash("finalized");
|
|
777
777
|
|
|
778
778
|
const instruction = await lavarageProgram.methods
|
|
779
|
-
.lpOperatorUpdateInterestRate(
|
|
779
|
+
.lpOperatorUpdateInterestRate(params.interestRate)
|
|
780
780
|
.accounts({
|
|
781
781
|
tradingPool: params.tradingPool,
|
|
782
782
|
nodeWallet: new PublicKey(params.nodeWallet),
|
|
@@ -880,7 +880,7 @@ export async function updateOffer(
|
|
|
880
880
|
|
|
881
881
|
// Update interest rate instruction
|
|
882
882
|
const updateInterestRateInstruction = await lavarageProgram.methods
|
|
883
|
-
.lpOperatorUpdateInterestRate(
|
|
883
|
+
.lpOperatorUpdateInterestRate(params.interestRate)
|
|
884
884
|
.accounts({
|
|
885
885
|
tradingPool: params.tradingPool,
|
|
886
886
|
nodeWallet: new PublicKey(params.nodeWallet),
|
package/package.json
CHANGED
package/.DS_Store
DELETED
|
Binary file
|