Platform fee
The fees BaniPool charges, how they are calculated, and the maximums enforced by the contracts.
Overview
| Feature | Deducted from | Maximum |
|---|---|---|
| Swap | The swap output, in the same transaction | 1% |
| Zap In / Zap Out | The input token (Zap In) or the output token (Zap Out) | 1% |
| Bridge | The bridged amount, on the source network | 1% |
| Create pool (one-transaction Zap) | The token you pay with, before it is split and deposited into the new pool | 1% |
| Create pool, Manual mode | Not charged (deposited directly to the Uniswap contract) | 0% |
| Automation | LP fees compounded by the keeper wallet (not principal) | 10% |
| Vaults & regular position actions | Not charged | 0% |
The current rates are always shown before you sign ("Platform fee x% (≈ $y)" or "Free") and are publicly readable via GET /v1/platform-fee.
bash
curl -s https://banipool.com/api/v1/platform-fee | jq .dataHow it works on-chain
- Swap: the Universal Router command
PAY_PORTION(v2/v3) orTAKE_PORTION(v4) sends the fee portion to the recipient wallet before the rest is sent to you; the minimum output is calculated after the fee. - Zap: the BaniZapV6 contract only allows
PAY_PORTIONwith bips ≤ 100 (1%); anything higher is rejected (FeeTooHigh). - Create pool: the BaniZapCreate contract runs
PAY_PORTIONon the token you pay with as the first command (bips ≤ 100 = 1%, higher is rejected withFeeTooHigh), then the rest is split, swapped and deposited into the new pool in the same transaction. The split and minimum deposit are computed from the amount after the fee. Manual mode and the step-by-step flow (no contract) carry no create-pool fee; swaps in the step-by-step flow follow the swap fee. - Bridge: you sign
BaniBridgeV1.depositfor the full amount; the contract sends the fee and deposits the rest into the official Across SpokePool with depositor = your wallet (refunds come back to you). - Solana (Orca & Raydium): Zap uses the same percentages as EVM (Zap into an existing pool = Zap fee, Create pool & Zap = create-pool fee), computed from the token you pay with and sent to the Solana recipient wallet at the start of the deposit transaction (a SOL transfer or an SPL
TransferChecked); the Zap plan uses the amount after the fee. Manual mode is free. - Automation: the fee rate is recorded in the BaniKeeperV6 policy you sign (max. 10%); only compounds run by the keeper wallet are charged, rebalance/exit and actions you run yourself are free.
Network (gas) fees, pool fees and bridge relayer fees are paid to the networks and third-party protocols, separately from the platform fee.