mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-21 14:25:41 +00:00
Convert all UK spelling to US (#2138)
* all the ise * forgot a misspelling * a few more replacements * bump impl * rollback and fixes * bump impl again * Add aliases for RPC * Update on_demand.rs
This commit is contained in:
@@ -37,7 +37,7 @@ pub enum VoteThreshold {
|
||||
pub trait Approved<Balance> {
|
||||
/// Given `approve` votes for and `against` votes against from a total electorate size of
|
||||
/// `electorate` (`electorate - (approve + against)` are abstainers), then returns true if the
|
||||
/// overall outcome is in favour of approval.
|
||||
/// overall outcome is in favor of approval.
|
||||
fn approved(&self, approve: Balance, against: Balance, voters: Balance, electorate: Balance) -> bool;
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ fn compare_rationals<T: Zero + Mul<T, Output = T> + Div<T, Output = T> + Rem<T,
|
||||
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 {
|
||||
/// Given `approve` votes for and `against` votes against from a total electorate size of
|
||||
/// `electorate` of whom `voters` voted (`electorate - voters` are abstainers) then returns true if the
|
||||
/// overall outcome is in favour of approval.
|
||||
/// overall outcome is in favor of approval.
|
||||
///
|
||||
/// We assume each *voter* may cast more than one *vote*, hence `voters` is not necessarily equal to
|
||||
/// `approve + against`.
|
||||
|
||||
Reference in New Issue
Block a user