Skip to content
Lattice

ProposalVote

Git Source

Per-proposal vote tallies and per-voter tracking.

struct ProposalVote {
    /// @dev Cumulative Against votes.
    uint256 againstVotes;
    /// @dev Cumulative For votes.
    uint256 forVotes;
    /// @dev Cumulative Abstain votes.
    uint256 abstainVotes;
    /// @dev Tracks whether each voter has already cast a vote.
    mapping(address voter => bool) hasVoted;
}

Properties

NameTypeDescription
againstVotesuint256
forVotesuint256
abstainVotesuint256
hasVotedmapping(address voter => bool)