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

Exchange.pairs should return liquidityTokenBalance in order to calculate TVL #19

Open
omakasebar opened this issue Feb 12, 2021 · 0 comments

Comments

@omakasebar
Copy link
Contributor

omakasebar commented Feb 12, 2021

TVL: (pair.reserveUSD / pair.totalSupply) * liquidityPosition.liquidityTokenBalance, if utilizing current subgraphs
TVL: (pair.liquidityTokenBalance / pair.totalSupply) * pair.reserveUSD, if utilizing uniswap-subgraph-fork

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

No branches or pull requests

1 participant