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: totalLiquidity reported as 0 #579

Open
gosuto-inzasheru opened this issue Mar 29, 2024 · 3 comments
Open

fix: totalLiquidity reported as 0 #579

gosuto-inzasheru opened this issue Mar 29, 2024 · 3 comments

Comments

@gosuto-inzasheru
Copy link

the ANKR/ankrETH pool on arbitrum comes back with a totalLiquidity of 0, even though official ui says different.

not sure if this is a fluke for this particular pool or if it is a chain/system wide bug

{
  pools(
    where: {id: "0x9f8ed1acfe0c863381b9081aff2144fc867aa7730002000000000000000004d4"}
  ) {
    symbol
    totalLiquidity
  }
}

https://api.thegraph.com/subgraphs/name/balancer-labs/balancer-arbitrum-v2/graphql?query=%7B%0A++pools%28%0A++++where%3A+%7Bid%3A+%220x9f8ed1acfe0c863381b9081aff2144fc867aa7730002000000000000000004d4%22%7D%0A++%29+%7B%0A++++symbol%0A++++totalLiquidity%0A++%7D%0A%7D

@gosuto-inzasheru
Copy link
Author

in addition, totalLiquidity for PYUSD/sDOLA comes back as $118k versus $276k in the ui

is there a more reliable attribute to query than totalLiquidity? or is the subgraph just lagging/bugged?

@mendesfabio
Copy link
Member

thanks for reporting, I'm going to investigate this. do you need daily TVL or just the latest one? if just the latest then you could use the API instead of the Subgraph, it's more reliable for USD figures.

@gosuto-inzasheru
Copy link
Author

this is part of a query that we eventually want to integrate into the api, so the more it is based on subgraph data the better (for now)

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

2 participants