Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticks incorrect #176

Open
Florian-S-A-W opened this issue Jul 2, 2023 · 0 comments
Open

Ticks incorrect #176

Florian-S-A-W opened this issue Jul 2, 2023 · 0 comments

Comments

@Florian-S-A-W
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant