From 58777bb1f42c021e791be8f3f2e93281986fee0a Mon Sep 17 00:00:00 2001 From: dekm Date: Tue, 28 May 2024 21:45:46 +0200 Subject: [PATCH] fix the vesting length so its correct --- x/ugdvesting/keeper/hedgehog_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/ugdvesting/keeper/hedgehog_client.go b/x/ugdvesting/keeper/hedgehog_client.go index d586f70..12e2537 100644 --- a/x/ugdvesting/keeper/hedgehog_client.go +++ b/x/ugdvesting/keeper/hedgehog_client.go @@ -122,7 +122,7 @@ func (k *Keeper) ProcessPendingVesting(ctx sdk.Context) { }) // Ramp-up periods - for i := 1; i <= int(data.Cliff); i++ { + for i := 0; i < int(data.Cliff); i++ { periods = append(periods, vestingtypes.Period{ Length: int64(periodTime.Seconds()), Amount: rampUpAmount, @@ -130,7 +130,7 @@ func (k *Keeper) ProcessPendingVesting(ctx sdk.Context) { } // Regular vesting periods - for i := int(data.Cliff) + 1; i < int(data.Parts); i++ { + for i := 0; i < int(data.Parts-1); i++ { // Subtract 1 to account for ramp UP period periods = append(periods, vestingtypes.Period{ Length: int64(periodTime.Seconds()), Amount: finalVestingAmount,