Increase lockup period limit to 365 * 200

By request.
This commit is contained in:
Christian Kamm 2022-04-02 07:21:03 +02:00
parent 8bfb10fb9b
commit 09ef15f869
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ pub const SECS_PER_MONTH: u64 = 365 * SECS_PER_DAY / 12;
/// that would be 36500^2 * SECS_PER_MONTH << 2^64.
///
/// This setting limits the maximum lockup duration for lockup methods
/// with daily periods to 100 years.
pub const MAX_LOCKUP_PERIODS: u32 = 365 * 100;
/// with daily periods to 200 years.
pub const MAX_LOCKUP_PERIODS: u32 = 365 * 200;
pub const MAX_LOCKUP_IN_FUTURE_SECS: i64 = 100 * 365 * 24 * 60 * 60;