Uniswap / v3-core

🦄 🦄 🦄 Core smart contracts of Uniswap v3

Home Page:https://uniswap.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feeGrowthGlobal0X128Delta is incorrect in snapfile

gabkov opened this issue · comments

commented

"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?