FAQ
Last updated
Last updated
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.
PnL is calculated based on the following equation:
The entry price is expressed by:
The PnL% shows the ratio of PnL to the deposited margin:
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:
where the Distributed Yield is calculated by:
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.
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.