Pool Types
1. AMM V4 (Legacy)
- Requires OpenBook marketID
- Traditional AMM model
- Supports standard SPL tokens
2. CLMM (Concentrated Liquidity)
- Custom liquidity ranges
- Increased capital efficiency
- Supports price range specification
3. CPMM (Constant Product)
- Newest pool type
- Supports Token-2022 standard
- No OpenBook market requirement
Usage
AMM V4
CLMM
CPMM
Example Prompts
Natural Language Prompts
LangChain Tool Prompts
AMM V4
CLMM
CPMM
Pool-Specific Details
AMM V4
CLMM
CPMM
Implementation Details
Common Features
- Automatic mint verification
- Decimal handling
- Fee configuration
- Transaction versioning
Pool-Specific Features
- AMM V4: OpenBook integration
- CLMM: Tick range management
- CPMM: Token-2022 support
Error Handling
Best Practices
-
Pool Type Selection
- Use CPMM for Token-2022
- Use CLMM for efficient ranges
- Use AMM V4 for OpenBook integration
-
Initial Liquidity
- Calculate appropriate amounts
- Consider token decimals
- Monitor price impact
- Verify token balances
-
Configuration
- Set appropriate fees
- Choose tick spacing
- Plan start time
- Consider trading volume
-
Security
- Validate all addresses
- Check token programs
- Verify configurations
- Monitor transactions
Common Issues
-
Setup Issues
- Invalid market ID
- Insufficient liquidity
- Wrong token program
- Incorrect decimals
-
Transaction Failures
- Network congestion
- Invalid parameters
- Configuration errors
- Insufficient funds
-
Permission Issues
- Missing approvals
- Wrong signers
- Invalid authority
- Program restrictions
Common Token Addresses
- USDC:
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
- SOL:
So11111111111111111111111111111111111111112
- USDT:
Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
- RAY:
4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R