Skip to content

contract: Integrate Dispute History Weighting into Cumulative Score#603

Open
Uche44 wants to merge 2 commits into
DXmakers:mainfrom
Uche44:contract/reputation-system-audit
Open

contract: Integrate Dispute History Weighting into Cumulative Score#603
Uche44 wants to merge 2 commits into
DXmakers:mainfrom
Uche44:contract/reputation-system-audit

Conversation

@Uche44
Copy link
Copy Markdown

@Uche44 Uche44 commented May 27, 2026

Closes #397

  • Profile struct updated with disputes and badge_level fields per role
  • AuthorizedContract storage key added to DataKey enum
  • set_authorized_contract / is_authorized_contract implemented
  • check_authorized_caller helper gates all privileged writes
  • increment_disputes implemented with event emission
  • Fixed-point dispute decay implemented in calculate_decayed_score
  • upgrade_badge / get_badge_level implemented with validation
  • get_score and query_reputation return dispute + badge data with decay applied
  • 22 unit tests passing (0 failures, 1 minor warning fixed)
image

@Uche44 Uche44 requested a review from soomtochukwu as a code owner May 27, 2026 18:09
@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

@Uche44 is attempting to deploy a commit to the mAzI's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

[SC-REP-043] Reputation System Robustness Auditing - Step 43

1 participant