Skip to content

Commit

Permalink
fix: remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarens2 committed Sep 19, 2024
1 parent 46935df commit b15c5af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export function getValidatorWithdrawalTimestamp(
const diff = index.sub(lastWithdrawalValidatorIndex);
const percentOfActiveValidators = activeValidatorCount / totalValidatorsCount;
const lengthQueueValidators = diff.lt(0)
? BigNumber.from(activeValidatorCount).sub(lastWithdrawalValidatorIndex.add(index))
? BigNumber.from(activeValidatorCount).sub(lastWithdrawalValidatorIndex).add(index)
: diff;

const slots = lengthQueueValidators.div(BigNumber.from(WITHDRAWALS_VALIDATORS_PER_SLOT));
const seconds = slots.toNumber() * SECONDS_PER_SLOT * percentOfActiveValidators;
console.log(`${index.toNumber()} | ${seconds / (60 * 60)} hours`);

return Date.now() + seconds * 1000;
}

0 comments on commit b15c5af

Please sign in to comment.