Skip to content

Introduce a Max Number of Proposals for DAO Votes with Checkpoint Control #112

@deep-ink-ventures

Description

@deep-ink-ventures

Currently, the maximum number of checkpoints in the asset pallet is too large, and we want to modify it similarly to the approach taken for Elio DAO. A maximum number of proposals (set at 25) will be introduced as a runtime configuration for DAO votes. This will allow assets to query votes based on the number of active proposals, and for a specific DAO token and user, there will always be (number of proposals for that DAO + 1) checkpoints, resulting in a maximum number of 26.

Add a chain extension, so not only the pallet assets, but as well ink contracts can get the current active proposals.

Definition of Done:

  • A maximum number of proposals is set in the runtime configuration for DAO votes, limited to 25.
  • Asset pallet is modified to query votes for the number of active proposals.
  • For a specific DAO token and user, the system is able to maintain and control (number of proposals for that DAO + 1) checkpoints.
  • Code changes are tested and align with the implementation found in Elio DAO at Elio DAO GitHub.
  • Documentation is updated to reflect these changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions