Summary
Build a treasury contract that collects protocol fees from bonding curve trades, accumulates them, and distributes to designated recipients on a configurable schedule.
Scope
- collect_fee(key_id, amount) — called by bonding curve on each trade
- get_treasury_balance() — returns total accumulated fees
- distribute(recipients[], amounts[]) — admin-only batch payout
- FeeCollected and FeeDistributed events emitted
- Distribution history stored per epoch
Acceptance Criteria
ETA
24 hours
Summary
Build a treasury contract that collects protocol fees from bonding curve trades, accumulates them, and distributes to designated recipients on a configurable schedule.
Scope
Acceptance Criteria
ETA
24 hours