We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 14dc909 + ec408f0 commit 394c149Copy full SHA for 394c149
src/jobs/validators/utils/get-validator-withdrawal-timestamp.ts
@@ -34,7 +34,7 @@ export function getValidatorWithdrawalTimestamp(
34
const diff = index.sub(lastWithdrawalValidatorIndex);
35
const percentOfActiveValidators = activeValidatorCount / totalValidatorsCount;
36
const lengthQueueValidators = diff.lt(0)
37
- ? BigNumber.from(activeValidatorCount).sub(lastWithdrawalValidatorIndex).add(index)
+ ? BigNumber.from(totalValidatorsCount).sub(lastWithdrawalValidatorIndex).add(index)
38
: diff;
39
40
const slots = lengthQueueValidators.div(BigNumber.from(WITHDRAWALS_VALIDATORS_PER_SLOT));
0 commit comments