Skip to content

feat: Multiple PR contributors payout distribution with weighted splits#27

Open
watcharaponthod-code wants to merge 9 commits into
skndash96:mainfrom
watcharaponthod-code:main
Open

feat: Multiple PR contributors payout distribution with weighted splits#27
watcharaponthod-code wants to merge 9 commits into
skndash96:mainfrom
watcharaponthod-code:main

Conversation

@watcharaponthod-code
Copy link
Copy Markdown

Resolves #12.

This PR implements the requested feature to allow payout distribution across multiple contributors for a single bounty.

Key Features:

  • Weighted Split Support: Added support for a new PR body tag <!-- bountic-split: @user1:weight, @user2:weight --> which allows maintainers/contributors to define custom distribution ratios.
  • Automatic Fallback: If no split tag is present, the payout defaults to the primary PR author (backward compatible).
  • Atomic Distribution: Payouts are processed for all recipients during the approval flow, with individual records created in payout_events and activity_events.
  • Precision Math: Implemented integer-cent math to ensure the total bounty is distributed accurately without rounding errors.

Note on Issue #12 Description:

I noticed that the body of issue #12 mentioned an inventory_quantity bug in a cart GET endpoint. This implementation focuses on the actual feature request in the title: "Multiple PR contributors payout distribution", which is also listed as a future goal in PLAN.md.

Verification:

  • Verified the split parsing logic with various inputs.
  • Verified the cent-distribution math to ensure total consistency.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

@watcharaponthod-code is attempting to deploy a commit to the skndash96's projects Team on Vercel.

A member of the Team first needs to authorize it.

@bountic-bot
Copy link
Copy Markdown

bountic-bot Bot commented May 9, 2026

⚡️ Bounty Competition Started

@watcharaponthod-code has submitted a PR that references an issue with a bounty. Learn more about this bounty: https://bountic.vercel.app/b/skndash96/bountic/issues/12

When this PR is merged, the bounty will be locked and ready for payout approval.


Bountic: Autonomous USDC bounties for open source

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.

Feature Request: Multiple PR contributors payout distribution

1 participant