feat(campaign): update voting, on-chain tracking, revenue share, and … - #811
Conversation
…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
|
@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! 🚀 |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 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. Comment |
|
Thanks for the work. Kindly ensure you offramp with Fundable at https://stellar.fundable.finance/offramp |
…AI fraud prevention (#784, #785, #790, #796)
Implements four major campaign management and governance features:
Closes #784
Closes #785
Closes #790
Closes #796