Question on uniswap v3 Fee growth #28
-
|
From https://updraft.cyfrin.io/courses/uniswap-v3/fee-algorithm/fee-growth-below Why does the algorithm subtract from fg instead of simply adding the fee growth values in this area for example?
btw the fee growth chart for ref. Additionally, great if someone could explain this whole table values a bit more (both fb ad f0,i). been struggling to understand the logic under the hood. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
I honestly don't think I can do a better job explaining this than @t4sk but just to try my best to make it clear, The table reflects the To cut the long story short, we only have a single line which we use to represent both I hope I have not confused you more. Please ask questions if you have any. |
Beta Was this translation helpful? Give feedback.
-
|
Fully understood now. Thank you so much @EngrPips and @t4sk for the support. I just completed the course. 🔥 |
Beta Was this translation helpful? Give feedback.


I honestly don't think I can do a better job explaining this than @t4sk but just to try my best to make it clear, The table reflects the
fee growthbelow the tick and the below the tick is where we have those red boxes, The height of those red boxes intrinsically contains the height of the above tick which is the other side of the tick where we have no boxes. We are trying to calculate the fee growth below the tick and not the total fee growth, so whenever we do our calculation, the formula subtracts the fee growth above from the fee growth below(total fee to be precise to get the actual fee growth below).To cut the long story short, we only have a single line which we use to represent b…