Skip to content

feat(deprader_router): add bounty funding, deadline extension, and token allowlist - #231

Merged
ALLEN-AYODEJI merged 2 commits into
DepRadarOrg:mainfrom
Folex1275:wave10
Oct 20, 2026
Merged

ALLEN-AYODEJI merged 2 commits into
DepRadarOrg:mainfrom
Folex1275:wave10

Conversation

@Folex1275

Copy link
Copy Markdown

Contract Enhancements: Split Payouts, Funding, Deadline Extension, and Token Allowlist

This PR adds four new features to the deprader_router contract:

Split Bounty Payouts (#107)

  • release_split(bounty_id, shares: Vec<(claim_id, bps)>) - Split payouts across multiple claimants
  • Shares must sum to 10_000 basis points and reference distinct pending claims
  • Rounding remainder goes to the first share
  • Emits one released event per paid claim
  • Adds Error::InvalidShares for validation

Fund Open Bounties (#108)

  • fund_bounty(funder, bounty_id, amount) - Top up existing open bounties
  • Tracks contributions per funder in Bounty.funders: Vec<(Address, i128)>
  • cancel_bounty updated to refund each funder proportionally
  • Emits funded event

Extend Deadline (#109)

  • extend_deadline(creator, bounty_id, new_deadline) - Extend open bounty deadlines
  • Only creator can extend, only to later times within MAX_BOUNTY_DURATION_SECS
  • Emits extended event

Token Allowlist (#110)

  • allow_token(token) / disallow_token(token) - Admin-managed allowlist
  • is_token_allowed(token) - Check allowlist status
  • create_bounty rejects disallowed tokens with Error::TokenNotAllowed
  • Emits tkn_allow and tkn_dislow events

Tests

  • 20 new tests covering all features and edge cases
  • All validation, auth checks, and error paths tested

Closes #107
Closes #108
Closes #109
Closes #110

@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@Folex1275 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

@ALLEN-AYODEJI
ALLEN-AYODEJI merged commit 0b45a91 into DepRadarOrg:main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants