-
Notifications
You must be signed in to change notification settings - Fork 40
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
Remove unused HooksConfigLib arguments #698
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just remove the argument and make a regular library call?
I'd just do HooksConfigLib.callComputeDynamicSwapFeeHook(swapParams, staticSwapFeePercentage, ...);
I had it like that originally, but didn't want to break the pattern of the others (since some do use the argument). Can see what it looks like that way. |
Remove unused HooksConfigLib arguments
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks better, thanks @EndymionJkb.
I don't think 'breaking the pattern' is an issue here; this looks preferable compared to having unused function arguments for the sake of using the syntax sugar for libraries.
Description
Little one to address a consequence of merging Hooks and Pool configs and remove distracting warnings. Saves a little gas, too.
Type of change
Checklist:
main
, or there's a description of how to mergeIssue Resolution