💰Yield Calculation
Are you curious about how Zup Protocol calculates liquidity pool yields? You’re in the right place.
Calculating 24h Yearly Yield
Calculating the 24h yield of a liquidity pool is simple math. First, divide its 24h fees by its TVL, then multiply by 100 to get the yield as a percentage (this gives you the literal 24h yield). Finally, multiply by 365 to get the yearly yield
Calculating X Days yearly Yield
Calculating a yearly yield for more than 24 hours (or for multiple days) is a bit more complex than calculating the 24h yearly yield. In this case, we use the average to obtain a more accurate yield
You must first calculate the 24h yearly yield for each day (e.g., for 30 days) using the same formula above
Now, calculate the average of all the yields by summing them up and dividing by the number of days (e.g., 30).
Done! You now have a precise average yearly yield based on data from several days
Last updated