From 02c1558ad1a208cf51a9df06df341145ddefb7ba Mon Sep 17 00:00:00 2001 From: Jongwon Park Date: Mon, 9 Sep 2024 11:14:19 -0500 Subject: [PATCH] fix(x/evmstaking): swept len --- client/x/evmstaking/keeper/withdraw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/x/evmstaking/keeper/withdraw.go b/client/x/evmstaking/keeper/withdraw.go index ed81396e..4ad7e53f 100644 --- a/client/x/evmstaking/keeper/withdraw.go +++ b/client/x/evmstaking/keeper/withdraw.go @@ -159,7 +159,7 @@ func (k Keeper) ExpectedPartialWithdrawals(ctx context.Context) ([]estypes.Withd nextValDelIndex = 0 // Increase the total swept amount. - swept += uint32(len(delegators)) + swept += uint32(len(nextDelegators)) } // Update the validator sweep index.