Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Create veto button for proposals #372

@whoabuddy

Description

@whoabuddy

The agent account has a function veto-action-proposal:

https://github.com/aibtcdev/aibtcdev-daos/blob/f97c5585448e2e5b0a9f0e266458f3d88e071f27/contracts/agent/aibtc-agent-account.clar#L218-L235

That calls into the main action proposal voting contract veto-action-proposal to create a veto vote.

https://github.com/aibtcdev/aibtcdev-daos/blob/f97c5585448e2e5b0a9f0e266458f3d88e071f27/contracts/dao/extensions/aibtc-action-proposal-voting.clar#L383-L395

For each proposal, vetoes are only possible in the period between voting and execution, and the user would simply click a button and confirm the TX since the contract calculates the voting power. A user can only veto once and cannot retract the veto.

The proposal details also include the total number of vetoVotes and variables for quorum, exceeding yes votes, and when both are true the veto being activated and ensuring proposal will not run. The vetoVotes are updated in real-time the rest are updated when proposal is concluded (and can be manually calculated if needed, similar to how we do now with proposals before conclusion).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions