# 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 + r\_{1})^{n\_{1}} (1 + r\_{2})^{n\_{2}}  . . . (1 + r\_{k})^{n\_{k}}
$$

Where the $$n\_{i}$$s, are the time intervals between changes in the rate.

### APY Calculation&#x20;

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 13%

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

Output of this formula = 334898895

<div align="left"><figure><img src="/files/SxooPHPdZESmwAHy9TIb" alt=""><figcaption></figcaption></figure></div>

## wsrUSD Calculations

### APY Calculation&#x20;

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

<div align="left"><figure><img src="/files/gyXDnZoZNSZlsG7YxZaI" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reservoir.xyz/products/savings-srusd-and-wsrusd/srusd-and-wsrusd-calculations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
