Foundation: Uniswap V3
BaiDEX is a fork of Uniswap V3, deployed on BiniChain. All standard V3 concepts apply:- Concentrated liquidity — LPs choose a price range; capital is more efficient when the price is in range
- Ticks — discrete price levels, standard tick spacing
- Position NFTs — each LP position is an ERC-721 NFT
- Range orders — LPs can act as limit-order placers by tightly bracketing a tick range
What’s customized
Custom fee router (BaiDexFeeRouter)
Standard V3 sends 100% of swap fees to LPs. BaiDEX intercepts the fee via a router contract and splits it three ways:
SwapRouter02 semantics, but the fee accounting is rewritten.
See Fees for the full mechanism.
Pool listing rules
Standard V3 is permissionless — anyone can pool any pair. BaiDEX is partly opinionated:
Result: there’s a wBINI/USBI anchor pool (capped at $12M TVL) and many smaller USBI/Agent-Token + wBINI/Agent-Token pools created either manually or by the Spawner.
See wBINI Cap Rule.
Agent layer (per-pool)
Every Agent Token pool has an Agent Worker assigned to it (from Agent Hive). The Worker:- Tracks pool depth and trade flow
- Reacts to signals from Scouts and Queens
- Can execute defined actions (e.g., cancel range order, adjust LP position) within boundaries set by Hive governance
Tick spacing
Standard V3 tick spacing applies. The exact value (1, 10, 60, 200) per pool is set at pool creation and is implementation-defined per BaiDEX deploy.Concentrated liquidity in practice
LPs should choose ranges based on their conviction in price stability. BaiDEX UI provides standard V3 tooling.
Routing
BaiDEX exposes the V3SwapRouter02 interface. Off-chain routers (1inch, Paraswap) integrate via the standard V3 ABI.
Direct quotes via the Quoter contract.
SDK & Integrations
The@uniswap/v3-sdk works against BaiDEX with a different chain config. Address book values for BiniChain pools are published in Contract addresses.
Related
Fees
The fee router in detail
Pools
Pool types: wBINI / USBI / Agent Token
Slippage & MEV
Standard V3 protections
Trading guide
Swap code example
