Skip to main content

Aggregator v3

The contract the API uses today: entrypoints, types, fees and errors.

Cross-Contract Integration

Call v3 from your own contract.
The pages below describe the deprecated adapter-based aggregator.

How it works

The path a swap takes from quote to on-chain execution.

Design

The contract layout and the decisions behind it.

Technical Overview

Functions, storage and the adapter interface in detail.

Aggregator Operation

How a swap is distributed across protocols, with the formula.

Inspirations

Prior art the design borrows from.

Other AMMs in Soroban

The protocols the aggregator routes into.