File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/jobs/validators/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,11 @@ export function getValidatorWithdrawalTimestamp(
30
30
const diff = index . sub ( lastWithdrawalValidatorIndex ) ;
31
31
const percentOfActiveValidators = activeValidatorCount / totalValidatorsCount ;
32
32
const lengthQueueValidators = diff . lt ( 0 )
33
- ? BigNumber . from ( activeValidatorCount ) . sub ( lastWithdrawalValidatorIndex . add ( index ) )
33
+ ? BigNumber . from ( activeValidatorCount ) . sub ( lastWithdrawalValidatorIndex ) . add ( index )
34
34
: diff ;
35
35
36
36
const slots = lengthQueueValidators . div ( BigNumber . from ( WITHDRAWALS_VALIDATORS_PER_SLOT ) ) ;
37
37
const seconds = slots . toNumber ( ) * SECONDS_PER_SLOT * percentOfActiveValidators ;
38
- console . log ( ` ${ index . toNumber ( ) } | ${ seconds / ( 60 * 60 ) } hours` ) ;
38
+
39
39
return Date . now ( ) + seconds * 1000 ;
40
40
}
You can’t perform that action at this time.
0 commit comments