Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Launch- and Voting Period the same: 14 days #80

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions runtime/ajuna/src/gov.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ impl pallet_membership::Config<TechnicalCommitteeMembershipInstance> for Runtime
parameter_types! {
pub const ThreeDays: BlockNumber = 3 * DAYS;
pub const SevenDays: BlockNumber = 7 * DAYS;
pub const FourteenDays: BlockNumber = 14 * DAYS;
pub const TwentyEightDays: BlockNumber = 28 * DAYS;
pub const ThirtyDays: BlockNumber = 30 * DAYS;
pub EnactmentPeriod: BlockNumber = 7 * DAYS;
pub const EnactmentPeriod: BlockNumber = 7 * DAYS;
pub const MinimumDeposit: Balance = 500 * AJUN;
}

Expand All @@ -138,8 +138,10 @@ impl pallet_democracy::Config for Runtime {
type Preimages = pallet_preimage::Pallet<Runtime>;
type Currency = pallet_balances::Pallet<Runtime>;
type EnactmentPeriod = EnactmentPeriod;
type LaunchPeriod = SevenDays;
type VotingPeriod = TwentyEightDays;
// LaunchPeriod should not be shorter than VotingPeriod. Otherwise,
// we risk that the ongoing referenda might infinitely grow.
type LaunchPeriod = FourteenDays;
type VotingPeriod = FourteenDays;
type VoteLockingPeriod = EnactmentPeriod;
type MinimumDeposit = MinimumDeposit;
type InstantAllowed = ConstBool<true>;
Expand Down
Loading