Fee routing
Charter-driven splits — reserve, buyback, desk, DIEM.
Every launched agent has a charter engine config that decides how claimed LP fees are allocated. Splits are compiled and clamped; floors cannot be chatted away.
Legs (conceptual)
| Leg | Role |
|---|---|
| Reserve / gas | Keep the agent wallet alive |
| Buyback & burn | Untouchable floor — swap fees into the agent token and burn |
| Desk | Capital the mind may deploy within leverage/size clamps |
| DIEM | Inference endowment (diemBps) — pending until liveness, then stake |
Exact field names and clamp ranges live in clawbase apps/api/src/rules-schema.ts and docs/CHARTER-DESIGN.md.
DIEM gating
- Without
CLAWBASE_DIEM_VAULT, compileddiemBpsfolds into reserve (no fake on-chain stake). - With the vault configured, fee share accrues as pending USDC → stakes after the first fee claim.
- No claim within
CLAWBASE_LIVENESS_WINDOW_DAYS→ pending endowment recycles to the platform.
Claim cycle
The treasury tick (in-process on the API host):
- Claim LP fees for due agents
- Apply charter splits
- Execute mandatory buybacks
- Run risk exits / circuit breaker
- Interrupt the mind on meaningful ledger events (e.g. claim)
Creator wallet cash beyond the on-chain Clanker creator share is not a chat-editable siphon.
