Why Solver V2?
Compare Solver V1 and V2 to see how our enhanced solver provides better trade selection, risk management, and profit optimization.
| Feature | Solver V1 | Solver V2 |
|---|---|---|
Balance Check Enhanced | Enhanced | |
Fee Check Enhanced (min threshold) | Enhanced (min threshold) | |
Conditional Execution Price, time, balance, custom | Price, time, balance, custom | |
Risk Management 4 risk types assessed | 4 risk types assessed | |
Profit Optimization Gas + opportunity cost | Gas + opportunity cost | |
Trade Ranking By profitability score | By profitability score | |
Price Oracle With caching | With caching | |
Gas Estimation Per-chain estimates | Per-chain estimates | |
Execution Order | First found | Best score first |
Solver V1
Simple, fast, and predictable. Perfect for basic swaps with minimal overhead. Executes trades in order found with basic balance and fee checks.
~200 lines • ~1-5ms per transfer
Solver V2
Enhanced with conditional execution and intelligent optimization. Maximizes profit through risk management, smart scoring, and trade ranking. Perfect for production use.
~750 lines • ~10-50ms per transfer
When to Use Which?
Use Solver V1 when:
- •You want simple, predictable behavior
- •You don't need conditions or optimization
- •You want minimal overhead
- •You're testing/debugging
Use Solver V2 when:
- •You want to maximize profit
- •You need conditional execution (limit orders, scheduled swaps)
- •You want risk protection
- •You're running in production