QSD Redeeming
When redeeming, the user provides QSD tokens to the system, selects the corresponding collateral, and executes the redemption action. Through redemption, users can use QSD to exchange certain collateral and CEC tokens from the collateral pool. In the initial stage of the system startup, the CEC tokens obtained from redemption will be encapsulated by the CBT token, which can be converted into CEC tokens under certain conditions.
Since Chemix supports multiple collaterals, the system will allow users to choose specific collateral to redeem. If a certain amount of collateral is completely redeemed and the user’s redemption goal cannot be fulfilled, the user can continue to select other collateral for redemption until all redemption operations are completed.
Redeeming QSD is done by rearranging the previous system of equations, and solving for the units of collateral,
, and the units of CBT.
Yi=QCrPiY_i = {\frac{Q*C_r}{P_{i}}}
CBT=Q(1Cr)PECBT = {\frac{Q*(1-C_r)}{P_E}}
is the ratio of the total value of collateral
to the total value of all collateral assets;
is the units of collateral
in the system;
is the price of collateral
is the units of QSD redeemed;
is the ratio of the collateral in the protocol;
is the number of CBT tokens minted when redeeming;
is the market price of the CEC token, provided by the weighted average prices of DEX pool.
Example C
On the Binance Smart Chain, if 10,000 QSD are needed to redeem, there are total collateral of 20,000,000 BUSD( $1/BUSD), 5,000,000 BNB($40/BNB), and 1,500 BTCB($37,000/BTCB) in the system, and the proportion of collateral ratio is 50%. The price of CEC is $0.5/CEC.
If the redemption collateral selected by the user at the beginning is BTCB, there are:
YBTCB=10,000×0.537,000=0.135135135Y_{BTCB} = \frac{10,000×0.5}{37,000} = 0.135135135
CBT=10,000×(10.5)0.5=10,000CBT = \frac{10,000×(1-0.5)}{0.5} = 10,000
Under the above conditions, redeeming 10,000 QSD will get 0.135135135 BTCB, and newly-minted 10,000 CBT to the redeemer.
Copy link