Swaps and bridges
Ask any DeFAI agent to swap tokens or bridge assets, and it prepares an inline execution panel. Routing is handled by LI.FI, which aggregates DEX liquidity across 35+ chains to find the optimal path.How to use
"Swap 100 USDC to ETH on Base""Bridge 500 USDC from Ethereum to Base""How much ETH can I get for 1000 USDC?"
Swap flow
Agent prepares quote
The agent queries LI.FI for the best route, considering slippage, gas costs, and liquidity depth. The result renders as a DefiSwapQuotePanel or SwapExecuteInline.
Quote panel displays
Depending on the response, you see:
- Full quote: From token → To token with amounts, price impact, gas estimate, route details
- Token price: Quick price lookup
- Available tokens: List of tradeable tokens on the selected chain
- Suggestions: Clickable suggestion chips for follow-up actions
Confirm execution
The SwapExecuteInline panel shows:
- Token icons and symbols for from/to
- Exact amounts
- Price impact percentage
- Gas estimate
- Route path
Multi-step progress
The execution follows these steps:
- Check — verify balance and network
- Approve — token approval signature (if needed)
- Execute — swap transaction
- Done — completion with transaction hash
Cross-chain bridges
Cross-chain transfers use the same flow but with Circle CCTP or LI.FI bridge routes:- Circle CCTP: USDC transfers between Base ↔ Ethereum ↔ Polygon ↔ Arbitrum. Native USDC bridging with no wrapped tokens.
- LI.FI: Aggregated bridge routes across 35+ chains for any supported token.
Supported chains
| Chain | Network |
|---|---|
| Base | Primary (wallet home) |
| Ethereum | Mainnet |
| Polygon | PoS chain |
| Arbitrum | L2 |
| Optimism | L2 |
| And 30+ more via LI.FI |

