diff --git a/contracts/libraries/logic/GenericLogic.sol b/contracts/libraries/logic/GenericLogic.sol index 04aab7b2..28d91927 100644 --- a/contracts/libraries/logic/GenericLogic.sol +++ b/contracts/libraries/logic/GenericLogic.sol @@ -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 );