General Concept
The aggregator acts as a smart router, finding the most efficient way to swap one token for another.
For example, to swap token A for token B, the aggregator:
Searches for all possible swap paths
Calculates which yields the most token B
Can split the amount across multiple paths for maximum efficiency
Example:
You want to swap 100 USDT for ETH:
Option 1: All via Uniswap
Option 2: 70% Uniswap + 30% SushiSwap
Option 3: USDT → WBTC → ETH
The aggregator picks the path with the highest ETH output.
Last updated

