From b84aa00472a6399afcad8bb5b6feb1668b9f3246 Mon Sep 17 00:00:00 2001 From: Michael De Luca <35537333+deluca-mike@users.noreply.github.com> Date: Sun, 12 Dec 2021 18:37:47 -0500 Subject: [PATCH] fix: Use `!= 0` instead of `> 0` (c4 #24) (#46) --- 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)); } }