Background
Some experts operate under agencies that take a percentage of their earnings. The contract should support automatic revenue splitting.
Goal
Allow experts to register an agency_address and agency_share_bps. During settlement, funds are split automatically.
Acceptance Criteria
register_expert accepts optional agency_address and agency_share_bps.
- Settlement sends
agency_share to the agency and expert_share to the expert.
- Expert can update agency split (applies to new sessions only).
- Emits
RevenueShared { session_id, expert_amount, agency_amount }.
Key Files
contracts/src/lib.rs, contracts/src/revenue.rs
Background
Some experts operate under agencies that take a percentage of their earnings. The contract should support automatic revenue splitting.
Goal
Allow experts to register an
agency_addressandagency_share_bps. During settlement, funds are split automatically.Acceptance Criteria
register_expertaccepts optionalagency_addressandagency_share_bps.agency_shareto the agency andexpert_shareto the expert.RevenueShared { session_id, expert_amount, agency_amount }.Key Files
contracts/src/lib.rs,contracts/src/revenue.rs