caelum0x fefc7dcc4c fix(governance): fail closed on stake-weighted voting
Stake-weighted voting silently degraded to one-address-one-vote when the
staking keeper was absent (it was an optional depinject input), and zero-stake
voters still received a minimum weight of 1. Both are Sybil attack vectors.

- Make StakingKeeper a required depinject dependency; ProvideModule panics at
  startup if it is nil instead of degrading silently.
- CastVote now derives weight strictly from bonded stake: it errors with
  ErrStakingUnavailable when no staking keeper is set and ErrNoVotingPower when
  the voter has zero bonded stake. Remove the minimum-weight-1 floor.
- Update tests to assert the fail-closed behavior and wire bonded stake / a
  staking keeper into the affected fixtures.
2026-05-31 07:33:25 +03:00
..