Skip to content

Commit

Permalink
chore: added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed Dec 20, 2024
1 parent 87df706 commit bbdd2f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/stakers/keeper/exported_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (k Keeper) GetPaginatedStakersByPoolStake(ctx sdk.Context, pagination *quer
}

if stakerStatus == querytypes.STAKER_STATUS_UNSPECIFIED || stakerStatus == querytypes.STAKER_STATUS_PROTOCOL_ACTIVE {
// TODO: consider optimization
sort.Slice(addresses, func(i, j int) bool {
return k.GetValidatorTotalPoolStake(ctx, addresses[i]) > k.GetValidatorTotalPoolStake(ctx, addresses[j])
})
Expand Down

0 comments on commit bbdd2f6

Please sign in to comment.