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

feeGrowthGlobal0X128Delta is incorrect in snapfile #683

Open
gabkov opened this issue Oct 2, 2023 · 0 comments
Open

feeGrowthGlobal0X128Delta is incorrect in snapfile #683

gabkov opened this issue Oct 2, 2023 · 0 comments

Comments

@gabkov
Copy link

gabkov commented Oct 2, 2023

"feeGrowthGlobal0X128Delta": "2381976568446569244235",

May i ask what is the reason for feeGrowthGlobal0X128Delta not worth 3?

If we run the calculation this will evaluate to ~14.

2381976568446569244235 * 2e18 / 2^128 = 13.99999999.

My guess it is because the fee calculation is always rounded up so even with 1 as amountIn the fee will be 1 as well.

Somebody could explain why these "empty" iterations happen please?

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