Trait pallet_democracy::Approved[][src]

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

Required methods

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