Skip to content

Commit

Permalink
fix the vesting length so its correct
Browse files Browse the repository at this point in the history
  • Loading branch information
dekm committed May 28, 2024
1 parent 5ca5e29 commit 58777bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/ugdvesting/keeper/hedgehog_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ 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,
})
}

// 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,
Expand Down

0 comments on commit 58777bb

Please sign in to comment.