Skip to content

[security] Make CapacityBond.minBond non-retroactive — grandfather active operators, gate only new entrants #2033

Closed

Description

@alpergundogdu

Summary

Raising minBond retroactively de-activates existing operators whose bond falls below the new minimum (isActiveOperator reads the current minBond, CapacityBond.sol:1396), stripping their vote weight — the electorate-purge lever. Yet the design intent (operator-barriers principle) is to start minBond low and let governance tighten it as the network matures. Reconcile by making minBond non-retroactive.

Change

  • Grandfather existing active operators: once active, a later minBond increase does NOT de-activate them. Active status stops being re-evaluated against the live minBond.
  • Gate only entry transitions on the current minBond: new bond / registerNode / declareMbps (activation) must meet the current minimum.
  • Keep setMinBond governance-tunable within the existing 10k–1M bounds (monotonic tightening supported); direction is no longer a capture concern once grandfathering removes the purge.

Implementation points to resolve

  • isActiveOperator (:1396): active status must be sticky (grandfathered), not activeBond >= currentMinBond — record activation, or store a per-operator grandfathered floor.
  • declareMbps (:817) and re-activation paths: gate on current minBond at the transition only.
  • Slash auto-eject (below minBond/2): decide grandfathered-floor vs current minBond, kept consistent so slashing still ejects but a minBond raise alone never does.
  • Partial unbond below the grandfathered floor: define behavior (likely still de-activates — it's the operator's own action).

Rationale

  • Satisfies the operator-barriers principle (low launch minimum, monotonic tightening) AND removes the electorate-purge vector.
  • A captor can no longer raise minBond to strip the honest electorate; the recovery vote stays available.

Acceptance criteria

  • Raising minBond above an existing active operator's bond does NOT de-activate them (operator active at 50k, minBond→100k, still active, retains vote weight).
  • A new operator bonding below the new minBond cannot activate (reverts / not active).
  • Slashing still ejects per its own threshold; a minBond raise alone never ejects.

Activity

  1. added
    kind:security
    design:economics
    prio:medium
    on Sep 15, 2026
  2. moved this from Backlog to In progress in deCDNon Sep 15, 2026
  3. moved this from In progress to Done in deCDNon Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:economicskind:securityprio:medium

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Relationships

None yet

Development

No branches or pull requests

Issue actions