i read the whitepaper and the code about uniswapv3. but i am still confused about uni-v3 swap fee calculation.
i can‘t understand 3 formula
qustion1cant understand Tick struct field feeGrowthOutside(0/1)X128
struct Info {
uint256 feeGrowthOutside0X128;
uint256 feeGrowthOutside1X128;
}
if swap cross it will be
question2cant understand above tick i and below tick i formula
i know at uniswapv3 code. when add/remove liquidity will calculate fee owned because liqudity is discrete。 but i really dont konw what 3 formula mean although i tried the fee distribution result is right


