Skip to content

feat(campaign): update voting, on-chain tracking, revenue share, and … - #811

Merged
Utilitycoder merged 1 commit into
Fundable-Protocol:mainfrom
zikirullahiabdu31-ops:main
Aug 31, 2026
Merged

feat(campaign): update voting, on-chain tracking, revenue share, and …#811
Utilitycoder merged 1 commit into
Fundable-Protocol:mainfrom
zikirullahiabdu31-ops:main

Conversation

@zikirullahiabdu31-ops

Copy link
Copy Markdown

…AI fraud prevention (#784, #785, #790, #796)

Implements four major campaign management and governance features:

  1. Community Voting on Campaign Updates (feat(campaign): Community voting on campaign updates - let backers vote on next steps #784):
  • Enables campaign creators to attach polls to updates for backer decision-making.
  • Implements CampaignVotingService for creating polls, recording votes, calculating percentage distributions, and resolving winner options.
  • Adds REST API endpoints: GET/POST /api/campaigns/[id]/polls, POST /api/campaigns/[id]/polls/[pollId]/vote, and POST /api/campaigns/[id]/polls/[pollId]/close.
  1. On-Chain Campaign Tracking & NFT Certificates (feat(campaign): Integration with Stellar smart contracts - on-chain campaign tracking #785):
  • Implements OnChainCampaignTrackingService to record milestone progress on the Stellar blockchain.
  • Generates immutable NFT achievement certificates when funding goals are met.
  • Adds REST API endpoints: GET/POST /api/campaigns/[id]/onchain-milestones and GET/POST /api/campaigns/[id]/nft-certificate.
  1. Creator Revenue Sharing Model (feat(campaign): Creator revenue sharing - take profit split with platform #790):
  • Implements CreatorRevenueShareService for configurable tier-based platform profit splits (Bronze 15%, Silver 10%, Gold 7.5%, Platinum 5%).
  • Calculates net creator payouts and tracks creator earnings summaries.
  • Adds REST API endpoints: GET/POST /api/campaigns/[id]/revenue-share and GET/PUT /api/creators/[id]/tier.
  1. AI Fraud Prevention & Auto-Suspension (feat(campaign): Fraud prevention - AI detection of suspicious campaign patterns #796):
  • Implements FraudDetectionService using ML heuristics to detect fake backer velocity, duplicate IP clustering, money laundering, and circular transfer flows.
  • Automatically flags high-risk campaigns and triggers auto-suspension when risk scores exceed threshold (> 80).
  • Adds REST API endpoints: GET/POST /api/campaigns/[id]/fraud-check and POST /api/campaigns/[id]/suspend.

Closes #784
Closes #785
Closes #790
Closes #796

…AI fraud prevention (Fundable-Protocol#784, Fundable-Protocol#785, Fundable-Protocol#790, Fundable-Protocol#796)

Implements four major campaign management and governance features:

1. Community Voting on Campaign Updates (Fundable-Protocol#784):
- Enables campaign creators to attach polls to updates for backer decision-making.
- Implements CampaignVotingService for creating polls, recording votes, calculating percentage distributions, and resolving winner options.
- Adds REST API endpoints: GET/POST /api/campaigns/[id]/polls, POST /api/campaigns/[id]/polls/[pollId]/vote, and POST /api/campaigns/[id]/polls/[pollId]/close.

2. On-Chain Campaign Tracking & NFT Certificates (Fundable-Protocol#785):
- Implements OnChainCampaignTrackingService to record milestone progress on the Stellar blockchain.
- Generates immutable NFT achievement certificates when funding goals are met.
- Adds REST API endpoints: GET/POST /api/campaigns/[id]/onchain-milestones and GET/POST /api/campaigns/[id]/nft-certificate.

3. Creator Revenue Sharing Model (Fundable-Protocol#790):
- Implements CreatorRevenueShareService for configurable tier-based platform profit splits (Bronze 15%, Silver 10%, Gold 7.5%, Platinum 5%).
- Calculates net creator payouts and tracks creator earnings summaries.
- Adds REST API endpoints: GET/POST /api/campaigns/[id]/revenue-share and GET/PUT /api/creators/[id]/tier.

4. AI Fraud Prevention & Auto-Suspension (Fundable-Protocol#796):
- Implements FraudDetectionService using ML heuristics to detect fake backer velocity, duplicate IP clustering, money laundering, and circular transfer flows.
- Automatically flags high-risk campaigns and triggers auto-suspension when risk scores exceed threshold (> 80).
- Adds REST API endpoints: GET/POST /api/campaigns/[id]/fraud-check and POST /api/campaigns/[id]/suspend.

Closes Fundable-Protocol#784
Closes Fundable-Protocol#785
Closes Fundable-Protocol#790
Closes Fundable-Protocol#796
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@zikirullahiabdu31-ops Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@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: 72dd2c2f-87ea-4b12-bd1f-86640785b63c


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

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 e9b9022 into Fundable-Protocol:main Aug 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment