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

Fix fees not calculated for first account to provide liquidity on a pair #365

Open
wants to merge 2 commits into
base: v2
Choose a base branch
from

Conversation

benber86
Copy link

@benber86 benber86 commented Mar 9, 2021

Issue originally raised in #363. The problem does not seem to be about how much an account provides on a pair, but rather if they were the first one to do so. In that case, the calculation of their ownership of the pool when they entered it will return a NaN because it will try to divide by a liquidityTokenTotalSupply that is equal to 0. The ownership NaN at t0 will then affect all subsequent calculations, including the sum of fees, hence why it is eventually not displayed.

@vercel
Copy link

vercel bot commented Mar 9, 2021

@benber86 is attempting to deploy a commit to the Uniswap Team on Vercel.

A member of the Team first needs to authorize it.

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