FAQ

I entered a long YT position. Why do I also have a negative ST position?

The RateX AMM is constructed with a YT/ST pair. This means you need to use ST to exchange for YT. When a trader wants to long YT, they borrow some ST from the protocol, perform the swap, then use the swapped YT and deposited margin as collateral for the borrowed ST. The borrowed ST is displayed as a negative position.

On the other hand, when a trader enters a short YT position, a long ST position will also be displayed for the same reason.

How is PnL calculated?

PnL is calculated based on the following equation:

\text{PnL} = \text{YT_Position} \times (\text{YT_Price}_{\text{current}} - \text{YT_Price}_{\text{entry}})

The entry price is expressed by:

\text{YT_Price}_{\text{entry}} = - \frac{\text{ST_Position}}{\text{YT_Position}}

The PnL% shows the ratio of PnL to the deposited margin:

PnL%=(PnLDeposited Margin)×100%\text{PnL\%} = \left( \frac{\text{PnL}}{\text{Deposited Margin}} \right) \times 100\%

Why does my entry price change?

At the end of each yield calculation time interval, issuers of YTs and STs distribute the yield to holders based on the actual rate of return. For example, a trader with a long YT position would receive the accrued yield paid in ST, which would be used to offset the borrowed ST position automatically and result in a change in the ST position. The process can be described in the following equations:

\text{New ST_Position} = \text{Old ST_Position}+ \text{DistributedYield}

where the Distributed Yield is calculated by:

\text{DistributedYield} = (\text{Old ST_Position} + \text{YT_Position}) \times \text{ActRtn}

where ActRtn indicates the actual rate of return of the yield calculation time interval. Since the ST position changes due to the yield distribution, the entry price changes accordingly.

Why is the maximum leverage sometimes less than 10 times?

RateX uses a Time-Weighted Average Price (TWAP) Collateral Ratio (CR) to determine if liquidation should be triggered. Sometimes, especially when the YT price significantly rises or falls, the margin may meet the Initial CR, which uses the current price, but fail to meet the Maintenance CR, which uses the TWAP price. In such cases, RateX lowers the maximum leverage to prevent immediate liquidation.

Last updated