@kamino-finance/klend-sdk 5.13.0 → 5.13.1

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 (34) hide show
  1. package/dist/classes/action.d.ts +44 -20
  2. package/dist/classes/action.d.ts.map +1 -1
  3. package/dist/classes/action.js +55 -34
  4. package/dist/classes/action.js.map +1 -1
  5. package/dist/classes/fraction.d.ts +2 -0
  6. package/dist/classes/fraction.d.ts.map +1 -1
  7. package/dist/classes/fraction.js +6 -0
  8. package/dist/classes/fraction.js.map +1 -1
  9. package/dist/classes/obligation.d.ts.map +1 -1
  10. package/dist/classes/obligation.js +1 -6
  11. package/dist/classes/obligation.js.map +1 -1
  12. package/dist/classes/reserve.d.ts.map +1 -1
  13. package/dist/classes/reserve.js +1 -4
  14. package/dist/classes/reserve.js.map +1 -1
  15. package/dist/classes/vault.d.ts.map +1 -1
  16. package/dist/classes/vault.js +3 -0
  17. package/dist/classes/vault.js.map +1 -1
  18. package/dist/lending_operations/repay_with_collateral_operations.d.ts.map +1 -1
  19. package/dist/lending_operations/repay_with_collateral_operations.js +2 -2
  20. package/dist/lending_operations/repay_with_collateral_operations.js.map +1 -1
  21. package/dist/lending_operations/swap_collateral_operations.js +2 -4
  22. package/dist/lending_operations/swap_collateral_operations.js.map +1 -1
  23. package/dist/leverage/operations.d.ts.map +1 -1
  24. package/dist/leverage/operations.js +7 -14
  25. package/dist/leverage/operations.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/classes/action.ts +55 -48
  28. package/src/classes/fraction.ts +7 -0
  29. package/src/classes/obligation.ts +2 -7
  30. package/src/classes/reserve.ts +2 -5
  31. package/src/classes/vault.ts +3 -0
  32. package/src/lending_operations/repay_with_collateral_operations.ts +0 -2
  33. package/src/lending_operations/swap_collateral_operations.ts +2 -4
  34. package/src/leverage/operations.ts +7 -13
@@ -552,8 +552,7 @@ async function buildDepositWithLeverageIxns(
552
552
  0,
553
553
  false,
554
554
  elevationGroupOverride === 0 ? false : true, // emode
555
- false, // to be checked and created in a setup tx in the UI
556
- false, // to be checked and created in a setup tx in the UI
555
+ { skipInitialization: true, skipLutCreation: true }, // to be checked and created in a setup tx in the UI
557
556
  referrer,
558
557
  currentSlot
559
558
  );
@@ -986,9 +985,8 @@ export async function buildWithdrawWithLeverageIxns(
986
985
  undefined,
987
986
  0,
988
987
  false,
989
- false, // to be checked and created in a setup tx in the UI (won't be the case for withdraw anyway as this would be created in deposit)
990
- false, // to be checked and created in a setup tx in the UI (won't be the case for withdraw anyway as this would be created in deposit)
991
- isClosingPosition,
988
+ false,
989
+ { skipInitialization: true, skipLutCreation: true }, // to be checked and created in a setup tx in the UI (won't be the case for withdraw anyway as this would be created in deposit)
992
990
  referrer
993
991
  );
994
992
 
@@ -1547,8 +1545,7 @@ async function buildIncreaseLeverageIxns(
1547
1545
  0,
1548
1546
  false,
1549
1547
  false,
1550
- false, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1551
- false, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1548
+ { skipInitialization: true, skipLutCreation: true },
1552
1549
  referrer,
1553
1550
  currentSlot
1554
1551
  );
@@ -1565,8 +1562,7 @@ async function buildIncreaseLeverageIxns(
1565
1562
  0,
1566
1563
  false,
1567
1564
  false,
1568
- false, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1569
- false, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1565
+ { skipInitialization: true, skipLutCreation: true }, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1570
1566
  referrer,
1571
1567
  currentSlot
1572
1568
  );
@@ -1739,8 +1735,7 @@ async function buildDecreaseLeverageIxns(
1739
1735
  0,
1740
1736
  false,
1741
1737
  false,
1742
- false, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1743
- false, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1738
+ { skipInitialization: true, skipLutCreation: true }, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1744
1739
  referrer
1745
1740
  );
1746
1741
 
@@ -1756,8 +1751,7 @@ async function buildDecreaseLeverageIxns(
1756
1751
  0,
1757
1752
  false,
1758
1753
  false,
1759
- false, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1760
- false, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1754
+ { skipInitialization: true, skipLutCreation: true }, // to be checked and create in a setup tx in the UI (won't be the case for adjust anyway as this would be created in deposit)
1761
1755
  referrer,
1762
1756
  currentSlot
1763
1757
  );