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

Initialize can be frontrun #1

Open
brianmcmichael opened this issue Sep 30, 2024 · 0 comments
Open

Initialize can be frontrun #1

brianmcmichael opened this issue Sep 30, 2024 · 0 comments

Comments

@brianmcmichael
Copy link

function initialize(address _gauge, address _owner) external {

Initialize can be called by anyone after construction. The Factory does this atomically and should prevent frontrun, but all of this initialization can be rolled up into the constructor to allow the contract to be safely deployed independently of the factory.

If this is not changed, add documentation that it should only be deployed via the factory.

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