Skip to content

Voting Power DAO #171

@michaeljklein

Description

@michaeljklein

Clarification and motivation

The instructions VOTING_POWER and TOTAL_VOTING_POWER allow us to query the individual, total amount of rolls staked by bakers, respectively.

As with the BYO token DAO (#170), the (un)freeze entrypoints can be modified to consider the amount staked to be the amount of governance tokens held. In other words, a user with VOTING_POWER = N is considered to hold N governance tokens.

Acceptance criteria

Note: proposal and voting cycles must be aligned with the actual on-chain baking cycles.
This allows the results of VOTING_POWER and TOTAL_VOTING_POWER to be cached until the next voting/proposing cycle.

Changes to BaseDAO

  • The quorum becomes a fixed ratio or percentage of TOTAL_VOTING_POWER
  • The duration of proposing and voting cycles are exact multiples of baking cycles (and must fit within 7 cycles)
  • The proposal and voting cycles must also be synchronized with the baking cycles, since the VOTING_POWER can change at the end of a baking cycle
  • There is no ledger of unfrozen governance tokens
  • Regarding frozen tokens:
    • Users are only allowed to freeze exactly their VOTING_POWER number of tokens
    • This operation (freezing) must do nothing or fail if it’s called more than once before the end of the proposal cycle
    • All frozen tokens are invalidated at the end of the proposal cycle and must be re-frozen (triggering additional calls to VOTING_POWER, etc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions