From 217541b00d40a3c6aa1984a7547917547d063ade Mon Sep 17 00:00:00 2001 From: Malte Kliemann Date: Sat, 19 Aug 2023 15:59:28 +0200 Subject: [PATCH] Adjust maximum market lifetime --- primitives/src/constants.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/primitives/src/constants.rs b/primitives/src/constants.rs index ec0dd7740..f1a7f47dc 100644 --- a/primitives/src/constants.rs +++ b/primitives/src/constants.rs @@ -82,7 +82,7 @@ pub const LM_PALLET_ID: PalletId = PalletId(*b"zge/lymg"); // Prediction Markets /// The maximum allowed market life time, measured in blocks. -pub const MAX_MARKET_LIFETIME: BlockNumber = 365 * BLOCKS_PER_DAY; +pub const MAX_MARKET_LIFETIME: BlockNumber = 4 * BLOCKS_PER_YEAR; /// Max. categories in a prediction market. pub const MAX_CATEGORIES: u16 = 64; /// The dispute_duration is time where users can dispute the outcome. @@ -94,7 +94,7 @@ pub const MIN_ORACLE_DURATION: BlockNumber = BLOCKS_PER_HOUR; pub const MAX_DISPUTE_DURATION: BlockNumber = 30 * BLOCKS_PER_DAY; /// Maximum block period for an grace_period. /// The grace_period is a delay between the point where the market closes and the point where the oracle may report. -pub const MAX_GRACE_PERIOD: BlockNumber = 365 * BLOCKS_PER_DAY; +pub const MAX_GRACE_PERIOD: BlockNumber = BLOCKS_PER_YEAR; /// Maximum block period for an oracle_duration. /// The oracle_duration is a duration where the oracle has to submit its report. pub const MAX_ORACLE_DURATION: BlockNumber = 14 * BLOCKS_PER_DAY;