Skip to content

Commit cdab048

Browse files
committed
Macro Fix Q-18 remove bool comparison
1 parent cf63651 commit cdab048

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/hardhat/contracts/Staking/FraxUnifiedFarmTemplate_V2.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ contract FraxUnifiedFarmTemplate_V2 is OwnedV2, ReentrancyGuardV2 {
572572
/// @notice A function that can be overridden to add extra logic to the getReward function
573573
/// @param destination_address The address to send the rewards to
574574
function getRewardExtraLogic(address destination_address) public nonReentrant {
575-
if(rewardsCollectionPaused == true) revert RewardsCollectionPaused();
575+
if(rewardsCollectionPaused) revert RewardsCollectionPaused();
576576

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

618618
// Make sure rewards collection isn't paused
619-
if(rewardsCollectionPaused == true) revert RewardsCollectionPaused();
619+
if(rewardsCollectionPaused) revert RewardsCollectionPaused();
620620

621621
// Update the rewards array and distribute rewards
622622
rewards_before = new uint256[](rewardTokens.length);

src/hardhat/contracts/Staking/FraxUnifiedFarm_ERC20_V2.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ contract FraxUnifiedFarm_ERC20_V2 is FraxUnifiedFarmTemplate_V2 {
682682
/// @param destination_address The address to send the withdrawn liquidity to.
683683
/// @return The amount of liquidity withdrawn.
684684
function withdrawLocked(uint256 theArrayIndex, address destination_address) nonReentrant external returns (uint256) {
685-
if (withdrawalsPaused == true) revert WithdrawalsPaused();
685+
if (withdrawalsPaused) revert WithdrawalsPaused();
686686
return _withdrawLocked(msg.sender, destination_address, theArrayIndex);
687687
}
688688

0 commit comments

Comments
 (0)