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: v3 boosted adds/removes #146

Merged
merged 72 commits into from
Nov 7, 2024
Merged

feat: v3 boosted adds/removes #146

merged 72 commits into from
Nov 7, 2024

Conversation

agualis
Copy link
Collaborator

@agualis agualis commented Nov 6, 2024

Unbalanced adds for v3 boosted pools and proportional removes.

Note that proportional inputs are disabled until the SDK implements calculateProportionalAmounts for boosted pools.
Note that single boosted removes will not be supported by the SDK in this first iteration.

Also includes some preparation code for nested boosted pools.

Boosted pool to test with:
https://mono-test-v3-git-feat-v3boostedadds-balancer.vercel.app/pools/sepolia/v3/0x6dbdd7a36d900083a5b86a55583d90021e9f33e8

adds-removesBoostedV3.mp4

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mono-beets-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 9:52am
mono-frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 9:52am
mono-test-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 9:52am

...token.underlyingToken,
address: token.underlyingToken?.address as Address,
decimals: token.underlyingToken?.decimals as number,
index, //TODO: review that this index is always the expected one
Copy link
Collaborator Author

@agualis agualis Nov 6, 2024

Choose a reason for hiding this comment

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

@gareth This works with the reference boosted pool works but I have to double check this with the SDK team.

@agualis agualis changed the title Feat/v3 boosted adds feat: v3 boosted adds/removes Nov 6, 2024
Copy link
Contributor

@garethfuller garethfuller left a comment

Choose a reason for hiding this comment

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

This form should show the individual tokens you are getting out.
Screenshot 2024-11-06 at 16 20 18

When removing tokens you should get out the tokens that you put in. At the moment when you remove you seem to get the high level pool tokens and not the underlying.
Screenshot 2024-11-06 at 16 24 08

@agualis agualis merged commit ca1f61b into main Nov 7, 2024
8 checks passed
@agualis agualis deleted the feat/v3BoostedAdds branch November 7, 2024 12:23
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