Open ianlapham opened 2 years ago
UPDATE:
This bug is fixed in this PR: https://github.com/Uniswap/v3-subgraph/pull/100/files Subgraph deployed and synced here: https://thegraph.com/hosted-service/subgraph/ianlapham/v3-minimal
Needed to wait aout 5 weeks for subgraph to sync, but once tested can merge this into main. NOTE: this involves several schema changes
Hey @ianlapham, is it safe to use the Subgraph (v3-minimal), or do I have to wait around 5 weeks to get it synced with your changes?
Thanks for fixing this!
ok aliya mr30
I tried correcting for this in my Uniswap V3 subgraph, and when I include the subtraction of tokens from a pool on the Collect
event, I get negative token values.
This happened on my subgraph, and from this branch -- > https://github.com/Uniswap/v3-subgraph/tree/mainnet-2.0
The only change I made on this branch was including the Collect handler in the subgraph.yaml.
Awesome work @ianlapham Are we just waiting for PR to be reviewed and merged in?
Conversion from here https://github.com/Uniswap/v3-info/issues/186
pools
the TVL in terms oftoken0
andtoken1
is incorrectSteps to Reproduce (provided by @tcpzl)
Current Production State
Possible cause for error
Collect
events on pools correctly in this version of the subgraph. This means that as people collect fees - we dont subtract the collected amounst from the pool tvl. This would lead to the described issues**Solution***
amount0
andamount1
values and subtract them from the pool TVL