Fixed error on variable naming

This commit is contained in:
emilio 2020-10-27 17:49:35 +01:00
parent 7aca8679df
commit 1cd7f2d5a0

View File

@ -102,10 +102,10 @@ library GenericLogic {
.collateralBalanceETH
.mul(vars.avgLiquidationThreshold)
.sub(vars.amountToDecreaseETH.mul(vars.liquidationThreshold))
.div(vars.collateralBalancefterDecrease);
.div(vars.collateralBalanceAfterDecrease);
uint256 healthFactorAfterDecrease = calculateHealthFactorFromBalances(
vars.collateralBalancefterDecrease,
vars.collateralBalanceAfterDecrease,
vars.borrowBalanceETH,
vars.liquidationThresholdAfterDecrease
);