Skip to content

Commit

Permalink
small change
Browse files Browse the repository at this point in the history
  • Loading branch information
psorinionut committed Jan 22, 2025
1 parent 8ad3c89 commit 0284ccf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launchpad-guaranteed-tickets-v2/src/token_release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use launchpad_common::{config, launch_stage};

pub const MAX_PERCENTAGE: u64 = 10_000;
pub const MAX_UNLOCK_MILESTONES_ENTRIES: usize = 60;
pub const MAX_RELEASE_DIFF: u64 = 60 * 60 * 24 * 365 * 5;
pub const MAX_RELEASE_ROUND_DIFF: u64 = 155_520_000;

#[derive(TopEncode, TopDecode, NestedEncode, NestedDecode, TypeAbi, Clone, ManagedVecItem)]
pub struct UnlockMilestone {
Expand Down Expand Up @@ -46,7 +46,7 @@ impl<M: ManagedTypeApi> UnlockSchedule<M> {
if milestone.percentage > MAX_PERCENTAGE
|| milestone.release_round < current_round
|| milestone.release_round < last_round
|| milestone.release_round > current_round + MAX_RELEASE_DIFF
|| milestone.release_round > current_round + MAX_RELEASE_ROUND_DIFF
{
return false;
}
Expand Down

0 comments on commit 0284ccf

Please sign in to comment.