StableSwap Protocol
Cross-chain stablecoin swaps with guaranteed rates, settled via CCTP v2 or CCTP v1 + LayerZero. Swap USDC, USDT, and other stablecoins across Ethereum, Arbitrum, Base, Polygon, Avalanche, Optimism, Solana, Sui, and Aptos in about 20 seconds.
Supported chains
Ethereum, Arbitrum, Base, Polygon, Avalanche, Optimism, Solana, Sui, Aptos
Settlement
CCTP V2 or CCTP V1 + LayerZero V2
Speed
~20s end-to-end
DEXes
Uniswap V3/V4 + Curve (Ethereum) + Uniswap V3 (EVM) + Orca (Solana) + Cetus (Sui) + Hyperion (Aptos)
Key Design Choices
Dual messaging
Stablecoins only
API observes, solver executes
Atomic fulfillment with fallback
min_output on-chain. If the solver cannot meet the minimum, the transaction reverts. After 24 hours, the user can call withdraw_fallback() to reclaim USDC. No funds are ever locked permanently.Example Flow: Ethereum to Solana
The diagram below shows a cross-chain swap where a user sends USDT on Ethereum and receives USDC on Solana.
Step 1 — User initiates swap on Ethereum
initiateOrder() on the Gateway contract. The Gateway internally routes through Uniswap V3 to swap USDT → USDC, then burns USDC via CCTP v2 Hooks. The Hooks message carries both the USDC transfer and the swap instructions (output token, minimum amount, recipient) in a single burn. The DEX call happens inside the Gateway transaction.Step 2 — Cross-chain messaging
Step 3 — Solver fulfills on Solana
fulfill_order() on the Settlement program, which claims CCTP USDC and delivers it directly to the user's Solana address. Since the output token is USDC, no destination DEX swap is needed. If a non-USDC output were requested, the Settlement program would route through Orca Whirlpool before delivering.Step 4 — Fallback (24h)
withdraw_fallback() to return the claimed USDC to the user's address on the destination chain.More Documentation
Contracts
Deployed contract addresses on Ethereum, Arbitrum, Base, Polygon, Avalanche, Optimism, Solana, Sui, and Aptos with explorer links.
Tokens
Supported stablecoins, addresses, and DEX pool information.
API
Public REST API reference, frontend integration guide, and order state machine.
Security
Trust model, contract hardening, atomic guarantees, and fallback mechanisms.