Skip to content

Commit b15c5af

Browse files
committed
fix: remove console logs
1 parent 46935df commit b15c5af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jobs/validators/utils/get-validator-withdrawal-timestamp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export function getValidatorWithdrawalTimestamp(
3030
const diff = index.sub(lastWithdrawalValidatorIndex);
3131
const percentOfActiveValidators = activeValidatorCount / totalValidatorsCount;
3232
const lengthQueueValidators = diff.lt(0)
33-
? BigNumber.from(activeValidatorCount).sub(lastWithdrawalValidatorIndex.add(index))
33+
? BigNumber.from(activeValidatorCount).sub(lastWithdrawalValidatorIndex).add(index)
3434
: diff;
3535

3636
const slots = lengthQueueValidators.div(BigNumber.from(WITHDRAWALS_VALIDATORS_PER_SLOT));
3737
const seconds = slots.toNumber() * SECONDS_PER_SLOT * percentOfActiveValidators;
38-
console.log(`${index.toNumber()} | ${seconds / (60 * 60)} hours`);
38+
3939
return Date.now() + seconds * 1000;
4040
}

0 commit comments

Comments
 (0)