streamingfast / substreams-uniswap-v3

Apache License 2.0
49 stars 16 forks source link

Fix data discrepancies in uniswap-v3 #4

Closed sduchesneau closed 1 year ago

sduchesneau commented 1 year ago

This request for WETH token

    token(id:"c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", block:{number:16518418}) {
      volumeUSD
      volume
    }
  }

gives those crazy values in our subgraph (http://graph-dev.mainnet.eth.streamingfast.io/subgraphs/id/Qmcz2PqyGEhEZ67CyN4H8hc8NGdj8yMgDE7VPte3SmtjVe/graphql)

It gives different values on theirs (https://api.thegraph.com/subgraphs/name/uniswap/uniswap-v3/graphql)

It could be the good old "Off by a few orders of magnitude" type of bug

sduchesneau commented 1 year ago

Large discrepancies have been addressed. Most data is under 1% difference, which is good considering the compound effect on small differences and how some data is calculated from values that come from a different moment in the block. Closing this issue.