Using the AppAggregate
Aggregate
Swap tokens and bridge assets across chains — one surface, best route picked
TL;DR
Aggregate combines swap and bridge into one surface. Swap USDC ↔ XLM via SDEX or Soroswap routing. Bridge assets between Stellar and other chains via Allbridge. The aggregator picks the optimal route based on price, slippage, and speed.
Two Actions, One Surface
| Action | What it does | When to use |
|---|---|---|
| Swap | Exchange USDC ↔ XLM (or other pairs) at best rate | You want to trade tokens on Stellar |
| Bridge | Move assets from Stellar to another chain | You need tokens on Ethereum, Arbitrum, etc. |
How Routing Works
When you swap, the aggregator automatically:
- Checks SDEX orderbook depth for the pair
- Checks Soroswap pool liquidity for the same pair
- Picks the route with least slippage and lowest effective price impact
- Shows you a quote before you confirm
For bridges, it finds the Allbridge route with the lowest fee and shortest estimated finality time.