Skip to content

Commit

Permalink
chore: forbid CRV as reward
Browse files Browse the repository at this point in the history
  • Loading branch information
romanagureev committed Aug 28, 2024
1 parent 1ad7bdd commit 98243f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/implementations/ChildGauge.vy
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ def add_reward(_reward_token: ERC20, _distributor: address, _precision: uint256=
@return ID of added reward
"""
assert msg.sender == self.manager or msg.sender == FACTORY.owner()
assert _reward_token != FACTORY.crv()

precision: uint256 = _precision
if precision == 0:
Expand Down

0 comments on commit 98243f9

Please sign in to comment.