strategy-v2 icon indicating copy to clipboard operation
strategy-v2 copied to clipboard

`setRewardsToken` must revert on known tokens

Open alcueca opened this issue 3 years ago • 0 comments

If setRewardsToken is called with the base, pool or fyToken known to the Strategy, it must revert. Otherwise the tokens kept as rewards will be absorbed at one point or another.

Likewise, if during invest the pool or fyToken match the rewards token, invest must revert. Same reason.

alcueca avatar Jan 06 '23 15:01 alcueca