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

Kassandra Managed pool #427

Merged

Conversation

guilherme-correa-s
Copy link

This PR add Kassandra Managed Pool for swap token to token.
For math we use WeightedMath.
If you need further testing or any changes, just comment. thanks.

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.

Thanks for the PR! It looks pretty good 👍
I did add a few minor comments, but should be quick/straightforward to fix them.
Can you also please update the base branch to managed-kassandra? It will be easier to run some checks before merging to develop
Thanks!

src/pools/index.ts Outdated Show resolved Hide resolved
Comment on lines 96 to 97
else if (pool.poolType === 'Managed')
newPool = KassandraManagedPool.fromPool(pool);
Copy link
Member

Choose a reason for hiding this comment

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

This is the only part that I don't have a clear answer at the moment.
In case anyone else creates a new Managed Pool with different config from yours, the SOR might break.
Are you guys planning on releasing any subsequent Managed Pool?
If yes, is there anything in common with the current one that we can use as a second identifier? Maybe the owner address?
If not, we could even use the poolId as an intermediate solution until we need to develop a more generalized approach.

src/pools/managedPools/kassandraManagedPool.ts Outdated Show resolved Hide resolved
@guilherme-correa-s guilherme-correa-s changed the base branch from develop to managed-kassandra December 12, 2023 19:47
@brunoguerios brunoguerios merged commit 1888e7a into balancer:managed-kassandra Dec 14, 2023
2 of 3 checks passed
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