How Liquidity Pools Work
Discover the mathematics powering decentralized automated market making. Explore the Constant Product Formula x · y = k, TidoEx AMM v4.0 Virtual Reserves, LP share fee compounding, and impermanent loss mitigation.
The Evolution: Order Books vs. Liquidity Pools
In financial markets, trading requires two counterparties to agree on price and volume. Traditional exchanges use a Central Limit Order Book (CLOB), whereas decentralized exchanges utilize Automated Market Makers (AMM).
Central Limit Order Book (CLOB)
- Peer-to-Peer Matching: A buyer must wait for an exact matching seller at the designated price.
- Market Maker Dependent: Relies on institutional market makers to post resting limit orders.
- Illiquid in Niche Pairs: Newly listed or small-cap assets suffer wide bid-ask spreads and severe execution gaps.
Automated Market Maker (AMM)
- Peer-to-Contract Trading: Trades execute deterministically against pooled token reserves without waiting for counterparties.
- Continuous 24/7 Liquidity: Mathematical algorithms price trades continuously based on pool reserve ratios.
- Democratized Yield: Any user can deposit tokens into the pool to earn proportional shares of trading fees.
The TidoEx Hybrid Architecture Advantage
Instead of forcing users into an either/or choice, TidoEx seamlessly synchronizes the limit order book with on-chain AMM pools. Our trading engine decomposes AMM reserves into optimal order book depth levels, ensuring maximum liquidity and institutional execution quality for every trader.
The Constant Product Invariant: x · y = k
At the heart of modern liquidity pools lies the Constant Product Market Maker (CPMM) equation popularized by Vitalik Buterin and Uniswap.
Marginal Spot Price
The instantaneous spot price of the base token in terms of quote currency is the ratio of quote reserves to base reserves:
If an ETH/USDT pool holds 20 ETH and 50,000 USDT, the spot price is P = 50,000 / 20 = 2,500 USDT per ETH.
Output Amount with Fee (f = 0.60%)
When depositing token amount Δx, the pool takes a 0.6% fee (effective input Δx·(1-f)). The trader receives:
The invariant k expands after each swap, continuously rewarding liquidity providers.
Step-by-Step Trade Walkthrough
y = 25,000 USDT
k = 250,000
Pool needs new x' = 9.0 ETH
y' = 27,777.78 USDT
Effective Price: $2,777.78
Slippage: ~11.1%
Notice: Buying 10% of the pool's entire base inventory moved the spot price from $2,500 to $3,086.42! This is why deeper liquidity pools are vital for dampening price slippage.
TidoEx AMM v4.0: CPMM + Virtual Reserve Bonding Curve
Standard AMM pools encounter the "Cold Start Problem": newly created token listings lack deep liquidity, making them vulnerable to front-running, high slippage, and liquidity-draining attacks. AMM v4.0 solves this natively.
Virtual Reserve Injection
By configuring virtual reserves v_base and v_quote, the effective invariant becomes (x + v_x)·(y + v_y) = k_eff. This simulates deep liquidity depth even when real deposited capital is modest.
Slippage Dampening
The virtual reserve curve smooths the derivative dP/dx. Swapping a noticeable fraction of real reserves does not spike the price exponentially, protecting retail traders from predatory MEV slippage.
Graceful Curve Graduation
As independent LPs deposit real capital and trading volume surges, the real reserve pool naturally overwhelms the virtual baseline. The curve seamlessly matures into pure constant-product dynamics without manual migration.
LP Tokens, Shares & Fee Compounding
When you deposit assets into a TidoEx pool, you become a Liquidity Provider (LP) and receive LP Shares representing your fractional ownership of the entire pool.
0.60% Direct Fee Distribution
Unlike platforms that siphon fees to protocol treasuries, TidoEx directs 100% of the pool fee directly into the reserve balances. This creates continuous auto-compounding:
Pro-Rata Share Formula
When providing liquidity, you must deposit both assets in proportion to current reserves. Your minted shares are calculated via:
When you withdraw, burning your shares redeems your exact percentage of the pool's expanded total reserves.
Understanding Impermanent Loss (IL)
Impermanent Loss is the temporary difference in value between depositing assets in a liquidity pool versus holding them in a private wallet. It happens whenever the relative market price between the two tokens diverges from their entry ratio.
| Price Ratio (r) | Price Movement | Impermanent Loss | Breakeven Volume/APY |
|---|---|---|---|
| 1.25x | +25% increase | -0.60% | Easily offset in days |
| 1.50x | +50% increase | -2.02% | Offset by ~2% fee yield |
| 1.75x | +75% increase | -3.76% | Offset by ~3.8% fee yield |
| 2.00x | +100% (2x Doubled) | -5.72% | Offset in 1-2 months |
| 3.00x | +200% (3x Tripled) | -13.40% | High volume pools outpace this |
| 4.00x | +300% (4x) | -20.00% | Offset by ~20% fee yield |
| 5.00x | +400% (5x) | -25.46% | Offset by ~25% fee yield |
| 0.50x | -50% (Halved) | -5.72% | Symmetric to 2x price increase |
Why is it called "Impermanent"? If the relative price returns to your original deposit ratio, the loss completely disappears! Even when prices diverge permanently, high trading volume generates substantial 0.60% fee yields that frequently turn total net returns positive.
Interactive Yield & Impermanent Loss Simulator
Test different market conditions to see your exact fee yields and net return.
How to Provide Liquidity on TidoEx
Start earning passive trading yields on your crypto assets in five simple steps.
Deposit Assets
Deposit your base asset (e.g. BTC, ETH, MEWC) and quote asset (USDT) to your TidoEx wallet with zero deposit fees.
Select a Pool
Navigate to the AMM Pools overview. Review TVL, 24h volume, and 7d/30d historical APYs to pick your desired pair.
Enter Balanced Amount
Enter your deposit amount. The interface automatically calculates the matching counterpart using the live reserve spot price.
Mint LP Shares
Confirm your transaction. Your LP shares are immediately credited, and your capital begins generating yield on the very next matched trade.
Withdraw Anytime
Whenever you wish to cash out, enter your desired share redemption percentage. Burn your LP shares to instantly receive your base and quote coins back.
Frequently Asked Questions
Start Earning Liquidity Yield on TidoEx Today
Deposit assets into verified pools, enjoy continuous automated compounding, and withdraw anytime with zero lock-in periods.