@haven-fi/solauto-sdk 1.0.297 → 1.0.298

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@ function marginfiMaxLtvAndLiqThresholdBps(supplyBank, debtBank, supplyPrice) {
38
38
  totalDepositedUsdValue > supplyBank.config.totalAssetValueInitLimit) {
39
39
  const discount = Number(supplyBank.config.totalAssetValueInitLimit) /
40
40
  totalDepositedUsdValue;
41
- maxLtv = Math.round(maxLtv * Number(discount));
41
+ maxLtv = maxLtv * Number(discount);
42
42
  }
43
43
  return [maxLtv, liqThreshold];
44
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haven-fi/solauto-sdk",
3
- "version": "1.0.297",
3
+ "version": "1.0.298",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "description": "Typescript SDK for the Solauto program on the Solana blockchain",
@@ -78,7 +78,7 @@ export function marginfiMaxLtvAndLiqThresholdBps(
78
78
  const discount =
79
79
  Number(supplyBank.config.totalAssetValueInitLimit) /
80
80
  totalDepositedUsdValue;
81
- maxLtv = Math.round(maxLtv * Number(discount));
81
+ maxLtv = maxLtv * Number(discount);
82
82
  }
83
83
 
84
84
  return [maxLtv, liqThreshold];