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

trying to replicate this code with ordered events from a full node leads to negative TVL #251

Open
journeytosilius opened this issue Nov 24, 2024 · 0 comments

Comments

@journeytosilius
Copy link

I have replicated the logic for swaps, mints, burns and collects from this repo but instead using a full node, with fully ordered event logs Txindex > logIndex, and at some point liquidity goes negative. Do you know why ? Is it expected that TVL goes negative as a side effect ? Is it actually possible to get the correct TVL only with the events ?

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