You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[security] Make CapacityBond.minBond non-retroactive — grandfather active operators, gate only new entrants #2033
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 minBondnon-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
fix(contracts): capture minBond floor at registerNode activation (#2033)
feat(contracts)!: governance hardening — bound capture, remove struct…