Browse Source

small fixes

bwhm 3 years ago
parent
commit
3fac3438a4
2 changed files with 5 additions and 5 deletions
  1. 1 1
      runtime-modules/working-group/src/checks.rs
  2. 4 4
      runtime/src/lib.rs

+ 1 - 1
runtime-modules/working-group/src/checks.rs

@@ -221,7 +221,7 @@ pub(crate) fn ensure_valid_stake_policy<T: Trait<I>, I: Instance>(
     );
 
     ensure!(
-        stake_policy.leaving_unstaking_period > T::MinUnstakingPeriodLimit::get(),
+        stake_policy.leaving_unstaking_period >= T::MinUnstakingPeriodLimit::get(),
         Error::<T, I>::UnstakingPeriodLessThanMinimum
     );
 

+ 4 - 4
runtime/src/lib.rs

@@ -517,9 +517,9 @@ parameter_types! {
     pub const IdlePeriodDuration: BlockNumber = 400;
     pub const CouncilSize: u64 = 5;
     pub const MinCandidateStake: u64 = 11000;
-    pub const ElectedMemberRewardPeriod: BlockNumber = 10;
-    pub const DefaultBudgetIncrement: u64 = 1000;
-    pub const BudgetRefillPeriod: BlockNumber = 1000;
+    pub const ElectedMemberRewardPeriod: BlockNumber = 14400;
+    pub const DefaultBudgetIncrement: u64 = 10000000;
+    pub const BudgetRefillPeriod: BlockNumber = 14400;
     pub const MaxWinnerTargetCount: u64 = 10;
 }
 
@@ -758,10 +758,10 @@ parameter_types! {
     pub const ContentWorkingGroupRewardPeriod: u32 = 14400 + 30;
     pub const MembershipRewardPeriod: u32 = 14400 + 40;
     pub const GatewayRewardPeriod: u32 = 14400 + 50;
-    pub const DistributionRewardPeriod: u32 = 14400 + 50;
     pub const OperationsAlphaRewardPeriod: u32 = 14400 + 60;
     pub const OperationsBetaRewardPeriod: u32 = 14400 + 70;
     pub const OperationsGammaRewardPeriod: u32 = 14400 + 80;
+    pub const DistributionRewardPeriod: u32 = 14400 + 90;
     // This should be more costly than `apply_on_opening` fee with the current configuration
     // the base cost of `apply_on_opening` in tokens is 193. And has a very slight slope
     // with the lenght with the length of rationale, with 2000 stake we are probably safe.