Skip to content

Commit

Permalink
use longest duration as holder value
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 21, 2023
1 parent e70ac41 commit 18ee857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/pool-incentives/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (q Querier) IncentivizedPools(ctx context.Context, _ *types.QueryIncentiviz
}

// Determine the duration of the incentivized pool.
duration := lockableDurations[0]
duration := lockableDurations[len(lockableDurations)-1]
for _, pool := range incentivizedPools {
if pool.PoolId == record.ClPoolId {
duration = pool.LockableDuration
Expand Down

0 comments on commit 18ee857

Please sign in to comment.