From 33326b3950eae42ee3e27191702479c0fb741eb6 Mon Sep 17 00:00:00 2001 From: Nico Vergauwen Date: Tue, 31 May 2022 18:19:35 +0200 Subject: [PATCH] remove else condition ,flip statement --- contracts/Resolver.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contracts/Resolver.sol b/contracts/Resolver.sol index 68c67f3..52f4404 100644 --- a/contracts/Resolver.sol +++ b/contracts/Resolver.sol @@ -40,9 +40,7 @@ abstract contract Resolver is IResolver, OwnableUpgradeable { uint256 tenderizerSteakBal = protocol.steak.balanceOf(_tenderizer); - if (tenderizerSteakBal < protocol.depositThreshold) { - canExec = false; - } else { + if (tenderizerSteakBal >= protocol.depositThreshold) { canExec = true; execPayload = abi.encode(tenderizerSteakBal); }