Skip to content

feat: token proposal lifecycle, whitelist vouches, early-exit penalty, participant dedup - #360

Merged
PeterOche merged 4 commits into
degenspot:mainfrom
phertyameen:feature/phertyameen-sc-007-010-call-registry
Sep 2, 2026
Merged

feat: token proposal lifecycle, whitelist vouches, early-exit penalty, participant dedup#360
PeterOche merged 4 commits into
degenspot:mainfrom
phertyameen:feature/phertyameen-sc-007-010-call-registry

Conversation

@phertyameen

Copy link
Copy Markdown
Contributor

Implements SC-007..SC-010 in call_registry.

\cargo test --workspace: 49 call_registry + 19 outcome_manager passing.

Closes #320
Closes #321
Closes #322
Closes #323

@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

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

…t penalty, participant dedup

Implements SC-007..SC-010 in call_registry:

- SC-007 (degenspot#320): participant_count dedups so it only increments on a user's
  first stake across all outcomes; adds get_participant_count view used by the
  surge-fee calculation.
- SC-008 (degenspot#321): new early_exit(call_id, user, outcome_index) that burns a 30%
  penalty plus a proportional surge fee and refunds user_stake - penalty - fee;
  second exit reverts after the stake is zeroed.
- SC-009 (degenspot#322): token whitelisting via 3 distinct authorized-staker vouches
  (auto-whitelist), duplicate vouches ignored, admin whitelist bypass retained.
- SC-010 (degenspot#323): TokenProposal gains created_at; 7-day expiry with anyone-callable
  cleanup_expired_proposal, admin reject_proposal (emits TokenRejected), and a
  non-panicking get_proposal(token) -> Option view.

Closes degenspot#320
Closes degenspot#321
Closes degenspot#322
Closes degenspot#323
@phertyameen
phertyameen force-pushed the feature/phertyameen-sc-007-010-call-registry branch from 545bd01 to 7c49c8a Compare August 31, 2026 16:36
@phertyameen

Copy link
Copy Markdown
Contributor Author

fixed conflict and CI failure

@PeterOche
PeterOche merged commit ec6dd79 into degenspot:main Sep 2, 2026
3 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

2 participants