@chainflip/utils 2.2.0-alpha.5 → 2.2.0-alpha.6

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/lending.cjs CHANGED
@@ -17,7 +17,7 @@ const calculateBorrowPowerUsedBps = ({ totalBorrowAmountUsd, totalCollateralBala
17
17
  };
18
18
  const calculateTotalEffectiveBorrowableAmount = ({ totalAmount, totalAvailableAmount, utilisationCapBps }) => {
19
19
  const totalBorrowedAmount = totalAmount - totalAvailableAmount;
20
- const totalEffectiveBorrowableAmount = new bignumber_js.default(totalAmount).multipliedBy(utilisationCapBps ?? 1e4).div(1e4).toFixed();
20
+ const totalEffectiveBorrowableAmount = new bignumber_js.default(totalAmount).multipliedBy(utilisationCapBps ?? 1e4).div(1e4).toFixed(0);
21
21
  return require_number.bigintMax(BigInt(totalEffectiveBorrowableAmount) - totalBorrowedAmount, 0n);
22
22
  };
23
23
 
package/dist/lending.mjs CHANGED
@@ -14,7 +14,7 @@ const calculateBorrowPowerUsedBps = ({ totalBorrowAmountUsd, totalCollateralBala
14
14
  };
15
15
  const calculateTotalEffectiveBorrowableAmount = ({ totalAmount, totalAvailableAmount, utilisationCapBps }) => {
16
16
  const totalBorrowedAmount = totalAmount - totalAvailableAmount;
17
- const totalEffectiveBorrowableAmount = new BigNumber(totalAmount).multipliedBy(utilisationCapBps ?? 1e4).div(1e4).toFixed();
17
+ const totalEffectiveBorrowableAmount = new BigNumber(totalAmount).multipliedBy(utilisationCapBps ?? 1e4).div(1e4).toFixed(0);
18
18
  return bigintMax(BigInt(totalEffectiveBorrowableAmount) - totalBorrowedAmount, 0n);
19
19
  };
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/utils",
3
- "version": "2.2.0-alpha.5",
3
+ "version": "2.2.0-alpha.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",