docs icon indicating copy to clipboard operation
docs copied to clipboard

Uniswap v3 whitepaper: missing division by liquidity in feeGrowthGlobal's update

Open ywatanabex opened this issue 3 years ago • 1 comments

This issue is to point out a mistake in the Uniswap V3 whitepaper.

In the whitepaper, the update rule of feeGrowthGlobal1 is given by the following equation

$$ \Delta f_{g,1} = y_{in} \gamma (1 - \phi). $$

However, this should be corrected to

$$ \Delta f_{g,1} = y_{in} \gamma (1 - \phi) / L, $$

because it is, according the whitepaper itself, "the total amount of fees that have been earned per unit of virtual liquidity". Actually, the contract code has the division by the liquidity.

ywatanabex avatar Oct 12 '22 11:10 ywatanabex

Good catch

survenikhil avatar Jan 04 '23 13:01 survenikhil