Skip to content

Commit

Permalink
fix: Use != 0 instead of > 0 (c4 #24) (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
deluca-mike authored Dec 12, 2021
1 parent d666579 commit b84aa00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/DebtLocker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ contract DebtLocker is IDebtLocker, DebtLockerStorage, MapleProxied {
}

function _isLiquidationActive() internal view returns (bool isActive_) {
return (_liquidator != address(0)) && (IERC20Like(IMapleLoanLike(_loan).collateralAsset()).balanceOf(_liquidator) > 0);
return (_liquidator != address(0)) && (IERC20Like(IMapleLoanLike(_loan).collateralAsset()).balanceOf(_liquidator) != uint256(0));
}

}

0 comments on commit b84aa00

Please sign in to comment.