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

We should do the inverse when a liquidity provider becomes inactive (removes all liquidity) #171

Open
github-actions bot opened this issue Aug 19, 2022 · 0 comments
Assignees

Comments

@github-actions
Copy link

pair.liquidityProviderCount = pair.liquidityProviderCount.plus(BigInt.fromI32(1)) pair.save() const pairContract = PairContract.bind(pair) const liquidityTokenBalance = pairContract.balanceOf(user).divDecimal(BigDecimal.fromString('1e18'))


// TODO: We should do the inverse when a liquidity provider becomes inactive (removes all liquidity)
// pair.liquidityProviderCount = pair.liquidityProviderCount.plus(BigInt.fromI32(1))
// pair.save()
// const pairContract = PairContract.bind(pair)
// const liquidityTokenBalance = pairContract.balanceOf(user).divDecimal(BigDecimal.fromString('1e18'))


This issue was generated by todo-issue based on a TODO comment in 28385c6. It's been assigned to @alecananian because they committed the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant