# Liquidity Risks

## Liquidity and Borrow Interest Rate

### Overview

The Rhombus Protocol is a decentralized, non-custodial liquidity protocol that enables users to supply and borrow various cryptoassets from liquidity pools, earning interest on supplied assets. The liquidity of the protocol is a critical metric, representing the availability of assets for operations such as borrowing backed by collateral and redeeming supplied assets along with accrued interest.

At any given time, the protocol's liquidity can be assessed through the **Utilization Ratio**, which is the proportion of the reserve currently borrowed compared to the total supply of each asset. Liquidity risk is managed through the borrow interest rate model and alternative sources of aToken liquidity.

### Borrow Interest Rate Model

The Rhombus Protocol's interest rate model is designed to manage liquidity risk and optimize asset utilization. The borrow interest rates are calculated using the Utilization Rate *U*, an indicator of the availability of capital within the liquidity pool.

#### How It Works

* **When capital is available**: Low interest rates are applied to encourage borrowing.
* **When capital is scarce**: High interest rates are used to incentivize repayments and additional supplying.

To retrieve the interest rate strategy contract on-chain, refer to the developer documentation.

#### Interest Rate Formula

The interest rate curve is divided into two segments based on an optimal utilization rate *U*optimal​. The model follows these rules:

$$
R\_t = \begin{cases} \text{if } U \leq U\_{\text{optimal}} & \quad R\_0 + \frac{U\_t}{U\_{\text{optimal}}} R\_{\text{slope1}} \\\[1em] \text{if } U > U\_{\text{optimal}} & \quad R\_0 + R\_{\text{slope1}} + \frac{U\_t - U\_{\text{optimal}}}{1 - U\_{\text{optimal}}} R\_{\text{slope2}} \end{cases}
$$

#### Actual Borrow Rate

In practice, the `calculateCompoundedInterest` method is used, with an approximation that mostly impacts high interest rates. The actual borrow rate is given by:

$$
\text{Actual APY} = \left(1 + \frac{\text{Theoretical APY}}{\text{secs per year}}\right)^{\text{secs per year}} - 1
$$

* **When&#x20;*****U*****&#x20;≤&#x20;*****U*****optimal**&#x200B;**:** Borrow interest rates increase slowly with utilization.
* **When U >&#x20;*****U*****optimal​**: Borrow interest rates increase sharply, reaching over 50% APY if liquidity is fully utilized.

Both the variable and stable interest models are derived from the formula above, with different parameters for each asset.

#### Model Parameters

The interest rate parameters are tailored to manage liquidity risk and market conditions effectively. They are calibrated based on the following key factors:

1. **Collateral Usage**: Volatile assets need constant liquidity for liquidations.
2. **Market Conditions**: Borrowing costs must align with market opportunities to prevent arbitrage.

### Interest Rate Strategies for Markets

The interest rate strategies for markets have been deployed with three distinct models, each calibrated for clusters of assets with similar risk profiles.

#### Rate Strategy KAIA

Designed for native asset and its LSTs that require consistent liquidity.

* **Assets**: KAIA, stKAIA, wgcKLAY
* **Parameters**:

  | Parameter                          | Value |
  | ---------------------------------- | ----- |
  | Optimal Usage                      | 90%   |
  | Base Variable Borrow Rate          | 0     |
  | Variable Rate Slope 1              | 4%    |
  | Variable Rate Slope 2              | 104%  |
  | Base Stable Borrow Rate            | N/A   |
  | Stable Rate Slope 1                | N/A   |
  | Stable Rate Slope 2                | N/A   |
  | Optimal Stable to Total Debt Ratio | 20%   |

#### Rate Strategy Stable One

For low liquidity stablecoins, calibrated for lower optimal utilization.

* **Assets**: USDT, USDC
* **Parameters**:

  | Parameter                          | Value |
  | ---------------------------------- | ----- |
  | Optimal Usage                      | 80%   |
  | Base Variable Borrow Rate          | 0     |
  | Variable Rate Slope 1              | 4%    |
  | Variable Rate Slope 2              | 104%  |
  | Base Stable Borrow Rate            | N/A   |
  | Stable Rate Slope 1                | N/A   |
  | Stable Rate Slope 2                | N/A   |
  | Optimal Stable to Total Debt Ratio | 20%   |

#### Rate Strategy Variable Major

For high liquidity variable tokens, encouraging borrowing with lower rates.

* **Assets**: ETH
* **Parameters**:

  | Parameter                          | Value |
  | ---------------------------------- | ----- |
  | Optimal Usage                      | 60%   |
  | Base Variable Borrow Rate          | 0     |
  | Variable Rate Slope 1              | 4%    |
  | Variable Rate Slope 2              | 104%  |
  | Base Stable Borrow Rate            | N/A   |
  | Stable Rate Slope 1                | N/A   |
  | Stable Rate Slope 2                | N/A   |
  | Optimal Stable to Total Debt Ratio | 20%   |

### Supply Rate

The borrow interest rates paid by borrowers are distributed as yield for aToken holders who supply to the protocol, excluding a portion reserved for the ecosystem treasury. The supply APY, **St,** is calculated as:

$$
S\_t = U\_t \left( \frac{S\_{B\_t}}{S\_t} + \frac{V\_{B\_t}}{V\_t} \right) (1 - R\_t)
$$

Where:

* `Ut`: Utilization ratio.
* `SBt`: Share of stable borrows.
* `St`: Average stable rate.
* `VBt`: Share of variable borrows.
* `Vt`: Variable rate.
* `Rt`: Reserve factor.


---

# 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.rhombusprotocol.io/security/risks/liquidity-risks.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.
