srUSD & wsrUSD Calculations

srUSD Calculations

Floating Rate

srUSD operates on a cumulative compounding rate, which steadily increases it's price in rUSD. The price can never go below 1, but it increases at different rates as the interest rate on srUSD is updated by governance. Starting at an initial time, the cumulative compounded value of 1 srUSD is:

(1+r1)n1(1+r2)n2...(1+rk)nk(1 + r_{1})^{n_{1}} (1 + r_{2})^{n_{2}} . . . (1 + r_{k})^{n_{k}}

Where the nin_{i}s, are the time intervals between changes in the rate.

APY Calculation

srUSD APY is calculated using the 'currentRate' in the Savings module and compounding it for 365 days.

Using an example if the current APY is 11%

= POW (1 + 13%, 1 / 365) - 1

Output of this formula = 334898895

wsrUSD Calculations

APY Calculation

wsrUSD APY is calculated using the 'currentRate' in the contract address and compounding it for 31536000. This is the number of seconds in a year.

Using an example if the current APY is 13%

= POW (1 + 13%, 1 / 31536000) - 1

Out of this formula = 3875495702132530000

Last updated