Home
Constant Value Trading Protocol Introduction
The reason for exchange is the mismatch between quantity and value, automatically matched through market mechanisms
🔹 Step 1: Definition Introduction
Let:
- : Current total value of Token A (unit: e.g., USD)
- : Current total quantity of Token A
- , : Total value and quantity of Token B
- : Quantity of A that the user wants to invest
- : Value transferred in this exchange (from A to B)
- : Quantity of B exchanged from the pool based on value transfer
🔹 Step 2: Formula Under Equal Value Conditions
Split commodity b according to the quantity of a, then exchange Δa portions
🔹 Step 3: Derivation of Exchange Formula Under Unequal Value Conditions
🔹 Step 4: Update Token A and B Values and Quantities After Trading
Token A | Token B | |
---|---|---|
Value | ||
Quantity |
🔹 Step 5: New Exchange Ratio After Trading
- After trading completion, new marginal values:
- New exchange ratio:
Contact Information
Twitter:@ttswapfinance
Telegram:@ttswapfinance
Email:bussiness@ttswap.io
Discord:ttswap
Github:ttswap
Website:ttswap.io
Welcome everyone to join our community