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

[Reference ]Feat/dynamic fee hook #11

Merged
merged 5 commits into from
Nov 21, 2024
Merged

[Reference ]Feat/dynamic fee hook #11

merged 5 commits into from
Nov 21, 2024

Conversation

chefburger
Copy link
Contributor

@chefburger chefburger commented Aug 21, 2024

This would only be used in FE tests, we might not want to merge it since the code isn't safe

@chefburger chefburger force-pushed the feat/dynamic-fee-hook branch from 2dae20c to 8093073 Compare August 21, 2024 07:57
Base automatically changed from deploy/scripts to main August 29, 2024 06:13
@chefburger chefburger force-pushed the feat/dynamic-fee-hook branch from 8093073 to 27d7ff6 Compare August 29, 2024 06:13
@chefburger chefburger force-pushed the feat/dynamic-fee-hook branch from 1c3f4a9 to 6a4664b Compare September 26, 2024 03:14
returns (bytes4)
{
setDynamicLpFee(key, DEFAULT_LP_FEE);
return this.beforeInitialize.selector;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return this.beforeInitialize.selector;
return this.afterInitialize.selector;

bytes calldata hookData
) external override returns (bytes4) {
setDynamicLpFee(key, DEFAULT_LP_FEE);
return this.beforeInitialize.selector;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return this.beforeInitialize.selector;
return this.afterInitialize.selector;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, do u want me to redeploy the contract ?

Copy link

@ChefJerry ChefJerry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong selector used

@chefburger chefburger merged commit 8b8035f into main Nov 21, 2024
1 check passed
@chefburger chefburger deleted the feat/dynamic-fee-hook branch November 21, 2024 08:34
@chefburger
Copy link
Contributor Author

Merge it since it has been heavily used for FE testing

Comment on lines +68 to +73
function beforeMint(
address,
PoolKey calldata,
IBinPoolManager.MintParams calldata,
bytes calldata
) external override returns (bytes4, uint24) {
Copy link

@ChefJerry ChefJerry Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    function beforeMint(
        address,
        PoolKey calldata,
+        IBinPoolManager.MintParams calldata
-        IBinPoolManager.MintParams calldata,
-        bytes calldata
    ) external override returns (bytes4, uint24) {

Copy link
Contributor Author

@chefburger chefburger Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it has got updated #21. Thx for reminding

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

Successfully merging this pull request may close these issues.

2 participants