Is it possible to calculate all-time global fees, earned by a Uniswap v3 liquidity pool?
Using Uniswap v3 pool contract I can retrieve feeGrowthGlobal0X128
& feeGrowthGlobal1X128
, which represent
the fee growth as a Q128.128 fees of token0 collected per unit of liquidity for the entire life of the pool
But I don't see how to calculate the total fees earned by the pool.
Also, the feeGrowthGlobal doc comments say: This value can overflow the uint256
Which is confusing too. What happens when it overflows, isn't the information about earned fees lost?