Skip to content

feat(bounty): allow up to 15 competition prize tiers#683

Merged
Benjtalkshow merged 1 commit into
boundlessfi:feat/t-replacefrom
Benjtalkshow:feat/bounty-more-prize-tiers
Jul 8, 2026
Merged

feat(bounty): allow up to 15 competition prize tiers#683
Benjtalkshow merged 1 commit into
boundlessfi:feat/t-replacefrom
Benjtalkshow:feat/bounty-more-prize-tiers

Conversation

@Benjtalkshow

Copy link
Copy Markdown
Collaborator

What

A competition bounty can now have up to 15 prize positions (was capped at 3).

MAX_PRIZE_TIERS 3 → 15 in modeSchema.ts — the single FE source of truth, so it propagates to the Mode step (winner-count stepper), the Reward step (tier inputs), and all validation/copy.

Why it's safe on-chain

The on-chain winner_distribution is derived from the tier amounts and normalized to 100% by the shared buildWinnerDistribution — the same path hackathons already use to publish many winners. The contract accepts arbitrary positions (the DTO default even documents "5% for the rest" beyond position 3), so 3 was a product guard, not a contract limit.

Paired change

Backend validation cap is bumped to match in boundless-nestjs (separate PR).

Verification

  • tsc --noEmit — 0 errors.
  • eslint . — clean.

Bump MAX_PRIZE_TIERS 3 -> 15. The winner distribution is derived from
tier amounts and normalized to 100% by the shared builder (same path
hackathons use to publish many winners on-chain), so the contract
already supports more than 3 positions; the 3 was a product guard.
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

@Benjtalkshow is attempting to deploy a commit to the Threadflow Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 5ce3660f-c6ca-4745-bebe-f2c2f69ceb8c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@Benjtalkshow Benjtalkshow merged commit bceb99e into boundlessfi:feat/t-replace Jul 8, 2026
1 of 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.

1 participant