Skip to content

BACK-1833: Support for Balancer V3 hooks with stableSurge hook#884

Merged
aburkut merged 24 commits into
VeloraDEX:masterfrom
johngrantuk:balancer-v3-hooks-support
Feb 14, 2025
Merged

BACK-1833: Support for Balancer V3 hooks with stableSurge hook#884
aburkut merged 24 commits into
VeloraDEX:masterfrom
johngrantuk:balancer-v3-hooks-support

Conversation

@johngrantuk

@johngrantuk johngrantuk commented Jan 17, 2025

Copy link
Copy Markdown
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
  • 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
  • Add stableSurge hook support. See docs for more info.

@johngrantuk johngrantuk changed the title feat(WIP): Support for Balancer V3 hooks Support for Balancer V3 hooks with stableSurge hook Feb 6, 2025
@johngrantuk johngrantuk marked this pull request as ready for review February 6, 2025 12:10
Comment thread src/dex/balancer-v3/hooks/stableSurgeHook.ts Outdated
Comment thread src/dex/balancer-v3/hooks/balancer-hook-event-subscriber.ts Outdated
Comment thread src/dex/balancer-v3/balancer-v3-pool.ts
Comment thread src/dex/balancer-v3/balancer-v3-pool.ts
Comment thread src/dex/balancer-v3/getPoolsApi.ts Outdated
Comment thread src/dex/balancer-v3/hooks/stableSurgeHook.ts Outdated
Comment thread src/dex/balancer-v3/balancer-v3-pool.ts
@aburkut aburkut merged commit b9e5e5a into VeloraDEX:master Feb 14, 2025
@aburkut aburkut changed the title Support for Balancer V3 hooks with stableSurge hook BACK-1833: Support for Balancer V3 hooks with stableSurge hook Feb 14, 2025
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.

4 participants