strategy-v2
strategy-v2 copied to clipboard
`setRewardsToken` must revert on known tokens
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.