Calculating Vault Performance
Overview
The rewards percentage is estimated on-the-fly using actual vault data. This takes the last five days or so of vault rewards and assumes they are representative of the next year.
Technical Details
More concretely:
The TruYields LST / Native Token exchange rate as calculated by the vault is sampled periodically, on average every hour.
This time-series is then resampled, interpolating linearly in time between points in the price series to generate a new time-series with points precisely one hour apart.
The mean hourly return is taken over the last 120 share price readings.
This average is then compounded hourly to give an annual return.
Formally, denote by tuples representing successive times and exchange rate prices originally sampled. This is converted into a time-series where for each
where is such that and , i.e. the number of whole hours in the original sample. We then convert this into a list of hourly returns, adjusting for vault fees . To calculate the final rewards, we take the mean of these hourly returns and compound this over a year to give an annual number:
Last updated
Was this helpful?