Documentation Index
Fetch the complete documentation index at: https://docs.binibit.com/llms.txt
Use this file to discover all available pages before exploring further.
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
| Pool | Typical slippage |
|---|---|
| wBINI/USBI (anchor) | 0.10 – 0.50% |
| USBI/Agent Token (high volume) | 0.50 – 1.50% |
| USBI/Agent Token (low volume) | 1.50 – 5.00% |
| wBINI/Agent Token (high volume) | 0.50 – 2.00% |
| wBINI/Agent Token (thin) | 2.00 – 5.00% |
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
| Protection | Status |
|---|---|
Standard V3 sqrtPriceLimitX96 | Yes — set this in your swap to prevent execution beyond a price |
| Slippage tolerance check | Yes — V3 native |
| Private mempool / Flashbots-style relay | TBD — see roadmap |
| Builder API / commit-reveal | TBD |
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)
