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

[v4] Hook docs #26

Open
ChefMist opened this issue May 29, 2024 · 0 comments
Open

[v4] Hook docs #26

ChefMist opened this issue May 29, 2024 · 0 comments

Comments

@ChefMist
Copy link
Collaborator

ChefMist commented May 29, 2024

Add a section to remind devs about bin pool. eg.

1/ assume active bin ratio is 40% usdc/ 60% usdt
2/ user add liquidity for the active bin with just usdt. it will get swapped to 40% usdc / 60% usdt
3/ user burn and will get 40% usdc / 60% usdt.

User might perform the above to evade beforeSwap() fee. hooks might want to guard against that in mint call with HOOKS_AFTER_MINT_OFFSET

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