Skip to content

Commit

Permalink
fix: Simplify condition in SupplyLogic
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Dec 22, 2021
1 parent e21997a commit 6487f29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/protocol/libraries/logic/SupplyLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ library SupplyLogic {
params.fromEModeCategory
);
}
if (params.balanceFromBefore - params.amount == 0) {
if (params.balanceFromBefore == params.amount) {
fromConfig.setUsingAsCollateral(reserveId, false);
emit ReserveUsedAsCollateralDisabled(params.asset, params.from);
}
Expand Down

0 comments on commit 6487f29

Please sign in to comment.