Slippage
Slippage is the difference between the price you expect and the price you get. On AMMs, it scales with:- Trade size relative to pool depth
- Volatility during the time between quote and execution
- Other trades sandwiching yours
swapOptions.slippageTolerance.
Recommended slippage by pool
For very thin pools, slippage can blow out — consider chunking large trades or using a router that splits across multiple pools.
Why default 0.50% works most of the time
The wBINI/USBI anchor pool is well-funded → 0.50% covers normal execution. Most user trades clear here or via single-hop into a healthy growth pool. For Agent Token swaps in fresh pools, raise slippage to avoid failed transactions.Failed transactions (“Out of slippage”)
If price moved more than your tolerance between quote and execution, the V3 router reverts. You pay gas, get no swap. Mitigations:- Raise slippage tolerance
- Reduce trade size (smaller fraction of pool)
- Wait for low volatility (off-peak hours)
MEV (Maximal Extractable Value)
V3 swaps are public mempool transactions. Sandwich attacks are possible:BaiDEX MEV protections
For now, MEV protection on BaiDEX is at the slippage tolerance level. Set it conservatively for large trades.
Worker-layer signals (future)
The Agent Hive Worker assigned to each pool can in principle:- Detect anomalous trade patterns (sandwich-like flows)
- Flag suspect transactions in on-chain logs
- Suggest tightening pool parameters
Limit-order behavior
V3’s range orders effectively act as limit orders:- LP a tight range above current price → sells the in-range asset when price rises into range
- LP a tight range below current price → buys when price drops
Transaction priority
BiniChain transactions follow a standard fee market. Higher gas price = faster inclusion. For time-sensitive trades:- Increase gas price (priority fee)
- Use a limited-time deadline (
block.timestamp + 60) so stale transactions revert
Trade execution checklist
Before signing a swap:- Slippage tolerance is appropriate for pool depth
- Output amount looks reasonable (not 0, not absurd)
- You have enough native BINI for gas
- Deadline is short enough that the tx won’t sit pending overnight
- You’ve approved the input token to the router
Related
Trading guide
Code examples
Pools
Pool depth varies by type
Fees
The 1.00% fee is on top of slippage
Agent Hive
Worker layer (future MEV signals)
