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:
Where the 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