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

How to calculate the x and y output amount according to the LP balance when redeeming liquidity? #18

Closed
y0unghe opened this issue Oct 29, 2022 · 3 comments

Comments

@y0unghe
Copy link

y0unghe commented Oct 29, 2022

Can you add a function to return the x and y output amount according to the LP balance when redeeming liquidity like calculateRates when swap?

@borispovod
Copy link
Member

Hey, thank you, we currently updating SDK and expecting to do new release this week, so stay tuned.

We will add culculate rates in the current release or release after.

@lusd
Copy link
Contributor

lusd commented Nov 18, 2022

Hey! We are recently updated SDK with calculateRates for swap. stable version is 0.4.0 or higher.
We are planning ti add redeem liquidity flow in next releases.

@sirWill
Copy link
Contributor

sirWill commented Dec 2, 2022

Functions to work with liquidity and calculations corresponding with it was added from 0.5.0 version.

@sirWill sirWill closed this as completed Dec 2, 2022
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

No branches or pull requests

4 participants