Skip to content

feat(reputation): implement peer-to-peer validator staking for score …#670

Merged
soomtochukwu merged 5 commits into
DXmakers:mainfrom
T-kesh:sc-rep-044-validator-staking
Jun 1, 2026
Merged

feat(reputation): implement peer-to-peer validator staking for score …#670
soomtochukwu merged 5 commits into
DXmakers:mainfrom
T-kesh:sc-rep-044-validator-staking

Conversation

@T-kesh

@T-kesh T-kesh commented May 30, 2026

Copy link
Copy Markdown
Contributor

…adjustments [SC-REP-044]

  • Add ValidatorStake struct and stake-weighted score adjustment routine
  • Extend Profile with validator staking aggregates and active badge tiers
  • Add safe fixed-point arithmetic for rating averages and exponential decay
  • Gate score adjustments behind authorized-contract auth checks
  • Cover acceptance criteria with 9 unit tests (empty profiles, badge upgrades, rejection of unverified direct reviews and adjustments)
    closes [SC-REP-044] Reputation System Robustness Auditing - Step 44 #398

@T-kesh T-kesh requested a review from soomtochukwu as a code owner May 30, 2026 16:44
@vercel

vercel Bot commented May 30, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented May 30, 2026

Copy link
Copy Markdown

@T-kesh 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

@soomtochukwu soomtochukwu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • see that the CI checks pass

  • If you could fix the merge conflict(s) ASAP

@T-kesh

T-kesh commented May 30, 2026

Copy link
Copy Markdown
Contributor Author
  • see that the CI checks pass
  • If you could fix the merge conflict(s) ASAP

currently working on the merge conflicts

T-kesh and others added 5 commits May 31, 2026 13:38
- Add missing error variants (CollateralAlreadyReleased, CollateralNotFound, BidIndexOutOfBounds, BidWindowClosed)
- Add collateral_released field to BidRecord struct
- Add Bids variant to DataKey enum
- Add missing helper functions for IPFS CID validation (is_valid_base58_char, is_valid_base32_char)
- Remove duplicate release_collateral functions
- Update bid creation to include collateral_released field
@T-kesh

T-kesh commented Jun 1, 2026

Copy link
Copy Markdown
Contributor Author

@soomtochukwu kindly review

@soomtochukwu soomtochukwu merged commit d75c6c5 into DXmakers:main Jun 1, 2026
2 of 4 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.

[SC-REP-044] Reputation System Robustness Auditing - Step 44

2 participants