A comment in get_total_balance reads that the function returns a minimum of 1 Gwei to avoid divisions by zero.
But since #1635, total_balance must be at least EFFECTIVE_BALANCE_INCREMENT in order to avoid a division by zero in this line of get_attestation_deltas:
rewards[index] = reward_numerator // (total_balance // increment)
It seems that either the minimum of total_balance should be raised, or the reward calculation be adjusted to avoid this edge case.
A comment in
get_total_balancereads that the function returns a minimum of 1 Gwei to avoid divisions by zero.But since #1635,
total_balancemust be at leastEFFECTIVE_BALANCE_INCREMENTin order to avoid a division by zero in this line ofget_attestation_deltas:It seems that either the minimum of
total_balanceshould be raised, or the reward calculation be adjusted to avoid this edge case.