Trait pallet_collective::DefaultVote
source · 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§
sourcefn default_vote(
prime_vote: Option<bool>,
yes_votes: MemberCount,
no_votes: MemberCount,
len: MemberCount
) -> bool
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.