APRとAPYの計算

すべてのVaultにはパフォーマンスインデックスがあり、1.00から始まり、預金トークン(Put Sellingの場合はsUSD、Covered Callの場合はsETH)に対して計算され、インデックスに対して株式が発行されるようになっています。

Total Projected Yield (APY)

過去4週間の年率換算パフォーマンスの平均値を取得して算出。過去4週間の週次利回りの平均値(イン・ザ・マネー週は除く)

Let w1,w2,w3,w4w_1,w_2,w_3,w_4 be the 4 weeks in chronological order.

Let final tokenPrice at end of some week as fif_i and start price as sis_i

Define gain gig_i for some week wiw_i as (fisi)si\frac{(f_i - s_i)}{s_i}

Now average yield = (i(1+gi))(\prod\limits_{i} (1+g_i)) - 1

and average Apy = (1+yield)NumWeeks/41(1 + \texttt{yield})^{\texttt{NumWeeks/4}} - 1.

Where NumWeeks=52.1429\texttt{NumWeeks} = 52.1429, number of weeks in year.

This Weeks's Projected Yield (APY)

オプションの有効期限が切れた場合、その週の年率換算の期待パフォーマンスです。

It is calculated as

Yield = totalPremiumCollectedtotalFunds \frac{\texttt{totalPremiumCollected}}{\texttt{totalFunds}} - 1

APY = (1+yield)NumWeeks1(1 + \texttt{yield})^{\texttt{NumWeeks}} - 1

Last Week Yield (APY)

It is annualised performance based on last week. Let tokenPrice on last to last friday be f1f_1 and tokenPrice on last friday be f2f_2.

Yield = f2f1f11\frac{f_2 - f_1}{f_1} - 1

APY = (1+yield)NumWeeks1(1 + \texttt{yield})^{\texttt{NumWeeks}} - 1

Historic Yield (APY)

運用開始からの年率平均利回り。(運用中週を含む)

https://hackmd.io/@mubaris/Polynomial-V2-Vaults-Calculation

Last updated