Trait pallet_democracy::Approved

source ·
pub trait Approved<Balance> {
    // Required method
    fn approved(&self, tally: Tally<Balance>, electorate: Balance) -> bool;
}

Required Methods§

source

fn approved(&self, tally: Tally<Balance>, electorate: Balance) -> bool

Given a tally of votes and a total size of electorate, this returns true if the overall outcome is in favor of approval according to self’s threshold method.

Implementors§

source§

impl<Balance: IntegerSquareRoot + Zero + Ord + Add<Balance, Output = Balance> + Mul<Balance, Output = Balance> + Div<Balance, Output = Balance> + Rem<Balance, Output = Balance> + Copy> Approved<Balance> for VoteThreshold