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

feat(WIP): Support for Balancer V3 hooks #884

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johngrantuk
Copy link
Contributor

Adds support for Balancer V3 pools with hooks.

  • The aim would be to add any Balancer approved/vetted hooks on a case by case basis.
  • Config file is used to keep track of supported hook type and address
  • Each hook must implement its own state and event handling (e.g. see src/dex/balancer-v3/hooks/directionalFeeHook.ts)
  • Added a new event subscriber that will be used to track hook state
  • Relevant hook state is used for pool maths and maths repo handles hook logic/calculation if required
  • Sepolia directionalFeeHook is an example used for testing/integration to demo what is required

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.

1 participant