Subgraph endpoint returns different totalSupply than shown in uniswap dashboard
We are fetching the MKR total supply from this node using this query:
{
token(id: "0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2") {
symbol
totalSupply
}
}
Which gives us totalSupply": "18320", however when looking at the Uniswap dashboard for MKR, and adding up the token amounts from the top pools, I get closer to 10k MKR. Just wondering if there's an issue with this subgraph, or if I'm missing something obvious, thanks!
edit: I also notice that querying totalValueLocked gives me about 10027, which is the same value I get by adding up all the token amounts in the pools from the dashboard. So it seems totalValueLocked is returning the total supply. If you multiply that by the current price of $1884 you get around 18k, which is sort of close to the value returned by totalSupply.
edit2: I just noticed this comment describing totalValueLocked: # liquidity across all pools in token units. So if that's the case what is the difference between totalSupply and totalValueLocked?