Parameter Validation
Invalid Value Type
Issue: Getting validation errors when adding slippage tolerance parameter.Error
❌ Wrong
✅ Correct
Value Too High
Issue: Setting slippage tolerance above reasonable levels.❌ Wrong
✅ Correct
Quote Still Failing
Issue: Transactions still failing despite setting slippage tolerance.Problem | Likely Cause | Solution |
---|---|---|
Slippage too low | Market moving faster than tolerance | Increase slippage tolerance |
Network congestion | High gas costs affecting execution | Wait for lower congestion |
Large trade size | Price impact exceeding slippage | Break into smaller trades |
Volatile market | Rapid price movements | Use higher slippage |
Simple Retry Pattern
Choosing Appropriate Values
Issue: Unsure what slippage values to use for different scenarios.Recommended Values
Stablecoins
10-50 basis pointsUSDC ↔ USDT:
10
(0.1%)DAI ↔ USDC: 25
(0.25%)Major Tokens
50-100 basis pointsETH ↔ USDC:
100
(1%)BTC ↔ ETH: 100
(1%)Volatile Assets
100-500 basis pointsAltcoins:
300
(3%)New tokens: 500
(5%)Asset Classification Helper
Integration Issues
React State Management
Basic Error Handling
Best Practices
1
Start Conservative
Begin with 1% (100 basis points) for most use cases
2
Asset-Specific Values
Use lower slippage for stablecoins, higher for volatile tokens
3
Implement Retry
Add automatic retry with progressive slippage increases
4
Monitor Performance
Track success rates and adjust defaults based on real data
Getting Help
Still Having Issues?
Use the Intercom chat widget in the bottom right corner for instant help, or email support@onebalance.io.
Share Information
Include your slippage values, error messages, and asset pair information for faster resolution.
Most issues can be resolved by starting with 100 basis points (1%) and implementing simple retry logic with higher values.