AI agent for atomic batch swaps, arbitrage routing, and USDC settlement on Arc
Tranquile is an AI strategy composer for DeFi execution. Instead of making users submit swaps one by one, it turns a natural-language objective into a batch of quoted trades, combines them into a single atomic execution plan, and helps users pursue better pricing and cross-pool arbitrage opportunities. Users can describe what they want to do, review the generated trade plan, execute multiple swaps in one flow, and then settle value in USDC toward Arc. The result is a calmer, more intelligent way to compose, execute, and settle DeFi strategies.
Tranquile is built with Next.js, React, TypeScript, Tailwind CSS, Wagmi, Viem, and RainbowKit on the frontend, with API routes handling strategy generation and swap execution. The app uses the Uniswap Trading API for approvals, quotes, routing, and transaction building, then composes batch swap calldata through EIP-5792 so multiple trades can be merged into a single Universal Router execution. An AI strategy layer converts natural-language prompts into concrete swap plans for the user to review before submission. For settlement, we integrate Circle CCTP V2 and Circle Gateway so completed strategies can move USDC toward Arc, whose developer docs emphasize stablecoin-based gas, deterministic sub-second finality, and interoperability through CCTP and Gateway. The hacky but useful part was stitching together multiple quoted swaps into one atomic execution flow while keeping the UX simple enough to feel like a strategy composer instead of a router console.

