Skip to content

Add multi-asset support to revenue_split contract #526

Description

@Wilfred007

What

Revenue_split currently handles single-asset splits. Add support for splitting multiple assets in one transaction call.

Why

Organizations may need to split revenue in multiple currencies (USD, EUR, BTC) simultaneously. Currently requires separate calls per asset.

Scope

In scope: Accept vector of (asset, amount) pairs, distribute each according to split percentages
Out of scope: Cross-asset conversion

Acceptance Criteria

  • Accept multiple assets in single distribution call
  • Each asset distributed according to same split percentages
  • Events emitted per asset
  • Tests with 2+ assets

Technical Context

  • contracts/revenue_split/src/lib.rs — single-asset distribution

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaigncontractSmart Contract developmenthardComplex tasks

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions