Skip to content

Commit

Permalink
Revert claimRewards() if rewardsToken doesn't exist (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenshively committed Dec 9, 2023
1 parent 3313d25 commit 8a379c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/Factory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ contract Factory {
}
}

require(address(rewardsToken).code.length > 0);
rewardsToken.safeTransfer(beneficiary, earned);
}

Expand Down

0 comments on commit 8a379c4

Please sign in to comment.