Skip to content

Commit

Permalink
fix: Fix duplicated code at validateHF
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Sep 24, 2021
1 parent 0d95717 commit 6a30bbb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions contracts/protocol/libraries/logic/ValidationLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,6 @@ library ValidationLogic {
oracle
);

require(
vars.healthFactor >= GenericLogic.HEALTH_FACTOR_LIQUIDATION_THRESHOLD,
Errors.VL_HEALTH_FACTOR_LOWER_THAN_LIQUIDATION_THRESHOLD
);

vars.assetLtv = reserve.configuration.getLtv();

require(vars.assetLtv == 0 || !vars.hasZeroLtvCollateral, Errors.VL_LTV_VALIDATION_FAILED);
Expand Down

0 comments on commit 6a30bbb

Please sign in to comment.