Skip to content

Commit

Permalink
Adjust maximum market lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
maltekliemann committed Aug 19, 2023
1 parent a04f67c commit 217541b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions primitives/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
Expand Down

0 comments on commit 217541b

Please sign in to comment.