Skip to content

Governor: pluggable vote-weight moduleΒ #114

@bitfalt

Description

@bitfalt

πŸ“‹ Description

Decouple vote-weight calculation from the governor so we can swap strategies (token balance, activity, NFT, etc.) without redeploying.

βœ… Acceptance Criteria

  • Add storage vote_weight_module: ContractAddress
  • Add external function set_vote_weight_module(new_module: ContractAddress) restricted to DAO admin
  • On every vote, call IVoteWeightModule.get_weight(voter, proposal_id) and use the returned u128
  • If module returns zero or reverts, treat weight as zero (do not revert the tx)

Metadata

Metadata

Assignees

No one assigned

    Labels

    onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weeksimple-dao

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions