Max Vaults APY Calculation
APY Calculation
The APY for Max Vaults and underlying strategies represents its annualized performance based on a trailing 7-day and 31-day period of on-chain data. This provides a current, data driven measure of the products recent performance.
The calculation relies on the rate that each strategy’s provider contract publishes (e.g., getRate(asset)).
On-chain exchange rates
Our system reads a strategy's exchange rate directly from its smart contract. The rate is captured at two points in time:
The rate from the latest block (
R_now).The rate from a block approximately 7 days prior (
R_7d-ago).
Calculate the 7-Day Period Return
Two rates are used to calculate the strategy's raw percentage gain over the ~7 day period.
Annualized return
The below calculation is used to project this 7-day return over a 365-day horizon to calculate the APY for the strategy. This shows what the return would be over a full year if the performance of the last 7 days were to continue.
A standard periodic compounding formula for is used for this projection:
This process updates hourly, so the APY always reflects the most recent 7-day and 31-day performance data.
Last updated