Skip to content

Commit

Permalink
revert liquidation rounding changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dglowinski committed May 19, 2024
1 parent af7a883 commit 725792a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EVault/modules/Liquidation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 725792a

Please sign in to comment.