How Pool Tokens Calculated?
mustafatalha opened this issue · 1 comments
mustafatalha commented
Hello,
I wonder, how are the pool tokens that given when we add liquidity in uniswap is calculating? I read the docs and I know that these tokens represent our position in pool, but how they are calculating in uniswap-v2-core?
I read https://uniswap.org/docs/v2/core-concepts/pools/ and didn't find any answer.
Thank you.
mustafatalha commented
I found the anwser in the code. I am putting here if somebody wonder:
https://github.com/Uniswap/uniswap-v2-core/blob/4dd59067c76dea4a0e8e4bfdda41877a6b16dedc/contracts/UniswapV2Pair.sol#L110