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

Pool state cannot be easily tracked via event watching #18

Open
sblevins opened this issue Jun 11, 2023 · 1 comment
Open

Pool state cannot be easily tracked via event watching #18

sblevins opened this issue Jun 11, 2023 · 1 comment

Comments

@sblevins
Copy link

Events for state modifying pool actions don't include information about reinvested liquidity, so that value must be derived (which is very difficult). This makes it about 100 times harder to track the state of pools

@sblevins
Copy link
Author

I'd like to add that it's not as simple as just taking a fee percentage from the input amount, because of rounding behavior when crossing ticks. The final number depends on the number of iterations in the main loop within swap()

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