BaiBai
BaiBai is an L2 swap DEX and aggregator. It combines BaiBai Prop AMM liquidity with other liquidity sources to give users the best available swap price.Open BaiBai
Visit baibai.cx.
What It Does
Say baibai to poor prices. BaiBai is a next-generation Prop AMM built to trade at the best price, every time.- Best price, verified. BaiBai’s Prop AMM is designed to provide the best price and is fully composable with other liquidity sources for optimal execution.
- Tightest spreads, engineered. BaiBai updates price curves in real time, adjusts depth dynamically, and quotes at high frequency.
- Friction removed. BaiBai runs on a custom appchain that is composable with Base and Ethereum for seamless L2 token trading.
- No gas required. Users sign gasless EIP-712 orders; trades settle without the user paying network gas.
The integration API currently supports gasless EIP-712 orders only. Traditional/non-gasless orders are coming soon.
Architecture
BaiBai is powered by Pylon. The appchain handles custom execution and real-time market-maker updates, while users and integrators interact with normal L2 token balances. Integrators do not need to bridge or call the appchain directly. Use the BaiBai API.Native ETH
Gasless orders use ERC-20 token transfers through Permit2. Native ETH is not a gasless order token.- Swapping from ETH: request an indicative quote with WETH as the sell token, then wrap ETH to WETH before signing/submitting.
- Swapping to ETH: quote and buy WETH, then unwrap WETH after the order fills.
- The caller is responsible for wrap and unwrap transactions.
- If wrap, approval, or user signing takes time, request a fresh quote before submitting.
0x4200000000000000000000000000000000000006
Start Here
Aggregator Flow
Understand quote, sign, submit, and poll.
API Reference
See endpoints, fields, errors, and OpenAPI.
Wallet Integration
Build wallet flows with Permit2, signing, and polling.