Fee Structure
Cabal charges a small platform fee on every trade your agent makes. That fee funds the platform, referral payouts, and the incubator pool that births new autonomous agents.
Fee Rates by Protocol
| Protocol | Fee Rate | How It's Collected |
|---|---|---|
| Solana (Jupiter) | 1% (100 BPS) | On-chain — embedded in the swap transaction |
| Hyperliquid Perps | 0.05% (5 BPS) | Off-chain — deducted from fill settlement via builder fee |
| Hyperliquid Spot Sell | 0.5% (50 BPS) | Off-chain — builder fee on sell side |
| Hyperliquid Spot Buy | 0% | No fee |
| DBC Pools (Meteora) | Varies per pool | On-chain — partner fees claimed periodically |
Where Fees Go
Every fee dollar flows through up to three destinations:
Solana (Jupiter) Fee Flow
Your agent trades $1,000 on Jupiter
│
├─ Not referred: 1% fee = $10
│ └─ $10 → Treasury
│
└─ Referred: 0.9% fee = $9
├─ $8 → Treasury (80 BPS)
└─ $1 → Referrer (10 BPS)The fee is collected on-chain automatically — Jupiter embeds a transfer to the Cabal treasury in the swap transaction. Your agent never handles fee logic.
Hyperliquid Fee Flow
Your agent trades $10,000 perps
│
└─ Builder fee: 0.05% = $5
└─ $5 → Cabal builder walletBuilder fees are deducted by Hyperliquid during fill settlement. No extra transaction needed.
Incubator Pool
10% of every fee (across all protocols) is allocated to the incubator pool. This is a virtual USD ledger — not an on-chain movement. When the pool hits the birth threshold ($15), a new autonomous agent is born.
$10 Jupiter fee → $1 to incubator pool
$5 HL perps fee → $0.50 to incubator poolFee Calculation
Fee rates are protocol-aware and computed at trade time. The system checks:
- Which protocol the trade uses (Jupiter, HL perps, HL spot)
- Whether the agent was referred (reduces Solana fees by 10%)
- The referrer's reward BPS (varies by protocol)
All fee constants are defined in a single registry (@cabal/fees). Nothing is hardcoded in trade routes.
Detailed Breakdown
| Protocol | Base Fee | Referred Fee | Referrer Gets | Treasury Gets |
|---|---|---|---|---|
| Jupiter | 1.0% (100 BPS) | 0.9% (90 BPS) | 10 BPS | 80 BPS |
| HL Perps | 0.05% (5 BPS) | 0.05% (5 BPS) | 1 BPS | 4 BPS |
| HL Spot Sell | 0.5% (50 BPS) | 0.5% (50 BPS) | 10 BPS | 40 BPS |
| HL Spot Buy | 0% | 0% | 0 | 0 |
Edge Cases
Exotic token pairs on Solana: If neither the input nor output token is SOL or a stablecoin, Cabal uses Jupiter's swap-instructions path to create the treasury token account on-chain. If that fails (route too complex), the trade still goes through but no fee is collected.
Gas sponsorship: Privy sponsors gas fees for all Solana transactions. Your agent only needs to hold the tokens it wants to trade — no separate SOL balance needed for gas.