Split Trade Comparison Page Description
This update is still in a non-final state, but it is already functional for comparison purposes. Feedback and suggestions are welcome.
1. Comparison Principle
This page compares quote quality across different aggregators using three key metrics:
- Retrieve from API:
AmountOutAmountMinOut- Route data
- Send route data to a smart contract for on-chain simulation execution
- Obtain simulation results via a third-party RPC (with state override support):
RealAmountOut
Ultimately, the system compares the following three values:
- AmountOut
- Source: API response
- Nature: Pre-execution quote (not a final on-chain result)
- Reliability: Low
- AmountMinOut
- Source: Platform calculation
- Meaning: Minimum acceptable output (transactions revert below this value)
- Nature: Slippage protection value, more meaningful for reference
- RealAmountOut
- Source: RPC simulation execution result
- Condition: If liquidity does not change in the next block, this can be treated as the actual execution output
- Reliability: Highest
2. Previous Verification Architecture
The SwaptoX execution path is based on a custom executor contract:
- Swap executor:
Rootstock address details for 0x628f59C0f6dFc4ba3091c6cA1d83C6bf33A552d1 | Blockscout - Simulation entry contract:
Rootstock address details for 0xE10cf148b9d77916b81FbF0685AABC2fAa25246C | Blockscout
This simulation contract has the following characteristics:
- Supports both SwaptoX and OpenOcean executors
- Each route execution is immediately reverted to ensure a clean simulation state
- Enables simulation execution via RPC
state override, allowing virtual fund injection without real transfers
3. Comparison Rules
Using AmountOut as an example:
- SwaptoX vs OpenOcean are compared directly
- The higher output value wins 1 point
- If equal, no points are awarded to either side
The same scoring logic applies to AmountMinOut and RealAmountOut.
4. Result Analysis
1. Why OpenOcean Often Shows Higher AmountOut
In most cases, OpenOcean’s AmountOut appears slightly higher.
This is mainly because:
- OpenOcean applies an additional ~0.1% adjustment on top of the user-defined slippage
- This inflates quoted output values
- It may be related to its fee or routing mechanism
- The effective fee model appears dynamic rather than fixed
2. Performance on Base Network
On Base:
- SwaptoX win rate is approximately 70%–80%
- Main reasons:
- SwaptoX currently does not charge fees
- OpenOcean appears to include implicit fee/slippage adjustments (~0.1%)
- In a liquidity-rich environment, these results are relatively representative
3. Performance on Rootstock
On Rootstock:
- SwaptoX win rate is approximately 50%–60%
- Key factors:
- No fees on SwaptoX side (advantage)
- However, certain tokens show significant discrepancies
Further investigation revealed:
- Sovryn has multiple liquidity versions
- Some of these are not exposed in the official DApp or standard interfaces
- OpenOcean integrates a more complete set of Sovryn liquidity sources
- This leads to noticeable differences for specific trading pairs
5. Next Optimization Plan
Within the next 2–3 days:
- Integrate missing Sovryn liquidity sources
- Improve SwaptoX routing coverage
- Enhance quote accuracy on Rootstock
After completing the integration of the missing Sovryn liquidity sources, I will proceed with the formal Milestone 2 delivery as planned.
6. Comparison Page Notes
This is a single-page tool. You can inspect logs in the browser console and review the source code for auditing purposes.
- Rootstock:
SwaptoX / OpenOcean Quote Compare - Base:
SwaptoX / OpenOcean Quote Compare
