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/enable hooks sor #896

Merged
merged 83 commits into from
Jan 15, 2025
Merged

Feat/enable hooks sor #896

merged 83 commits into from
Jan 15, 2025

Conversation

mkflow27
Copy link
Contributor

@mkflow27 mkflow27 commented Sep 4, 2024

This pr will enable hooks in the SOR. The key changes/additions are:

  • Pools are constructed with Liquidity management to check if the sor can build a route via single token operations
  • HookState depending on the hook associated with the given pool

Copy link

changeset-bot bot commented Sep 4, 2024

🦋 Changeset detected

Latest commit: f73eaa9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
backend Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mkflow27 mkflow27 requested a review from brunoguerios January 13, 2025 11:56
Copy link
Member

@brunoguerios brunoguerios left a comment

Choose a reason for hiding this comment

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

I left a few minor comments, but otherwise LGTM ✅
Let's get this thing out there 🚀

modules/sor/sorV2/lib/poolsV3/stable/stablePool.test.ts Outdated Show resolved Hide resolved
modules/sor/sorV2/lib/poolsV3/stable/stablePool.ts Outdated Show resolved Hide resolved
modules/sor/sorV2/lib/poolsV3/weighted/weightedPool.ts Outdated Show resolved Hide resolved
modules/sor/balancer-sor.integration.test.ts Outdated Show resolved Hide resolved
modules/sor/balancer-sor.integration.test.ts Show resolved Hide resolved
Comment on lines 106 to 107
// @ts-ignore: Ignore TypeScript error for accessing name property
pool.hook?.name,
Copy link
Collaborator

Choose a reason for hiding this comment

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

wouldn't it be cleaner to pass the name via the hookState? easier to manage if everything is within one scope.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

addressed the change request with the latest pushes.

@franzns franzns merged commit 331cf71 into v3-canary Jan 15, 2025
1 check passed
@franzns franzns deleted the feat/enable-hooks-sor branch January 15, 2025 11:32
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.

SOR Add hooks support
4 participants