Skip to main content
The aggregator is two kinds of contract. One aggregator holds the adapter registry and splits a trade; one adapter per protocol knows how to actually talk to that protocol.

SoroswapAggregator

The entry point: registry, distribution, and the two swap functions.

Adapter Trait

The interface every adapter implements.

SoroswapAdapter

The adapter that reaches the Soroswap AMM router.
Adapters ship for Soroswap, Phoenix, Aqua and Comet. Adding a protocol means writing an adapter and registering it, not changing the aggregator. Source: github.com/soroswap/aggregator.