Skip to content

Commit

Permalink
add another comment for validate time
Browse files Browse the repository at this point in the history
  • Loading branch information
jgimeno committed Feb 23, 2024
1 parent 248b47f commit d84972c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contracts/airdrop-token-vesting/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,14 @@ impl VestingSchedule {
}
}

///
/// validate_time checks that the start_time is less than the end_time.
/// additionally, if the vesting schedule is LinearVestingWithCliff, it checks that the cliff_time
/// is less than the end_time.
///
/// Additionally, it the vesting schedule is LinearVestingWithCliff, it checks that the cliff_time
/// is bigger or equal to the block_time.
///
pub fn validate_time(
&self,
block_time: Timestamp,
Expand Down

0 comments on commit d84972c

Please sign in to comment.