Work Package #5
Name
WP5 — Revenue Allocation & Treasury ManagementHigh-Level Description
This work package implements the revenue allocation layer — the mechanism by which network surplus (S = I − O) is computed, apportioned between team payouts and the LP surplus share (S_LP = lambda * S), and routed to the appropriate treasury and holding accounts. It covers the on-chain accounting logic, the solvency constraints enforced at the contract level (total payouts cannot exceed available funds), and the treasury management interfaces for hub-network operators. This work package is closely coupled with WP3 (which determines team-level weights) and WP4 (which provides the demand signals that inform inflow totals), and feeds directly into WP6 (certificate redemption).
(max 10,000 characters)
Core Objectives
- Implement the surplus computation logic (S = I − O) drawing on demand signal totals from WP4 and team payout records from WP3.
- Implement the LP surplus allocation mechanism (S_LP = lambda * S) with governance-configurable lambda parameter.
- Build the treasury and holding account structures on Cardano for hub-network, hub, and LP surplus pools.
- Enforce the solvency constraint (total payouts ≤ available funds) at the contract level.
- Provide hub-network operators with treasury dashboards for balance visibility, inflow/outflow tracking, and governance parameter management.
- Integrate with WP6 to make LP surplus available for certificate redemption.
(max 10,000 characters)
Expected Value — Why does this matter to Cardano?
Revenue allocation is the moment the protocol’s financial promise is made good: surplus generated by real economic activity is transparently apportioned and directed to the correct accounts. Correctly implemented, this layer demonstrates that revenue-linked participation is not theoretical — it is an auditable, automated process. For Cardano, this establishes a model for programmable, multi-party treasury management at hub-network scale, with hard solvency guarantees enforced on-chain.
(max 4,000 characters)
Success Metrics
- Surplus computation produces correct results across at least 5 test scenarios with known inputs, including edge cases at the solvency boundary.
- Lambda parameter configurable by governance and correctly applied to LP surplus pool on testnet.
- Treasury accounts for at least one simulated hub-network deployed and operational on testnet.
- Solvency constraint verified to prevent any distribution that would exceed available funds.
- Integration with WP6 confirmed — LP surplus pool accessible for redemption processing.
(max 4,000 characters)
Initiative Type
[x] New initiativePrimary Nature of Work
[x] TechnicalMilestones
Milestone #1
| Field | Details |
|---|---|
| Milestone Name | M5.1 — Surplus Computation & Allocation Logic |
| Deliverables | Surplus computation service; LP allocation module; lambda governance parameter; solvency constraint enforcement. |
| Acceptance Criteria | Correct outputs across all defined test scenarios; solvency constraint cannot be bypassed. |
| Estimated Duration | 5 weeks |
Milestone #2
| Field | Details |
|---|---|
| Milestone Name | M5.2 — Treasury Accounts & Operator Interface |
| Deliverables | On-chain treasury and holding account structures; hub-network operator dashboard. |
| Acceptance Criteria | Treasury accounts deployed on testnet; operator interface shows correct balances and flows. |
| Estimated Duration | 4 weeks |
Milestone #3
| Field | Details |
|---|---|
| Milestone Name | M5.3 — Integration & End-to-End Test |
| Deliverables | Integration with WP3, WP4, WP6; full end-to-end allocation test on testnet. |
| Acceptance Criteria | Surplus flows correctly from demand signal totals through to LP surplus pool and team accounts without discrepancy. |
| Estimated Duration | 3 weeks |
Budget Breakdown — Work Package #5
| Cost Category | Resources (Labour) | Item Description | Quantity | Unit Cost (ADA) | Total Cost (ADA) |
|---|---|---|---|---|---|
| Development | Plutus Smart Contract Engineer | Treasury contracts, solvency constraints, allocation logic | 1 | 110,000 | 110,000 |
| Development | Backend Engineer | Surplus computation service and governance module | 1 | 80,000 | 80,000 |
| Development | Frontend Engineer | Operator treasury dashboard | 1 | 50,000 | 50,000 |
| TOTAL | 240,000 |
Supporting Materials
[To be added]