Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vm06007 committed Sep 8, 2024
1 parent 4ca4fb6 commit 29de5fa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contracts/DualRewardFarm.sol
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ contract DualRewardFarm is TokenWrapper {
updateUser()
{
require(
_totalStaked > _withdrawAmount || block.timestamp > periodFinished,
_totalStaked > _withdrawAmount ||
block.timestamp > periodFinished,
"DualRewardFarm: STILL_EARNING"
);

Expand Down Expand Up @@ -301,10 +302,10 @@ contract DualRewardFarm is TokenWrapper {
withdrawAmount
);

claimReward();
claimRewards();
}

function claimReward()
function claimRewards()
public
updateFarm()
updateUser()
Expand All @@ -324,7 +325,8 @@ contract DualRewardFarm is TokenWrapper {
);

require(
rewardAmountA > 0 || rewardAmountB > 0,
rewardAmountA > 0 ||
rewardAmountB > 0,
"DualRewardFarm: NOTHING_TO_CLAIM"
);

Expand Down

0 comments on commit 29de5fa

Please sign in to comment.