-
Notifications
You must be signed in to change notification settings - Fork 63
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
N8 - Minted liquidity tokens can round to zero #23
Comments
How could it round to zero? I haven't found a scenario where this could happen. @Agusx1211 (with the new divRound approach). |
This is the ultimate edge case... but here it goes:
The new |
Right, I see, though if we changed that, the owner of the 500 initial liquidity tokens would lose some, as per #19. For instance, User A adds 1 token (and 1 base), and get 1 Liquidity Token. Pools are now User A burns 1 liquidity to get back And made a 2 tokens profit at the cost of initial liquidity provider. If we round up, we have to take some tokens from the existing liquidity providers and if we round down, the new liquidity provider loses some tokens, favoring existing liquidity providers. I think not hurting existing liquidity providers is more important. What do you think? |
Maybe a simple way of fixing this issue is adding a |
The text was updated successfully, but these errors were encountered: