From 725792a478d02474c2f63c72047d6967cd995094 Mon Sep 17 00:00:00 2001 From: dglowinski Date: Sun, 19 May 2024 16:46:17 +0200 Subject: [PATCH] revert liquidation rounding changes --- src/EVault/modules/Liquidation.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EVault/modules/Liquidation.sol b/src/EVault/modules/Liquidation.sol index b9c4b2f3..5c4fb602 100644 --- a/src/EVault/modules/Liquidation.sol +++ b/src/EVault/modules/Liquidation.sol @@ -158,7 +158,7 @@ abstract contract LiquidationModule is ILiquidation, Base, BalanceUtils, Liquidi // This can happen when borrower has multiple collaterals and seizing all of this one won't bring the violator back to solvency if (collateralValue < maxYieldValue) { - maxRepayValue = (collateralValue * discountFactor + 1e18 - 1) / 1e18; // round up for consistency + maxRepayValue = collateralValue * discountFactor / 1e18; maxYieldValue = collateralValue; }