TidoExTidoEx
Educational Guide & Architecture

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.

Fundamental Concepts

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).

Traditional Finance

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.
Decentralized Finance

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.

Core Mathematical Engine

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.

The Invariant Formula
x · y = k
x
Base Asset Reserve (e.g. BTC, ETH, MEWC)
y
Quote Asset Reserve (e.g. USDT)
k
Fixed Product Constant (increases via trading fees)
Spot Price Determination

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:

P = y / x

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.

Swap Execution Math

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:

Δy = (y · 0.994 · Δx) / (x + 0.994 · Δx)

The invariant k expands after each swap, continuously rewarding liquidity providers.

Step-by-Step Trade Walkthrough

1. Initial Statex = 10 ETH
y = 25,000 USDT
k = 250,000
2. Trader ActionBuys 1.0 ETH.
Pool needs new x' = 9.0 ETH
3. Invariant Solves y'y' = 250,000 / 9
y' = 27,777.78 USDT
4. Cost & ImpactTrader pays $2,777.78
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.

Next-Generation Architecture

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.

01

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.

02

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.

03

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.

Liquidity Provider Returns

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:

Every Swap Fee:0.60% (60 bps)
Distribution Mechanism:Compounded into pool reserves
Claim Requirements:Redeemed automatically upon withdrawal

Pro-Rata Share Formula

When providing liquidity, you must deposit both assets in proportion to current reserves. Your minted shares are calculated via:

Shares = TotalShares · min(Δx / x, Δy / y)

When you withdraw, burning your shares redeems your exact percentage of the pool's expanded total reserves.

Risk Management & Mechanics

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.

The Impermanent Loss Equationr = P_new / P_initial
IL(r) = (2 · √r) / (1 + r) − 1
Price Ratio (r)Price MovementImpermanent LossBreakeven 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.

Initial Deposit Amount (USD)$1,000
Base Token Price Change Multiplier2.00x (100%)
0.2x (-80%)1.0x (No change)5.0x (+400%)
Estimated Pool APY (From Trading Fees)24.0%
Holding Duration12 Months
Simulation Results
Impermanent Loss (IL):-5.72%
Accrued 0.6% Fee Earnings:+$339.41
If simply held in wallet (HODL):$1500.00
Final LP Value (Pool + Fees):$1753.62
LP vs. Plain HODL Advantage:+$253.62 (Better)
✓ In this scenario, high trading fee yields ($339) exceed the impermanent loss, yielding an additional $254 over holding!
User Walkthrough

How to Provide Liquidity on TidoEx

Start earning passive trading yields on your crypto assets in five simple steps.

STEP 01

Deposit Assets

Deposit your base asset (e.g. BTC, ETH, MEWC) and quote asset (USDT) to your TidoEx wallet with zero deposit fees.

STEP 02

Select a Pool

Navigate to the AMM Pools overview. Review TVL, 24h volume, and 7d/30d historical APYs to pick your desired pair.

STEP 03

Enter Balanced Amount

Enter your deposit amount. The interface automatically calculates the matching counterpart using the live reserve spot price.

STEP 04

Mint LP Shares

Confirm your transaction. Your LP shares are immediately credited, and your capital begins generating yield on the very next matched trade.

STEP 05

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.

Ready to begin?Go to AMM Pools
Questions & Answers

Frequently Asked Questions

No. Liquidity providers on TidoEx retain 100% custody of their deposited capital. You can deposit, claim accrued rewards, and withdraw your proportional base and quote reserves at any second with zero withdrawal lockups or hidden penalties.

Start Earning Liquidity Yield on TidoEx Today

Deposit assets into verified pools, enjoy continuous automated compounding, and withdraw anytime with zero lock-in periods.