Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setRewardsToken must revert on known tokens #40

Open
alcueca opened this issue Jan 6, 2023 · 0 comments
Open

setRewardsToken must revert on known tokens #40

alcueca opened this issue Jan 6, 2023 · 0 comments

Comments

@alcueca
Copy link
Contributor

alcueca commented Jan 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant