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

[Bug]: access modifier should be internal for _rebalance in the FullRange example (security related) #79

Closed
ferencdg opened this issue Nov 23, 2023 · 3 comments · May be fixed by #128
Closed
Labels
bug Something isn't working

Comments

@ferencdg
Copy link

Describe the bug

function _rebalance(PoolKey memory key) public {

is public

Expected Behavior

should be internal

To Reproduce

No response

Additional context

No response

@ferencdg ferencdg added the bug Something isn't working label Nov 23, 2023
@xben12
Copy link

xben12 commented Nov 27, 2023

the function starts with _ and hence looks like an internal function.
However, the developer put it external because rebalance can happen in more cases and may need be triggerable directly for external caller. it seems that the developer hasn't fully handled this, so he put it as public first. (that's how I feel).

@damianrusinek
Copy link

We also discussed that. I believe they first made it internal and then decided to make it public but forgot to update the name.

@Jun1on Jun1on linked a pull request Jun 24, 2024 that will close this issue
@saucepoint
Copy link
Collaborator

Hi! thanks for flagging -- going to close this issue because:

  1. hook examples no longer live in the main branch

  2. custom accounting will allow for a more v2-style curve with v2 interfaces. reference implementation https://github.com/hensha256/v2-on-v4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants