@kamino-finance/klend-sdk 7.0.7 → 7.0.8
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/classes/action.d.ts +1 -1
- package/dist/classes/action.d.ts.map +1 -1
- package/dist/classes/action.js +15 -15
- package/dist/classes/action.js.map +1 -1
- package/dist/classes/obligation.js +7 -6
- package/dist/classes/obligation.js.map +1 -1
- package/dist/classes/vault.d.ts.map +1 -1
- package/dist/classes/vault.js +0 -1
- package/dist/classes/vault.js.map +1 -1
- package/dist/lending_operations/repay_with_collateral_operations.d.ts.map +1 -1
- package/dist/lending_operations/repay_with_collateral_operations.js +36 -32
- package/dist/lending_operations/repay_with_collateral_operations.js.map +1 -1
- package/dist/lending_operations/swap_collateral_operations.d.ts.map +1 -1
- package/dist/lending_operations/swap_collateral_operations.js +6 -6
- package/dist/lending_operations/swap_collateral_operations.js.map +1 -1
- package/dist/leverage/operations.d.ts +4 -3
- package/dist/leverage/operations.d.ts.map +1 -1
- package/dist/leverage/operations.js +175 -149
- package/dist/leverage/operations.js.map +1 -1
- package/dist/leverage/types.d.ts +1 -0
- package/dist/leverage/types.d.ts.map +1 -1
- package/dist/manager/client_kamino_manager.js +2 -2
- package/dist/manager/client_kamino_manager.js.map +1 -1
- package/package.json +1 -1
- package/src/classes/action.ts +15 -15
- package/src/classes/obligation.ts +9 -9
- package/src/classes/vault.ts +0 -1
- package/src/lending_operations/repay_with_collateral_operations.ts +78 -74
- package/src/lending_operations/swap_collateral_operations.ts +15 -13
- package/src/leverage/operations.ts +350 -318
- package/src/leverage/types.ts +1 -0
- package/src/manager/client_kamino_manager.ts +2 -2
package/src/leverage/types.ts
CHANGED
|
@@ -189,6 +189,7 @@ export interface AdjustLeverageSwapInputsProps<QuoteResponse> extends BaseLevera
|
|
|
189
189
|
priceCollToDebt: Decimal;
|
|
190
190
|
priceDebtToColl: Decimal;
|
|
191
191
|
priceAinB: PriceAinBProvider;
|
|
192
|
+
withdrawSlotOffset?: number;
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
export interface AdjustLeverageProps<QuoteResponse> extends AdjustLeverageSwapInputsProps<QuoteResponse> {
|
|
@@ -1743,8 +1743,8 @@ async function main() {
|
|
|
1743
1743
|
const ixs = kaminoManager.updateLendingMarketIxs(signer, marketWithAddress, newLendingMarket);
|
|
1744
1744
|
|
|
1745
1745
|
// executing 6 ixs in a txn to make sure they fit
|
|
1746
|
-
for (let
|
|
1747
|
-
const ixsToExecute = ixs.slice(
|
|
1746
|
+
for (let ixIndex = 0; ixIndex < ixs.length; ixIndex += 6) {
|
|
1747
|
+
const ixsToExecute = ixs.slice(ixIndex, ixIndex + 6);
|
|
1748
1748
|
await processTx(
|
|
1749
1749
|
env.c,
|
|
1750
1750
|
signer,
|