Skip to content

Commit

Permalink
refactor: check is done after the body of the fuction
Browse files Browse the repository at this point in the history
  • Loading branch information
TravellerOnTheRun committed Nov 7, 2024
1 parent 105cfd9 commit 30a19ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/StRIFToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ contract StRIFToken is

//checks CollectiveRewards for stake
modifier _checkCollectiveRewardsForStake(address staker, uint256 value) {
_;
if (collectiveRewardsCheck != address(0)) {
try ICollectiveRewardsCheck(collectiveRewardsCheck).canWithdraw(staker, value) returns (
bool canWithdraw
Expand All @@ -128,7 +129,6 @@ contract StRIFToken is
}
}
}
_;
}

// checks that received address has method which can successfully be called
Expand Down

0 comments on commit 30a19ac

Please sign in to comment.