Skip to content

Commit 73b2f0c

Browse files
committed
fix: truncated guest dashboard
1 parent f6664f3 commit 73b2f0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/pkg/api/handlers/validator_dashboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ func (h *HandlerService) GetTruncatedGuestValidatorDashboard(ctx context.Context
637637
var totalBalance decimal.Decimal
638638
for _, index := range slices.Sorted(maps.Keys(effectiveBalancesMap)) { // iterate over ascending order of indices
639639
totalBalance = totalBalance.Add(utils.GWeiToWei(big.NewInt(int64(effectiveBalancesMap[index]))))
640-
if totalBalance.GreaterThanOrEqual(perks.EffectiveBalancePerDashboard) {
640+
if totalBalance.GreaterThan(perks.EffectiveBalancePerDashboard) {
641641
break
642642
}
643643
truncatedValidators = append(truncatedValidators, index)

0 commit comments

Comments
 (0)