Add Liquidity
Overview
Adding liquidity is the process of providing token reserves for JAMM DEX trading pairs. Liquidity providers (LPs) deposit two types of tokens to receive LP tokens, which represent their share in the pool and allow them to earn trading fee rewards.
Basic Liquidity Concepts
What is Liquidity
Liquidity refers to the amount of tokens available for trading in a trading pair. Higher liquidity means:
Smaller price impact
Lower slippage
Better trading experience
LP Tokens
When you add liquidity, you receive LP tokens as proof:
LP token amount represents your share in the pool
You can redeem corresponding token pairs with LP tokens at any time
LP tokens themselves are ERC-20 tokens and can be transferred
Liquidity Mining Rewards
Sources of income for liquidity providers:
Trading Fees: Fees from each trade are distributed proportionally to LPs
Referral Rewards: Additional rewards if there's a referral system
Price Appreciation: If token prices rise, LP value also increases
Ways to Add Liquidity
1. Token Pair Liquidity
The most common way to add liquidity, requiring two types of tokens:
2. JU + Token Liquidity
Adding liquidity for JU and ERC-20 tokens:
First-time Liquidity Addition
Creating New Trading Pairs
If a trading pair doesn't exist, it will be automatically created when adding liquidity:
Initial Price Setting
When adding liquidity for the first time, the token ratio you set determines the initial price:
Subsequent Liquidity Addition
Adding According to Existing Ratio
For trading pairs with existing liquidity, you need to add according to the existing ratio:
Single-sided Addition Optimization
When you only have one type of token, you can first swap part of it to get the other token:
Advanced Features
Adding Liquidity with Permit
Avoid pre-approval and add liquidity directly through signatures:
Batch Liquidity Addition
Add liquidity to multiple trading pairs simultaneously:
Liquidity Calculations
LP Token Amount Calculation
Value Calculation
Monitoring and Analysis
Liquidity Event Monitoring
Yield Analysis
Best Practices
1. Risk Management
2. Optimal Addition Strategy
3. Gas Optimization
Last updated