# \[2601 Grant\] SwaptoX Aggregator – Milestone 1

**URL:** <https://gov.rootstockcollective.xyz/t/2601-grant-swaptox-aggregator-milestone-1/700>\
**Category:** Grants & Incentives\
**Created:** [January 8, 2026, 7:42pm UTC](https://gov.rootstockcollective.xyz/t/2601-grant-swaptox-aggregator-milestone-1/700 "2026-01-08T19:42:33Z")\
**Posts on this page:** 1\
**Showing post:** 98

<div class="post-metadata">

**Author:** ![SwaptoX](https://yyz2.discourse-cdn.com/flex030/user_avatar/gov.rootstockcollective.xyz/swaptox/32/886_2.png) [@SwaptoX](https://gov.rootstockcollective.xyz/u/SwaptoX)\
**Post date:** [July 3, 2026, 3:16pm UTC](https://gov.rootstockcollective.xyz/t/2601-grant-swaptox-aggregator-milestone-1/700/98 "2026-07-03T15:16:53Z")

</div>

## 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:

1. Retrieve from API:
  - `AmountOut`
  - `AmountMinOut`
  - Route data

2. Send route data to a smart contract for **on-chain simulation execution**
3. 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](https://rootstock.blockscout.com/address/0x628f59C0f6dFc4ba3091c6cA1d83C6bf33A552d1)
- Simulation entry contract:  
[Rootstock address details for 0xE10cf148b9d77916b81FbF0685AABC2fAa25246C | Blockscout](https://rootstock.blockscout.com/address/0xE10cf148b9d77916b81FbF0685AABC2fAa25246C)

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](https://cdn.swaptox.com/test/quoter.html)
- Base:  
[SwaptoX / OpenOcean Quote Compare](https://cdn.swaptox.com/test/quoter.html?chain=base)

 ![屏幕截图 2026-07-03 230736](https://canada1.discourse-cdn.com/flex030/uploads/rootstockcollective/original/1X/31ff4e448a1b5cd916925ed4820b2e2cb603721d.png)

---

_[View the full topic](https://gov.rootstockcollective.xyz/t/2601-grant-swaptox-aggregator-milestone-1/700)._
