Skip to content

totalsupply not working #149

Open
Open
@simple-marvin

Description

@simple-marvin

https://thegraph.com/explorer/subgraphs/A3Np3RQbaBA6oKJgiwDJeo5T3zrYfGHPWFYayMwtNDum?v=1&view=Playground&chain=arbitrum-one

or

https://thegraph.com/hosted-service/subgraph/ianlapham/uniswap-v2-dev

when i use one of the above links and the below query, it also shows me weird numbers

query:
{
tokens(first: 5, orderBy:tradeVolumeUSD orderDirection:desc) {
id
symbol
name
decimals
totalSupply
}
}

result:
{
"data": {
"tokens": [
{
"id": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"symbol": "WETH",
"name": "Wrapped Ether",
"decimals": "18",
"totalSupply": "15640"
},
{
"id": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"symbol": "USDC",
"name": "USD//C",
"decimals": "6",
"totalSupply": "14864"
},
{
"id": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"symbol": "USDT",
"name": "Tether USD",
"decimals": "6",
"totalSupply": "14448"
},
{
"id": "0xa47c8bf37f92abed4a126bda807a7b7498661acd",
"symbol": "UST",
"name": "Wrapped UST Token",
"decimals": "18",
"totalSupply": "14448"
},
{
"id": "0xc8d674114bac90148d11d3c1d33c61835a0f9dcd",
"symbol": "mNFLX",
"name": "Wrapped Mirror NFLX Token",
"decimals": "18",
"totalSupply": "14448"
}
]
}

token with correct totalSupply from etherscan:
weth - 15640 - 3276063798496846980898561
usdc - 14864 - 23398309739224635
usdt - 14448 - 44005847706828943
ust - 14448 - 295788247260048794239793908
mNFLX- 14448 - 3083201876426681305152

V3 shows the right totalSupply

https://thegraph.com/explorer/subgraphs/HUZDsRpEVP2AvzDCyzDHtdc64dyDxx8FQjzsmqSg4H3B?view=Playground&chain=arbitrum-one

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions