From 5f64f57af2ea787d67f270d37bd0ae8051ec5f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Tue, 8 Oct 2024 02:20:10 -0300 Subject: [PATCH] fix: rollback to long locking periods --- program/src/processor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/src/processor.rs b/program/src/processor.rs index 5ff220e..6145667 100644 --- a/program/src/processor.rs +++ b/program/src/processor.rs @@ -199,7 +199,7 @@ impl Processor { 0 => { release_time = 0; } - 1800 | 3600 | 5400 | 7200 => { + 7_776_000 | 15_552_000 | 23_328_000 | 31_104_000 => { release_time = clock.unix_timestamp as u64 + schedule.time_delta; } _ => { @@ -435,7 +435,7 @@ impl Processor { } // Withdrawal period is 7 days = 7 * 86400 = 604_800 - schedule.release_time = clock.unix_timestamp as u64 + 1800; + schedule.release_time = clock.unix_timestamp as u64 + 604_800; // Pack the updated schedule back into the account data pack_schedule_into_slice(