Skip to content

Add unit tests for co-creator fee split summing correctly to full creator fee #545

Description

@Chucks1093

Summary

When a co-creator config is set, the co-creator share plus the creator fee recipient share must equal exactly the full creator fee with no XLM lost. A unit test should confirm this invariant holds across different split percentages.

Scope

  • Register a creator with a co-creator at 30% share
  • Execute a buy and record both the creator fee recipient and co-creator balance increases
  • Assert their sum equals the total creator fee for the trade
  • Repeat for a 50% and 10% split

Acceptance Criteria

  • Co-creator amount plus creator recipient amount equals total creator fee
  • No XLM lost in the split at 30%, 50%, and 10% share values
  • Test fails if either party receives more than their share

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26

Type

No type

Fields

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