Skip to content

Instantly share code, notes, and snippets.

```python
def process_pending_balance_exits(state: BeaconState) -> None:
state.withdrawal_balance_to_consume += get_validator_churn_limit(state)
for pending_balance_withdrawal in state.pending_balance_withdrawals:
if pending_balance_withdrawal.withdrawable_epoch != FAR_FUTURE_EPOCH:
continue
validator = state.validators[pending_balance_withdrawal.index]
exiting_balance = Gwei(0)