Skip to content

[M-02] Denial of Service and Loss of Funds via Partial Unstake Dusting#24

Merged
mzhakun merged 20 commits intodrip-systemfrom
M-02
Mar 18, 2026
Merged

[M-02] Denial of Service and Loss of Funds via Partial Unstake Dusting#24
mzhakun merged 20 commits intodrip-systemfrom
M-02

Conversation

@mzhakun
Copy link
Collaborator

@mzhakun mzhakun commented Mar 18, 2026

Fix: Denial of Service and Loss of Funds via Partial Unstake Dusting

  • Added DustSharesRemaining revert in _unstake: partial unstake now reverts if remaining user shares would be > 0 but < MINIMUM_SHARES (1000) — users must either keep at least 1000 shares or unstake all
  • Changed dead-share sweep condition from == to <= as defense-in-depth — pool reset triggers even if totalShares somehow drops below MINIMUM_SHARES
  • Added DustSharesRemaining(address user, uint256 remainingShares) error to IRNBWStaking interface

mzhakun and others added 20 commits March 18, 2026 00:55
@mzhakun mzhakun merged commit 7aa30bc into drip-system Mar 18, 2026
2 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.

1 participant