@gearbox-protocol/sdk 8.2.0-next.2 → 8.2.0-next.3

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.
@@ -753,7 +753,7 @@ class CreditAccountsService extends import_base.SDKConstruct {
753
753
  */
754
754
  getOptimalHFForPartialLiquidation(ca) {
755
755
  const borrowRate = this.getBorrowRate(ca);
756
- return borrowRate < 100n ? borrowRate : 100n;
756
+ return import_constants.PERCENTAGE_FACTOR + (borrowRate < 100n ? borrowRate : 100n);
757
757
  }
758
758
  /**
759
759
  * Internal wrapper for CreditAccountCompressor.getCreditAccounts + price updates wrapped into multicall
@@ -757,7 +757,7 @@ class CreditAccountsService extends SDKConstruct {
757
757
  */
758
758
  getOptimalHFForPartialLiquidation(ca) {
759
759
  const borrowRate = this.getBorrowRate(ca);
760
- return borrowRate < 100n ? borrowRate : 100n;
760
+ return PERCENTAGE_FACTOR + (borrowRate < 100n ? borrowRate : 100n);
761
761
  }
762
762
  /**
763
763
  * Internal wrapper for CreditAccountCompressor.getCreditAccounts + price updates wrapped into multicall
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.2.0-next.2",
3
+ "version": "8.2.0-next.3",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",