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

Change the STAKE_TOKEN to be a simple IERC20 in GovernanceStaker instead of IERC20Delegates #47

Closed
Tracked by #31
alexkeating opened this issue Oct 11, 2024 · 4 comments · Fixed by #78
Closed
Tracked by #31
Assignees
Labels
pre-audit Needed before the audit deadline todo Issues that need to be tackled pre-audit

Comments

@alexkeating
Copy link
Collaborator

No description provided.

@alexkeating alexkeating added todo Issues that need to be tackled pre-audit pre-audit Needed before the audit deadline labels Oct 11, 2024
@alexkeating alexkeating self-assigned this Oct 11, 2024
@alexkeating
Copy link
Collaborator Author

@apbendi Some things I am noticing after starting the implementation the permit functionality relies on this so should I spin that out into an extension? And the delegation surrogate relies on this so should I spin that functionality to another extension like GovernanceStakingVotes?

@apbendi
Copy link
Collaborator

apbendi commented Oct 14, 2024

Hey @alexkeating, yes that is captured in #31 in the bullet point that says:

Move the permitAndStake and permitAndStakeMore methods into an (optional) extension (not all governance tokens will have permit methods)

So we definitely need to do this, but it needs to be sequenced/stacked appropriately in line with the generalization work.

@alexkeating
Copy link
Collaborator Author

Cool, going to drop then as I didn't realize the todos in the issue were so dependent.

@apbendi
Copy link
Collaborator

apbendi commented Nov 5, 2024

Adding this comment as a reminder to tackle what's handled in this comment here.

Since we're going to change STAKE_TOKEN to a normal IERC20 in the base staker contract, we'll have to cast it to an IERC20Permit which we import from OZ here. Part of me wonders if we should do more than that to ensure that the STAKE_TOKEN provided at construction is an IERC20Permit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pre-audit Needed before the audit deadline todo Issues that need to be tackled pre-audit
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants