Skip to content

Commit a433987

Browse files
committed
fix isExecutable
1 parent ab6bdb6 commit a433987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/commands/completeAllWithdrawals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func CompleteAllWithdrawalsCommand(args TCompleteWithdrawalArgs) error {
7272

7373
eligibleWithdrawals := lo.Map(queuedWithdrawals.Withdrawals, func(withdrawal IDelegationManager.IDelegationManagerTypesWithdrawal, index int) *IDelegationManager.IDelegationManagerTypesWithdrawal {
7474
isBeaconWithdrawal := len(withdrawal.Strategies) == 1 && withdrawal.Strategies[0].Cmp(core.BeaconStrategy()) == 0
75-
isExecutable := curBlockNumber <= uint64(withdrawal.StartBlock+minDelay)
75+
isExecutable := curBlockNumber >= uint64(withdrawal.StartBlock+minDelay)
7676
if isBeaconWithdrawal && isExecutable {
7777
return &withdrawal
7878
}

0 commit comments

Comments
 (0)