Make candidate intake in society configurable (#8445)

* Make candidate intake in society configurable

* Update frame/society/src/lib.rs

* fix fix
This commit is contained in:
Kian Paimani
2021-03-24 13:27:25 +01:00
committed by GitHub
parent ab55f9dcab
commit e309d94f1a
3 changed files with 14 additions and 4 deletions
+2
View File
@@ -953,6 +953,7 @@ parameter_types! {
pub const PeriodSpend: Balance = 500 * DOLLARS;
pub const MaxLockDuration: BlockNumber = 36 * 30 * DAYS;
pub const ChallengePeriod: BlockNumber = 7 * DAYS;
pub const MaxCandidateIntake: u32 = 10;
pub const SocietyModuleId: ModuleId = ModuleId(*b"py/socie");
}
@@ -970,6 +971,7 @@ impl pallet_society::Config for Runtime {
type MaxLockDuration = MaxLockDuration;
type FounderSetOrigin = pallet_collective::EnsureProportionMoreThan<_1, _2, AccountId, CouncilCollective>;
type SuspensionJudgementOrigin = pallet_society::EnsureFounder<Runtime>;
type MaxCandidateIntake = MaxCandidateIntake;
type ChallengePeriod = ChallengePeriod;
}