User document
This documentation provides users with an understanding of TTSWAP's operational mechanics, design rationale, and implementation guidelines.
✅ I. What is TTSWAP?
TTSWAP is a decentralized token trading platform where anyone can quickly and safely exchange one token for another without relying on centralized exchanges. It operates entirely through smart contracts, eliminating intermediaries, with prices automatically determined by protocol trading. This innovative mechanism is called the "Constant Value Trading Protocol," making the trading process more transparent, fair, and stable.
💪 What Can You Do on TTSWAP?
- Freely Exchange Any Token
No need for intermediate tokens (like USDT), you can directly exchange Token A for Token B - simple, fast, and slippage-free. - Provide Risk-Free Liquidity, Earn Returns
If you're bullish on a token, you can deposit it into the protocol to earn fee rebates and platform token mining rewards; withdraw anytime without loss. - Provide Liquidity to TTSWAP, Secondary Mining of TTS Tokens
Provide liquidity to TTSWAP, enjoy secondary mining of TTS, participate in early project development, and receive higher returns. - Refer New Users to TTSWAP, Permanently Enjoy Fee Sharing
Referral relationships are stored in the token contract, unbreakable and unchangeable, ensuring permanent fee sharing. - Operate Tokens in TTSWAP, Enjoy Token Trading Dividends
Add tokens to the protocol, become a token operator, and enjoy fee sharing from that token's trading. - Create Your Own Portal Through TTSWAP, Provide Convenience for Users
Provide high-quality, high-standard services for your large private domain traffic, earning service revenue. - Integrate TTSWAP to Create Your Own Application, Expand TTSWAP Ecosystem
TTSWAP is an open community, allowing developers to integrate it into their applications, expanding the TTSWAP ecosystem. - Hold TTS Tokens, Enjoy Community Growth Benefits
TTS tokens are goal-oriented deflationary tokens. Besides market purchases, public sales, and liquidity mining, tokens obtained through other means can only be unlocked when the price increases. Meanwhile, community profits are used for token burning, protecting token holders' rights. Token holders also have proposal rights, voting rights, and community supervision rights.
📘 Summary
TTSWAP is committed to building a Web3 token exchange platform that is:
- Low transaction costs
- No intermediaries
- Fair, open, and transparent
- Encouraging win-win cooperation
✅ II. Why Choose TTSWAP?
TTSWAP not only allows you to conveniently and safely exchange tokens but also offers these 10 advantages, making every transaction more efficient and cost-effective.
🌐 1. Stable Prices, No Slippage Worries
In TTSWAP, small transactions won't result in "losses" due to price fluctuations - what you estimate is what you get, making trading more controllable.
💧 2. All Tokens Share Liquidity, More Freedom in Trading
You no longer need to establish trading pairs one by one, nor worry about "insufficient liquidity in small pools." TTSWAP allows all pairs of the same token to share a super pool, making trading faster and smoother.
🛡️ 3. No Impermanent Loss, LP Providers Feel Secure
On other platforms, providing liquidity can lead to losses due to price fluctuations, known as impermanent loss. TTSWAP's mechanism effectively avoids this issue, ensuring your investment doesn't decrease.
⛽ 4. 50%-90% Gas Fee Savings
Streamlined smart contract structure and optimized calculation logic make every transaction more economical than traditional platforms - the gas savings are visible.
🔁 5. Direct ETH Support, Eliminating Hassle
You can trade directly with ETH without first converting to WETH (wrapped ETH), making it more convenient in one step.
💰 6. Every Investment Can Mine (TTS)
When you invest tokens, the system automatically calculates and starts secondary mining based on your invested value, earning additional TTS rewards.
🌱 7. Investment Returns Can Stack with ETH Staking Rewards
After depositing ETH into the SETH/SWETH pool, the system automatically stakes unused funds in Rocketpool, enjoying an additional 3-5% annual return.
📊 8. Everyone Can Participate, Fees Automatically Distributed by Role
Are you a user, referral, portal, liquidity provider, or token operator? Everyone gets a certain percentage of fee sharing, everyone can participate.
🧱 9. Modular, Flexible Configuration, Easy Integration
Simple protocol interface, convenient calls, while each token's parameters, fees, and mining ratios can be flexibly set, providing more freedom for project parties and developers.
💎 10. TTS Token is a Goal-Oriented Deflationary Token
TTS has a fixed total supply, all initially locked, unlocked only when price increases. Community profits are used for token burning, shared by token holders.
👥 11. Community-Driven, User-Led Future
TTSWAP doesn't belong to any company, it belongs to the community. Project development direction and reward mechanisms are driven by community consensus.
✅ III. What's the Operating Logic Behind It?
🧠 1. Explained in One Sentence
TTSWAP's core mechanism is called the Constant Value Model, also known as the Multi-Asset Dynamic Balance Model. It ensures that during each token exchange, the "total market value" of both sides is equal. Trading is like a balance scale - you give how much value, you get back equal value in another token.
📊 2. Analogy Explanation
Imagine going to a fruit market with $10 to buy apples:
- If apples are expensive at $10 per pound, you can only buy 1 pound.
- If apples are cheap at $5 per pound, you can buy 2 pounds.
TTSWAP operates similarly. The difference is that it doesn't use fiat currency pricing but automatically calculates exchange rates based on existing token quantities and values in the market. The system uses the following formula to keep prices fair as supply and demand change.
⚖️ 3. Compute the input token value
🔄 4. How is the Exchange Rate Calculated?
The system determines how much A you need to exchange for B based on:
- The quantity of each token in the pool
- The current market value of each token
📐 5. What are "No Slippage" and "Trading Threshold"?
In TTSWAP, if your transaction amount is below a certain threshold, the system won't batch match orders but execute at the current price in one go. This avoids "slippage" (where you thought you could buy 10 but only got 9).
🔄 6. Visual Trading Process
- How price P changes with buying and selling
P changes with trading behavior - [Figure 2] Why Total Value Remains Constant
The value lost by one token transfers to another, as total value remains unchanged - [Figure 3] How Multiple Tokens Interact to Affect Prices
When one token's P changes, its relative relationship with other tokens also changes
✅ IV. How to Invest in Tokens and Earn Returns?
On TTSWAP, you can not only trade tokens but also "deposit to earn returns." The platform rewards you with fee sharing + TTS mining rewards based on your token deposits.
🔹 1. Each Token Has Two Core Attributes:
- Market Value: What the market currently thinks this token is worth
- Quantity: How many of this token are in the pool
💡 These two data points determine how much return users can earn after investing and the exchange rate.
🧩 2. Tokens Are Divided into Three Categories, Choose Your Participation Method:
| Token Type | What is it | What can you do | Fee Returns | Supports Solo Investment |
|---|---|---|---|---|
| 🌱 Meta Token | First token added to protocol | Serves as liquidity base | ✅ Yes | ✅ Yes |
| 🌟 Value Token | Market-recognized tokens with ecosystem support (like ETH) | Independent investment, independent earnings | ✅ Yes | ✅ Yes |
| 📦 Regular Token | User-added tokens, pending market validation | Must be invested alongside Value Tokens | ✅ Yes | ❌ No |
💡 3. How to Invest?
- Choose the token you want to support
- Deposit a certain amount of that token (if it's a Regular Token, you need to deposit an equivalent amount of Value Token)
- Wait for returns: You'll receive:
- Fee sharing from each transaction
- TTS tokens from liquidity mining
📤 4. How to Withdraw?
You can withdraw your invested tokens anytime, and the system will distribute accumulated returns based on your investment time and proportion.
⚠️ To prevent sudden large withdrawals from affecting the system, single withdrawals cannot exceed a certain percentage of the current pool (known as "withdrawal slice" limit).
🛡️ 5. Why Must Regular Tokens Be Paired with Value Tokens?
Because Regular Tokens have high price volatility and are susceptible to arbitrage. To protect investors, the system requires:
- When investing Regular Tokens, you must pair with an equivalent amount of "Value Token"
- These two types of tokens record returns separately, and you can view and withdraw them separately
💵 6. Investment Process Diagram
- You select a token and input quantity
- System calculates corresponding investment value based on market value
- Successful investment, start accumulating returns (fees + TTS)
✅ V. How Do You Exchange Token for Token?
TTSWAP allows you to exchange one token (like A) for another (like B) anytime, with the trading process independent of intermediaries and no need to wait for order matching.
🔁 1. Exchange Logic: Using "Market Value" Instead of Fixed Prices
Each token has:
- Current quantity in pool (how many A, how many B)
- Current market value (is this token popular? Are people buying it?)
The system completes transactions based on "market value of token given = market value of token received."
Example:
You exchange 2500 A for B, the system calculates how much 2500 A is worth (say 0.01), and gives you 10,000 B.
📉 2. Why Does Price Increase with More Purchases?
Each exchange changes the pool's state:
- Given token quantity increases → its market value decreases
- Received token quantity decreases → its market value increases
So next time you exchange, the same amount of A might not get you as many B.
💡 Analogy: Like when you buy more of a fruit, the vendor thinks it's in high demand and raises the price.
📊 3. Real-time Price Calculation Illustration
The system actually executes this formula:
You don't need to memorize this! Just know it ensures fair exchanges without black-box pricing.
⛽ 4. Does Price Change After Every Transaction?
Yes, but the system splits large transactions into multiple small ones, preventing sudden price spikes or drops, avoiding slippage losses.
This is the core logic behind TTSWAP's "slippage-free trading":
As long as your transaction amount doesn't exceed a certain threshold (system-set "slice value"), each transaction executes at a stable price.
📘 Additional Notes:
- All transactions are automatically calculated on-chain, public, transparent, and verifiable
- No need to wait for order matching, no "failed orders"
- No "bot front-running," your transactions are processed in real-time according to rules
✅ VI. How to Invest, Earn, and Withdraw?
On TTSWAP, besides trading tokens, you can earn fees and TTS token rewards through "investing." It's like depositing money in a bank, but you get both interest and additional dividends.
💡 1. What is "Investing"?
Investing = depositing your tokens into the platform's pool for other users to trade with, while earning returns. The more you deposit and the longer you hold, the more you earn. The system records two core data points:
- 📈 Market value at investment time
- 📦 Amount of tokens deposited
📌 2. Two Types of Investment
| Investment Type | Description | Return Source | Requires Pairing |
|---|---|---|---|
| 🌟 Value Token Investment | Deposit mainstream tokens like ETH | Fee sharing + TTS mining | No |
| 🔍 Regular Token Investment | Deposit new project tokens | Fee sharing + TTS mining | ✅ Requires Value Token pairing |
💰 3. How to Earn Returns After Investing?
The system continuously records fees generated from trading and distributes them according to your investment proportion.
You also receive platform tokens TTS as mining rewards.