Skip to content

feat(contract): support campaign co-creation - #809

Merged
Utilitycoder merged 3 commits into
Fundable-Protocol:mainfrom
Fayedamz:feat/717-campaign-co-creation
Sep 1, 2026
Merged

feat(contract): support campaign co-creation#809
Utilitycoder merged 3 commits into
Fundable-Protocol:mainfrom
Fayedamz:feat/717-campaign-co-creation

Conversation

@Fayedamz

Copy link
Copy Markdown
Contributor

Summary
Implements campaign co-creation for issue #717 by allowing campaigns to have multiple creators who share ownership, decision-making, and revenue.
Changes
Adds ordered campaign creator lists and revenue shares in basis points.
Preserves backward compatibility with the existing single-creator create_campaign API.
Adds create_campaign_with_creators for multi-creator campaigns.
Requires every creator to authorize campaign creation.
Validates non-empty, unique creator lists with positive shares totaling 10,000 basis points.
Distributes successful campaign proceeds proportionally among creators after protocol fees.
Adds support for adding authorized co-creators before campaign success.
Adds creator and revenue-share query methods.
Preserves insurance-fee handling, campaign ID exhaustion protection, and milestone tracking.
Validation
cargo test --manifest-path contracts/Cargo.toml -p campaign-funding
Result: 51 tests passed, 0 failed
cargo fmt --manifest-path contracts/Cargo.toml --all
git diff --check

closes #717

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f57c5aae-de98-4dc0-a9dc-209535edb0bf


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Utilitycoder Utilitycoder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix up the merge conflict and update your PR. Kindly ensure you offramp with Fundable at https://stellar.fundable.finance/offramp

@Utilitycoder

Copy link
Copy Markdown
Contributor

Thanks for the work. Kindly ensure you offramp with Fundable at https://stellar.fundable.finance/offramp

@Utilitycoder
Utilitycoder merged commit ead4944 into Fundable-Protocol:main Sep 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(contract): Campaign co-creation - multiple creators share campaign ownership

2 participants