Skip to content

Commit

Permalink
remove else condition ,flip statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriediculous committed May 31, 2022
1 parent 9e089c3 commit 33326b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions contracts/Resolver.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 33326b3

Please sign in to comment.