Skip to content

feat(referral_rewards): add multi-sig governance and pause controls - #445

Open
umpireboulianne-design wants to merge 1 commit into
thisisouvik:mainfrom
umpireboulianne-design:fix/issue-425-referral-rewards-multisig-pause
Open

umpireboulianne-design wants to merge 1 commit into
thisisouvik:mainfrom
umpireboulianne-design:fix/issue-425-referral-rewards-multisig-pause

Conversation

@umpireboulianne-design

Copy link
Copy Markdown

Summary

  • Implements multi-sig admin management (setup_multisig, set_multisig_admin, get_multisig_admin, get_multisig_admins, get_multisig_threshold) and threshold-gated pause / unpause controls in ReferralRewardsContract (contracts/referral_rewards/src/lib.rs).
  • Gates withdraw_unspent behind assert_multisig_admin and assert_not_paused.
  • Enforces assert_not_paused on register_referral and returns 0 cleanly in claim_referral_bonus when paused so loan activation is never disrupted during an emergency pause.
  • Adds unit tests in contracts/referral_rewards/src/test.rs covering threshold pause/unpause, multisig-gated withdrawals, and paused registration/payout behavior.

Closes #425

@vercel

vercel Bot commented Oct 24, 2026

Copy link
Copy Markdown

@umpireboulianne-design is attempting to deploy a commit to the thisisouvik's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4a652310-8b9f-4d4d-a02b-76dced54a5a8
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

This branch has not been deployed

No deployments
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.

Implement Multi-Sig Governance and Pause Controls for ReferralRewardsContract

1 participant