@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 =
|
41
|
+
maxLtv = maxLtv * Number(discount);
|
42
42
|
}
|
43
43
|
return [maxLtv, liqThreshold];
|
44
44
|
}
|
package/package.json
CHANGED
@@ -78,7 +78,7 @@ export function marginfiMaxLtvAndLiqThresholdBps(
|
|
78
78
|
const discount =
|
79
79
|
Number(supplyBank.config.totalAssetValueInitLimit) /
|
80
80
|
totalDepositedUsdValue;
|
81
|
-
maxLtv =
|
81
|
+
maxLtv = maxLtv * Number(discount);
|
82
82
|
}
|
83
83
|
|
84
84
|
return [maxLtv, liqThreshold];
|