Summary
Many creators work in teams or with collaborators. Currently the entire creator fee goes to one address. A co-creator split lets the creator register a partner address and a split percentage at registration so the contract automatically divides the creator fee between them on every buy and sell — no manual sharing needed.
Scope
- Add optional
co_creator: Option<CoCreatorConfig> to register_creator
CoCreatorConfig { address: Address, share_bps: u32 }
share_bps is the co-creator's share of the creator fee (e.g. 3000 = 30%)
share_bps must be between 1 and 9999 inclusive
- On every buy and sell, split the creator fee:
share_bps portion to co-creator, remainder to creator fee recipient
- Add
get_co_creator(creator_id) -> Option<CoCreatorConfig> view function
- Emit
CoCreatorFeeEarned { creator_id, co_creator, amount, ledger } on each trade where a co-creator receives a fee
- Co-creator config is immutable after registration
None means all creator fees go to the creator fee recipient as before
Acceptance Criteria
ETA: 24 hours
Coordinate on Telegram
Summary
Many creators work in teams or with collaborators. Currently the entire creator fee goes to one address. A co-creator split lets the creator register a partner address and a split percentage at registration so the contract automatically divides the creator fee between them on every buy and sell — no manual sharing needed.
Scope
co_creator: Option<CoCreatorConfig>toregister_creatorCoCreatorConfig { address: Address, share_bps: u32 }share_bpsis the co-creator's share of the creator fee (e.g. 3000 = 30%)share_bpsmust be between 1 and 9999 inclusiveshare_bpsportion to co-creator, remainder to creator fee recipientget_co_creator(creator_id) -> Option<CoCreatorConfig>view functionCoCreatorFeeEarned { creator_id, co_creator, amount, ledger }on each trade where a co-creator receives a feeNonemeans all creator fees go to the creator fee recipient as beforeAcceptance Criteria
get_co_creatorreturns correct configCoCreatorFeeEarnedevent emitted on every qualifying tradeshare_bps(0 or 10000+) reverts at registrationETA: 24 hours
Coordinate on Telegram