-
Notifications
You must be signed in to change notification settings - Fork 9
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
calculateProportionalAmounts for boosted pools #468
Comments
Hey @agualis ! cc @johngrantuk (any idea/feedback on the suggested approach?) |
I was also thinking if this was best placed in SDK or not. If Alberto is ok with the suggestion then it seems a reasonable approach. I'm not sure if it would still be a bit confusing for external users though so maybe we can think about options to improve after the V3 launch. |
@johngrantuk @brunoguerios I'm ok with the suggestion and with trying to improve the DX after V3 launch |
Yeah, my concern is that if we shift that to the SDK, it will have to perform a few on-chain calls to query the underlying balances and then calculate amounts proportional to it. |
The FE we uses
calculateProportionalAmounts
when the user choses “Proportional addable pool tokens”.They fill one token input and we auto calculate and fill the other inputs proportionally using
calculateProportionalAmounts
that will be used withkind: AddLiquidityKind.Unbalanced
underneath.From a DX point of view, it would be easier to make it work with underlying tokens as the rest of the boosted integration.
The text was updated successfully, but these errors were encountered: