diff --git a/vesting/src/lib.rs b/vesting/src/lib.rs index b14ffe3e2..2bb1ba083 100644 --- a/vesting/src/lib.rs +++ b/vesting/src/lib.rs @@ -59,7 +59,7 @@ pub const VESTING_LOCK_ID: LockIdentifier = *b"ormlvest"; /// Benefits would be granted gradually, `per_period` amount every `period` /// of blocks after `start`. #[derive(Clone, Encode, Decode, PartialEq, Eq, RuntimeDebug, MaxEncodedLen, TypeInfo)] -pub struct VestingSchedule { +pub struct VestingSchedule { /// Vesting starting block pub start: BlockNumber, /// Number of blocks between vest @@ -71,7 +71,9 @@ pub struct VestingSchedule { pub per_period: Balance, } -impl VestingSchedule { +impl + VestingSchedule +{ /// Returns the end of all periods, `None` if calculation overflows. pub fn end(&self) -> Option { // period * period_count + start