pub struct Tally {
pub for_votes: u128,
pub against_votes: u128,
pub quorum: u128,
pub votes_cast: u128,
pub passing: bool,
}Expand description
A proposal’s live tally, decoded from tallyOf(uint256): (forVotes, againstVotes, quorum, votesCast, passing). The passing flag is the
facet’s read-only projection of _passed against the CURRENT membership
(the final outcome is fixed at execute).
Fields§
§for_votes: u128Weighted votes in favour so far.
against_votes: u128Weighted votes against so far.
quorum: u128Distinct members that must have voted for the proposal to be eligible
(ceil(memberCount / 2), min 1).
votes_cast: u128Votes cast so far (for + against).
passing: boolWhether the proposal WOULD pass right now (quorum met AND for > against).
Trait Implementations§
impl Copy for Tally
impl Eq for Tally
impl StructuralPartialEq for Tally
Auto Trait Implementations§
impl Freeze for Tally
impl RefUnwindSafe for Tally
impl Send for Tally
impl Sync for Tally
impl Unpin for Tally
impl UnsafeUnpin for Tally
impl UnwindSafe for Tally
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more