v3-subgraph icon indicating copy to clipboard operation
v3-subgraph copied to clipboard

Ticks incorrect

Open Florian-S-A-W opened this issue 2 years ago • 0 comments

On some Pools, especially bigger ones with more than 1,000 initialized Ticks, some Ticks contain incorrect values. While the values are incorrect in the sense of not representing the actual state of the blockchain, they are still consistent, meaning the 'ZERO_NET' etc. invariants of Pools are still met. I suspect that some Positions are not correctly indexed.

Steps to reproduce:

  1. Fetch all initialized ticks of a Pool for a specific block with the subgraph, as well as with RPC calls.
  2. Compare the Ticks by tickIdx. The liquidity values will be off in some cases.

Example: USDC/ WETH with LOW fee ( tested for multiple blocks between 17607400 and 17607545):

telegram-cloud-photo-size-4-5839092070403390264-x

Florian-S-A-W avatar Jul 02 '23 16:07 Florian-S-A-W