> For the complete documentation index, see [llms.txt](https://docs.rwa.vip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rwa.vip/iii.-rwa-ecosystem-protocol-operation-mechanisms/sale-contract.md).

# Sale Contract

According to the Treasury contract, each RWA minted is anchored to 1 USDT. When 1 RWA > 1 USDT, the protocol will mint and sell more RWA; when 1 RWA < 1 USDT, the protocol will buy back RWA. This anchoring is achieved through an inflationary or deflationary model. At the same time, regardless of whether the price of RWA is higher or lower than 1 USDT, the RWA Ecosystem protocol can benefit from both scenarios.

*The formulas for RWA minting and buyback are as follows:*

$$
Minting：epochMint = (TWAP–IV) supply  ICV  Discount
$$

$$
Rebuy：epochBurn =（TWAP–IV） supply  DCV  Discount
$$

{% hint style="info" %}
TWAP: Time-Weighted Average Price

IV: RWA Support Price

Supply: Incremental Treasury risk-free assets

ICV: Inflation Coefficient

DCV: Deflation Coefficient

Discount: Discount \
(Treasury risk-free asset increase relies on bond sales, which have discounts; detailed in the bond contract)
{% endhint %}

When 1 RWA > 1 USDT, or 1 RWA < 1 USDT, the RWA Ecosystem sales contract becomes effective, and the protocol will mint or buy back RWA. Users can then buy or sell RWA through the protocol.

The RWA Ecosystem protocol will check if the current epoch has ended. Each epoch lasts approximately 12 hours. If the epoch has ended, the protocol will send a transaction request (either minting or buyback) to the RWA Ecosystem treasury, based on the TWAP (Time-Weighted Average Price) of RWA.

If the protocol does not have enough RWA or USDT to fulfill the user's transaction, the remaining transaction will be completed through the RWA's DEX pool.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.rwa.vip/iii.-rwa-ecosystem-protocol-operation-mechanisms/sale-contract.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.
