From fd60976d1f26ec23fa64fcfcea858df9236a460a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Mon, 7 Oct 2024 10:47:14 -0300 Subject: [PATCH 1/4] feat: changing token and lowered time deltas --- program/src/processor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/program/src/processor.rs b/program/src/processor.rs index db5b681..2c43fa9 100644 --- a/program/src/processor.rs +++ b/program/src/processor.rs @@ -24,7 +24,7 @@ use crate::{ }; pub const TOKEN_MINT: Pubkey = - solana_program::pubkey!("AxfBPA1yi6my7VAjqB9fqr1AgYczuuJy8tePnNUDDPpW"); + solana_program::pubkey!("FGG8y8JrZrAinbBwWAB2EacQgZVyzoerdMsU1LUaRkKv"); pub struct Processor {} @@ -199,7 +199,7 @@ impl Processor { 0 => { release_time = 0; } - 7_776_000 | 15_552_000 | 23_328_000 | 31_104_000 => { + 1800 | 3600 | 5400 | 7200 => { 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 + 604_800; + schedule.release_time = clock.unix_timestamp as u64 + 1800; // Pack the updated schedule back into the account data pack_schedule_into_slice( From a4e96d25ea0df7e020d51f3ec49924b88444cb75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Mon, 7 Oct 2024 11:25:14 -0300 Subject: [PATCH 2/4] feat: devnet deploy and update js addresses --- js/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/main.ts b/js/src/main.ts index e74789f..d422b4d 100644 --- a/js/src/main.ts +++ b/js/src/main.ts @@ -27,11 +27,11 @@ export const VESTING_PROGRAM_ID = new PublicKey( ); export const TOKEN_MINT = new PublicKey( - 'AxfBPA1yi6my7VAjqB9fqr1AgYczuuJy8tePnNUDDPpW' + 'FGG8y8JrZrAinbBwWAB2EacQgZVyzoerdMsU1LUaRkKv' ); export const DEVNET_VESTING_PROGRAM_ID = new PublicKey( - 'HGhyAuNiYRa6oN55eGGP1MYGVve7epwT8WX6qbWxgYxM' + '5UmrfVDhyotfF6Dufved4yjFPCVJdNHu22u1e6ohSyn6' ); export const DEVNET_TOKEN_MINT = new PublicKey( From d1eede1494679a1d97620edfda0e0e30c0ef1918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Mon, 7 Oct 2024 13:05:55 -0300 Subject: [PATCH 3/4] chore: mainnet deploy --- js/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/main.ts b/js/src/main.ts index d422b4d..bed7f6c 100644 --- a/js/src/main.ts +++ b/js/src/main.ts @@ -23,7 +23,7 @@ import bs58 from 'bs58'; * The vesting schedule program ID */ export const VESTING_PROGRAM_ID = new PublicKey( - 'BHJWdCprG1HUiCZh1jhA4mJfAiXEGJXUn4pjnZXB3fGp' + 'AKUgi92CLv6ce4d6MNHZXeKUFU2SbnAzLc77JN63EGBA' ); export const TOKEN_MINT = new PublicKey( From c8d4707626c112a296583165c3ceba6ecff4a959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=C3=9Fer=20Hase?= Date: Mon, 7 Oct 2024 13:06:20 -0300 Subject: [PATCH 4/4] chore: production release --- 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 2c43fa9..efef6f1 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(