Skip to content

Commit

Permalink
Macro Fix Q-18 remove bool comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ZrowGz committed Mar 8, 2023
1 parent cf63651 commit cdab048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/hardhat/contracts/Staking/FraxUnifiedFarmTemplate_V2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ contract FraxUnifiedFarmTemplate_V2 is OwnedV2, ReentrancyGuardV2 {
/// @notice A function that can be overridden to add extra logic to the getReward function
/// @param destination_address The address to send the rewards to
function getRewardExtraLogic(address destination_address) public nonReentrant {
if(rewardsCollectionPaused == true) revert RewardsCollectionPaused();
if(rewardsCollectionPaused) revert RewardsCollectionPaused();

return _getRewardExtraLogic(msg.sender, destination_address);
}
Expand Down Expand Up @@ -616,7 +616,7 @@ contract FraxUnifiedFarmTemplate_V2 is OwnedV2, ReentrancyGuardV2 {
lastRewardClaimTime[rewardee] = block.timestamp;

// Make sure rewards collection isn't paused
if(rewardsCollectionPaused == true) revert RewardsCollectionPaused();
if(rewardsCollectionPaused) revert RewardsCollectionPaused();

// Update the rewards array and distribute rewards
rewards_before = new uint256[](rewardTokens.length);
Expand Down
2 changes: 1 addition & 1 deletion src/hardhat/contracts/Staking/FraxUnifiedFarm_ERC20_V2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ contract FraxUnifiedFarm_ERC20_V2 is FraxUnifiedFarmTemplate_V2 {
/// @param destination_address The address to send the withdrawn liquidity to.
/// @return The amount of liquidity withdrawn.
function withdrawLocked(uint256 theArrayIndex, address destination_address) nonReentrant external returns (uint256) {
if (withdrawalsPaused == true) revert WithdrawalsPaused();
if (withdrawalsPaused) revert WithdrawalsPaused();
return _withdrawLocked(msg.sender, destination_address, theArrayIndex);
}

Expand Down

0 comments on commit cdab048

Please sign in to comment.