Skip to content

Commit ec408f0

Browse files
authored
Merge pull request #254 from lidofinance/feature/si-1575-update-calculation-time-for-validators-with-withdrawable-fix
fix: validator withdrawal calculation
2 parents 862e46b + 16473cb commit ec408f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function getValidatorWithdrawalTimestamp(
3434
const diff = index.sub(lastWithdrawalValidatorIndex);
3535
const percentOfActiveValidators = activeValidatorCount / totalValidatorsCount;
3636
const lengthQueueValidators = diff.lt(0)
37-
? BigNumber.from(activeValidatorCount).sub(lastWithdrawalValidatorIndex).add(index)
37+
? BigNumber.from(totalValidatorsCount).sub(lastWithdrawalValidatorIndex).add(index)
3838
: diff;
3939

4040
const slots = lengthQueueValidators.div(BigNumber.from(WITHDRAWALS_VALIDATORS_PER_SLOT));

0 commit comments

Comments
 (0)