Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: production deployment #25

Merged
merged 4 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions js/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
6 changes: 3 additions & 3 deletions program/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use crate::{
};

pub const TOKEN_MINT: Pubkey =
solana_program::pubkey!("AxfBPA1yi6my7VAjqB9fqr1AgYczuuJy8tePnNUDDPpW");
solana_program::pubkey!("FGG8y8JrZrAinbBwWAB2EacQgZVyzoerdMsU1LUaRkKv");

pub struct Processor {}

Expand Down Expand Up @@ -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;
}
_ => {
Expand Down Expand Up @@ -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;
Copy link

@zarifpour zarifpour Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • pre-release version, so we can test withdrawals quickly
  • production will have the 1 week buffer


// Pack the updated schedule back into the account data
pack_schedule_into_slice(
Expand Down
Loading