@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.
Files changed (32) hide show
  1. package/dist/classes/action.d.ts +1 -1
  2. package/dist/classes/action.d.ts.map +1 -1
  3. package/dist/classes/action.js +15 -15
  4. package/dist/classes/action.js.map +1 -1
  5. package/dist/classes/obligation.js +7 -6
  6. package/dist/classes/obligation.js.map +1 -1
  7. package/dist/classes/vault.d.ts.map +1 -1
  8. package/dist/classes/vault.js +0 -1
  9. package/dist/classes/vault.js.map +1 -1
  10. package/dist/lending_operations/repay_with_collateral_operations.d.ts.map +1 -1
  11. package/dist/lending_operations/repay_with_collateral_operations.js +36 -32
  12. package/dist/lending_operations/repay_with_collateral_operations.js.map +1 -1
  13. package/dist/lending_operations/swap_collateral_operations.d.ts.map +1 -1
  14. package/dist/lending_operations/swap_collateral_operations.js +6 -6
  15. package/dist/lending_operations/swap_collateral_operations.js.map +1 -1
  16. package/dist/leverage/operations.d.ts +4 -3
  17. package/dist/leverage/operations.d.ts.map +1 -1
  18. package/dist/leverage/operations.js +175 -149
  19. package/dist/leverage/operations.js.map +1 -1
  20. package/dist/leverage/types.d.ts +1 -0
  21. package/dist/leverage/types.d.ts.map +1 -1
  22. package/dist/manager/client_kamino_manager.js +2 -2
  23. package/dist/manager/client_kamino_manager.js.map +1 -1
  24. package/package.json +1 -1
  25. package/src/classes/action.ts +15 -15
  26. package/src/classes/obligation.ts +9 -9
  27. package/src/classes/vault.ts +0 -1
  28. package/src/lending_operations/repay_with_collateral_operations.ts +78 -74
  29. package/src/lending_operations/swap_collateral_operations.ts +15 -13
  30. package/src/leverage/operations.ts +350 -318
  31. package/src/leverage/types.ts +1 -0
  32. package/src/manager/client_kamino_manager.ts +2 -2
@@ -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 ixnIndex = 0; ixnIndex < ixs.length; ixnIndex += 6) {
1747
- const ixsToExecute = ixs.slice(ixnIndex, ixnIndex + 6);
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,