Skip to content

feat: DAO-compatible SlashingModule with trust decay#17

Open
Brooks1003 wants to merge 1 commit into
Nobayprotocol:mainfrom
Brooks1003:feat/slashing-module
Open

feat: DAO-compatible SlashingModule with trust decay#17
Brooks1003 wants to merge 1 commit into
Nobayprotocol:mainfrom
Brooks1003:feat/slashing-module

Conversation

@Brooks1003
Copy link
Copy Markdown

Summary

Implements the slashing module requested in bounty issue #1.

Features

  • Slash by owner/DAO with configurable percentage
  • 50% whistleblower reward, 50% burned (prevents self-slashing)
  • Integrates with StakingModule
  • Emits Slashed(address, amount, reason) per bounty spec
  • Bonus: trust decay function over time

Contract

contracts/SlashingModule.sol - 206 lines

Closes #1

- Slash by owner/DAO with configurable percentage
- 50% whistleblower reward, 50% burned (prevents self-slashing)
- Trust decay over time (reduces tier for inactive stakers)
- Integrates with StakingModule via address reference
- Emits Slashed(address, amount, reason) per bounty spec
- Full governance controls for slash%, challenge period, decay interval
- Bonus: trust decay function over time with configurable interval

Addresses bounty issue Nobayprotocol#1: Implement DAO-compatible Slashing Module
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 DAO-compatible Slashing Module

1 participant