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]: Argument Mismatch in afterAddLiquidity and afterRemoveLiquidity Functions with v4-core #328

Closed
DamirS09 opened this issue Sep 2, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@DamirS09
Copy link

DamirS09 commented Sep 2, 2024

Describe the bug

There is a discrepancy in the function signatures of afterAddLiquidity and afterRemoveLiquidity between the v4-periphery and v4-core repositories.

Expected Behavior

The function signatures in v4-periphery should be updated to match those in v4-core, including the BalanceDelta feesAccrued parameter. This ensures consistency and compatibility between the core and periphery layers.

To Reproduce

v4-core: afterAddLiquidity
v4-periphery: afterAddLiquidity
v4-core: afterRemoveLiquidity
v4-periphery: afterRemoveLiquidity

Additional context

In v4-core, both functions take an additional parameter: BalanceDelta feesAccrued.
The v4-periphery implementation lacks this parameter, which leads to incompatibility issues.

This discrepancy is present in the v4-periphery repository, specifically in the file: src/base/hooks/BaseHook.sol.

@DamirS09 DamirS09 added the bug Something isn't working label Sep 2, 2024
@hensha256
Copy link
Contributor

Hi! Yes we have to manually update the core commit that is used in periphery. We changed core a few days ago so need to manually update in periphery. Will aim to get that in today or tomorrow for you :)

@hensha256
Copy link
Contributor

The update to core was created here Uniswap/v4-core@3407bce

@DamirS09
Copy link
Author

DamirS09 commented Sep 2, 2024

Hi! Yes we have to manually update the core commit that is used in periphery. We changed core a few days ago so need to manually update in periphery. Will aim to get that in today or tomorrow for you :)

Hi! Thank you for the quick response!

I appreciate the update and will look forward to the changes being implemented in the periphery repository.
Thanks again! 😊

@saucepoint
Copy link
Collaborator

should be fixed now with:

#337

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

No branches or pull requests

3 participants