Yield Yak Upgrades Farm APY Calculations
Yield Yak now displays faster updates to changing yield conditions, enabling users to make better decisions while using the platform.
Yield Yak displays returns from actual and recent performance
Yield Yak calculates APY figures based on historical results. Yield Yak calculates yield differently to most defi applications. The usual method for displaying APY is an estimate based on rewards emissions and current reward price irrespective of any other factors.
Yield Yak uses historical data to show returns considering all other factors, including fees and slippage. Using the actual returns provides a more complete indicator of performance than simple estimates with current prices and reward emissions. Yield Yak APYs are impacted by many things, including:
- Reward token emissions and prices
- Deposit/withdrawal activity on underlying farms
- Trade execution costs (vs market price)
- Overall C-Chain activity for block-based rewards
- Frequency of reinvestments as affected by gas costs (i.e. AVAX price and market gas prices) and community activity
- Platform fees
Simple reward estimates do not take these factors into account which influence the actual returns achieved by users. YY is generally conservative with its published figures.
The Drawbacks of Historical Data
The downside of calculating rewards with historical data is that YY returns often do not match the reward estimates displayed on underlying farms. This tends to be a source of confusion for new users.
For example, if a reward token quickly doubles in price. YY displays the X% it achieved based on historical data whereas the underlying farm now displays 2X%.
This might also happen in case of a change to reward emissions, like this recent example:
The orange lines represent data for APY calculations. The dashed line uses the complete history of returns. The solid line uses more recent data, after an emission change. Different time ranges produce different results.
Adding Weight to Recent Returns
In the past, YY displayed APY based on a linear calculation using up to the 25 most recent data points. This means, it might take many hours or even days to reflect substantiative changes to returns on underlying farms.
Today’s release adds weight to the calculation, meaning that the most recent data points are considered more heavily in the calculation compared to less recent data. YY now reflects changes to underlying farm yields much faster while still taking a conservative approach to evaluating rewards based on actual performance.
The following formula shows the weighted calculation, where ROI is how much a given reinvest increased the value of deposits. For example, if a reinvest increased deposits from 100 to 101, ROI is 1%. APY is calculated as a function of the weighted result and time between reinvests.
“what this does is point out a sudden increase or decrease in APY faster. but still conservative if compared to the market.”
— SlowCheetah, Yak Dev
Your feedback powers Yield Yak. Today’s change is initiated from community feedback.