From 881768c9d59b3b1ada64237188500852842a2fcb Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Wed, 3 Apr 2024 17:45:48 +0300 Subject: [PATCH] Replace MAX_EB with MIN_AB --- specs/_features/eip7251/beacon-chain.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/_features/eip7251/beacon-chain.md b/specs/_features/eip7251/beacon-chain.md index 52cbc978a..ca49de8ed 100644 --- a/specs/_features/eip7251/beacon-chain.md +++ b/specs/_features/eip7251/beacon-chain.md @@ -454,9 +454,9 @@ def switch_to_compounding_validator(state: BeaconState, index: ValidatorIndex) - ```python def queue_excess_active_balance(state: BeaconState, index: ValidatorIndex) -> None: balance = state.balances[index] - if balance > MAX_EFFECTIVE_BALANCE: - excess_balance = balance - MAX_EFFECTIVE_BALANCE - state.balances[index] = balance - excess_balance + if balance > MIN_ACTIVATION_BALANCE: + excess_balance = balance - MIN_ACTIVATION_BALANCE + state.balances[index] = MIN_ACTIVATION_BALANCE state.pending_balance_deposits.append( PendingBalanceDeposit(index=index, amount=excess_balance) )