Update treasury weights. (#5723)

* treasury weight formula

* use max tippers count

* doc

* Fix upper bound

* rounding a bit

* remove unused + doc

* as u64 -> as Weight

* 2 significative digits rounded up

* rename ContainsCountUpperBound -> ContainsLengthBound

* add doc

* sender account -> origin account

* fix
This commit is contained in:
thiolliere
2020-04-28 17:55:56 +02:00
committed by GitHub
parent 2d73ccd65b
commit 8b69609397
4 changed files with 101 additions and 46 deletions
+6
View File
@@ -111,6 +111,12 @@ impl Contains<u64> for TenToFourteen {
})
}
}
impl ContainsLengthBound for TenToFourteen {
fn max_len() -> usize {
TEN_TO_FOURTEEN.with(|v| v.borrow().len())
}
fn min_len() -> usize { 0 }
}
parameter_types! {
pub const ProposalBond: Permill = Permill::from_percent(5);
pub const ProposalBondMinimum: u64 = 1;