> For the complete documentation index, see [llms.txt](https://docs.rate-x.io/ratex/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rate-x.io/ratex/ratex-protocol/basic-concepts-of-yield-trading/yield-distribution.md).

# Yield Distribution

## Mint of YT and ST:

YT and ST are minted based on collateral deposited by the issuer, who borrows against the collateral from the protocol. This ensures that the issuance is backed by sufficient assets, maintaining the integrity and value of YT and ST.

## Yield Calculation for ST and YT

In this section, we will explain how the yield for ST and YT is generated and calculated, as well as the sources of the yield.

**Yield Calculation:**

The yield received by an ST over a certain period is calculated based on two main parameters:

1\. **Actual Rate of Return:** This refers to the actual APY/APR data of an underlying YBA over a given period. We use this data to calculate the amount of yield that should be distributed to the holders of ST and YT.

2\. **Yield Calculation Time Interval:** This is the period over which the yield is accumulated and calculated.

At the end of each time interval, RateX rebalances the number of YTs and STs in the AMM to align with the yield payments made to ST and YT holders. This update may cause a brief suspension of trading in the corresponding contract to ensure accurate adjustments.

**Yield Distribution:**

After the yield is calculated, issuers of YTs and STs distribute the yield to holders of YTs and STs. The process of issue YTs and STs is based on&#x20;

For example:

Before Yield Distribution:

* YT Holders: A YT
* ST Holders: B ST

If the Rate of return (not annualized) is 0.1 %, after Yield Distribution, :

* YT Holders: *A* YT + 0.1 %×A ST
* ST Holders: B × *(1 + 0.1%)* ST

For the issuers of YT and ST, the yield distribution process works in reverse, meaning their liabilities increase in proportion to the accrued yield, mirroring the increase in holdings for the holders.\
From the above results, it can be seen that when holders possess the same amount of YT and ST, the yields they obtain are identical. By holding YT, traders have the potential to considerably elevate their capital efficiency and generate augmented returns.&#x20;


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.rate-x.io/ratex/ratex-protocol/basic-concepts-of-yield-trading/yield-distribution.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
