Skip to content

Revenue Split Between Expert & Agency #262

@Luluameh

Description

@Luluameh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions