Programs
fee_distributor
The fee_distributor is a simple accounting contract that accumulates protocol fees and provides a controlled withdrawal path to the treasury.
Design rationale
Separating fee collection from pool custody means treasury withdrawal operations never touch maker inventory. An admin action on fee_distributor cannot accidentally affect taker or maker funds held in a maker_pool.
Functions
| Function | Caller | Description |
|---|---|---|
| withdraw_fees(token) | Admin | Sweeps the contract’s whole balance of the token to the treasury |
| get_fees(token) | Anyone | Returns the contract’s current balance of the token |
Fees arrive by a direct token transfer from the maker's pool during execute_swap; there is no separate collect call.
Current fee rate: 10 bps (0.10%) of amount_out
Address: CBVCMBPBGZZQGPFWII5HZCFPGSZ6HKR3URAQGXRDOFLYQVQS6GPSEPYR