pub trait DefaultVote {
    // Required method
    fn default_vote(
        prime_vote: Option<bool>,
        yes_votes: MemberCount,
        no_votes: MemberCount,
        len: MemberCount
    ) -> bool;
}
Expand description

Default voting strategy when a member is inactive.

Required Methods§

source

fn default_vote( prime_vote: Option<bool>, yes_votes: MemberCount, no_votes: MemberCount, len: MemberCount ) -> bool

Get the default voting strategy, given:

  • Whether the prime member voted Aye.
  • Raw number of yes votes.
  • Raw number of no votes.
  • Total number of member count.

Object Safety§

This trait is not object safe.

Implementors§