Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

When I provide liquidity, how do I calculate the amount of liquidity shares I can receive? #136

Open
blocklee opened this issue Aug 10, 2020 · 1 comment

Comments

@blocklee
Copy link

blocklee commented Aug 10, 2020

When I provide liquidity, how do I calculate the amount of liquidity shares I can receive?
What is the formula?

Is the introduction picture on the official website wrong?

image

How did the 4 LP shares come about?

The fee is 0.03%? or 0.3%?

@blocklee
Copy link
Author

For a new Liquidity Provider, pool tokens he can get is:

sqrt[(TokenA_reserve-amount + TokenA_deposit-amount) * (TokenB_reserve-amount + TokenB_ deposit-amount)] - sqrt(TokenA_reserve-amount * TokenB_reserve-amount)

That right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant