> For the complete documentation index, see [llms.txt](https://chi-protocol.gitbook.io/chi-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chi-protocol.gitbook.io/chi-docs/concepts/dual-stability-mechanism-dsm.md).

# Dual Stability Mechanism (DSM)

Mechanics

## Introduction to the DSM&#x20;

The Dual Stability Mechanism (DSM) is the cornerstone of Chi Protocol, making USC the first capital-efficient stablecoin in DeFi that minimises counterparty risks without relying on centralised exchanges (CEXes) or exposing itself to censorable collateral. The DSM ensures USC's solvency and stability while generating protocol-level rewards for all stakeholders. This innovative mechanism allows USC to operate securely and efficiently, aligning with the decentralised ethos of DeFi.

<figure><img src="https://679438959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWSJjW0RbNohJTdo1T9uY%2Fuploads%2FsHsx0dBxEHexSPS7aTPT%2FSustainable%20Reward%20Generation%20%26%20Distribution.png?alt=media&amp;token=1bcdbe8d-7b67-4ebd-b36c-6cdcf7a5ff16" alt=""><figcaption><p>Dual Stability Mechanism Scenarios</p></figcaption></figure>

## What is the DSM?

The Dual Stability Mechanism (DSM) is the integrated system that enables USC to maintain its $1 peg on external markets while preserving a 1:1 collateralisation ratio with USD against the protocol’s reserves. The DSM considers two main factors:

### 1. USC Price&#x20;

Subject to the market demand for USC and fluctuations in the price of ETH, the market price of USC can trade in the following ways:

{% tabs %}
{% tab title="Above $1" %}

<figure><img src="https://679438959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWSJjW0RbNohJTdo1T9uY%2Fuploads%2FfVmJ8B5HxdyzOPMQBZA7%2FFrame%202095585136.png?alt=media&amp;token=9f18befa-154b-4941-bfbe-e9a241dc7b6f" alt=""><figcaption><p>State of USC Above $1</p></figcaption></figure>

{% hint style="success" %}
USC trades above $1 when:

1. **Increased Market Demand:** Users buy USC from the open market, driving up its price due to higher demand.
2. **ETH Price Appreciation:** The price of ETH rises, causing an imbalance in the USC/ETH liquidity pool on Uniswap (where the USD value of ETH exceeds the quantity of USC in the pool), leading to an upward pressure on USC's price.
   {% endhint %}
   {% endtab %}

{% tab title="At $1" %}

<figure><img src="https://679438959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWSJjW0RbNohJTdo1T9uY%2Fuploads%2Fbw0LVDUgboFSHV9h2oVu%2FFrame%202095585036.png?alt=media&amp;token=e2afe257-981e-442f-9fc5-ffa7e1648ae1" alt=""><figcaption><p>State of USC At $1 </p></figcaption></figure>

{% hint style="success" %}
USC trades at $1 when:

1. **Stable Market Conditions:** There is no significant buy or sell pressure on USC from the open market, maintaining its equilibrium.
2. **ETH Price Stability:** The price of ETH remains constant, and the USC/ETH liquidity pool on Uniswap is balanced, meaning the USD value of ETH equals the quantity of USC in the pool.
   {% endhint %}
   {% endtab %}

{% tab title="Below $1" %}

<figure><img src="https://679438959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWSJjW0RbNohJTdo1T9uY%2Fuploads%2FaXdhmrCobxilSYBUQVSS%2FFrame%202095584730.png?alt=media&amp;token=095ac7ff-d5f3-4207-8460-8bcb998a9fd6" alt=""><figcaption><p>State of USC Below $1 </p></figcaption></figure>

{% hint style="success" %}
USC trades below $1 when:

1. **Increased Selling Pressure:** Users sell USC on the open market, driving its price down due to excess supply.
2. **ETH Price Decline:** The price of ETH decreases, causing an imbalance in the USC/ETH liquidity pool on Uniswap (where the USD value of ETH is less than the quantity of USC in the pool), leading to downward pressure on USC's price.
   {% endhint %}
   {% endtab %}
   {% endtabs %}

### 2. Reserve State&#x20;

Similarly, depending on ETH price fluctuations, the reserves of the protocol can be in the following states:

{% tabs %}
{% tab title="Excess Reserves " %}

<figure><img src="https://679438959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWSJjW0RbNohJTdo1T9uY%2Fuploads%2Fu5mGZDmxcyUgLIc7B4a1%2FFrame%202095585029.png?alt=media&amp;token=ec08f8cf-37fd-4742-8a1d-f855d89aec80" alt=""><figcaption><p>State of Excess Reserves</p></figcaption></figure>

{% hint style="success" %}
**Excess Reserves:** When the price of ETH rises, the value of the protocol's reserves exceeds the total circulating supply of USC (`reserveValue > uscTotalSupplyValue)`. This state indicates that the protocol has more collateral than necessary, providing a buffer that enhances stability.
{% endhint %}
{% endtab %}

{% tab title="Equilibrium Reserves" %}

<figure><img src="https://679438959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWSJjW0RbNohJTdo1T9uY%2Fuploads%2FmmQLlkJy5nbAFyRgGsjf%2FFrame%202095585030.png?alt=media&amp;token=a3a32bfc-4dd6-4da9-85c6-2a58f54b9d30" alt=""><figcaption><p>State of Equilibrium Reserves </p></figcaption></figure>

{% hint style="success" %}
**Balanced Reserves:** When the price of ETH remains stable and the value of the protocol's reserves matches the total circulating supply of USC ( `reserveValue = uscTotalSupplyValue`) the reserves are balanced. In this state, the protocol maintains a 1:1 collateralisation ratio, ensuring that USC is fully backed.
{% endhint %}
{% endtab %}

{% tab title="Deficit Reserves " %}

<figure><img src="https://679438959-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWSJjW0RbNohJTdo1T9uY%2Fuploads%2F9VAYcjl9OEtXsQicWGqi%2FFrame%202095585031.png?alt=media&amp;token=8336238d-984c-4d54-8f6f-ff6c9e73a03c" alt=""><figcaption><p>State of Deficit Reserves </p></figcaption></figure>

{% hint style="success" %}
**Deficit Reserves:** When the price of ETH falls, the value of the protocol's reserves becomes less than the total circulating supply of USC  (`reserveValue < uscTotalSupplyValue`). This state indicates a shortfall in collateral, which may require corrective actions such as reducing the supply of USC to maintain the stability and solvency of the system.
{% endhint %}
{% endtab %}
{% endtabs %}

Based on the combination of market price of USC and the state of the protocol's reserves, the protocol defines and executes internal arbitrage opportunities. These scenarios create a total of nine possible arbitrage opportunities:

<details>

<summary><strong>Above $1:</strong></summary>

* Above $1 and Excess Reserves
* Above $1 and Equilibrium Reserves
* Above $1 and Deficit Reserves

</details>

<details>

<summary><strong>At $1:</strong></summary>

* At $1 and Excess Reserves
* At $1 and Deficit Reserves ( *USC In Arbitrage Contract ≥ Reserves Difference* )
* At $1 and Deficit Reserves (*USC In Arbitrage Contract < Reserve Difference*)

</details>

<details>

<summary><strong>Below $1:</strong> </summary>

* Below $1 and Excess Reserves
* Below $1 and Equilibrium Reserves
* Below $1 and Deficit Reserves

</details>

Following the execution of the arbitrage, USC retains the peg and full collateralisation in LSTs, LRTs, and ETH in USD denomination.

{% hint style="info" %}
**Note:** The delta represents the amount of USC that needs to be sold or bought back from the USC/ETH pool on Uniswap to adjust the price precisely to $1. For a deeper understanding of the mathematical logic behind delta calculation, visit our HackMD technical article: [Quadratic AMM](https://hackmd.io/@IceiDWpdTsmagGXND8BflA/S1D3UhXXa)
{% endhint %}
