From a8629747094d4dc300a0b449a8ecb63fdb5c13da Mon Sep 17 00:00:00 2001 From: Michael De Luca Date: Sun, 12 Dec 2021 05:31:06 -0500 Subject: [PATCH] fix: Use `!= 0` instead of `> 0` (c4 #24) --- contracts/DebtLocker.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/DebtLocker.sol b/contracts/DebtLocker.sol index 90706bc..ea864d6 100644 --- a/contracts/DebtLocker.sol +++ b/contracts/DebtLocker.sol @@ -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)); } }