{"eip":8068,"title":"Neutral effective balance design","description":"Make the effective balance calculation neutral so that 0x01 and 0x02 validators receive the same yield, thus facilitating consolidation.","authors":["Anders Elowsson (@anderselowsson)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-10-28","requires":[7251],"discussionsTo":"https://ethereum-magicians.org/t/eip-8068-neutral-effective-balance-design/26015","repo":"EIPs","label":"EIP-8068","officialUrl":"https://eips.ethereum.org/EIPS/eip-8068","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8068.md","url":"https://eips.huatuo.xyz/eip-8068/","tldr":{"en":"A draft consensus change to effective-balance rounding so compounding (0x02) validators earn the same yield as skimming (0x01) validators and cannot game hysteresis with partial withdrawals, removing a disincentive to consolidate stake.","ja":"実効残高の丸め方を変えるドラフト段階のコンセンサス変更。コンパウンド型（0x02）バリデーターがスキミング型（0x01）バリデーターと同じ利回りを得られ、部分出金でヒステリシスを悪用することもできなくなり、ステークを統合する際の阻害要因を取り除く。","ko":"유효 잔액 반올림 방식을 바꾸는 초안 단계의 합의 변경. 복리(0x02) 검증자가 인출형(0x01) 검증자와 같은 수익을 얻고 부분 인출로 히스테리시스를 악용할 수 없게 하여, 스테이크 통합을 가로막는 요인을 없앤다.","zh":"一项处于草案阶段的共识层改动，调整有效余额的取整方式，使复利型（0x02）验证者获得与提取型（0x01）验证者相同的收益，并且无法通过部分提款操纵滞后机制，从而消除整合质押的阻碍因素。"},"tags":["staking","consensus","effective-balance","validators","consolidation"],"explainers":{"en":{"lang":"en","tldr":"A draft consensus change to effective-balance rounding so compounding (0x02) validators earn the same yield as skimming (0x01) validators and cannot game hysteresis with partial withdrawals, removing a disincentive to consolidate stake.","tags":["staking","consensus","effective-balance","validators","consolidation"],"related":[7251,8062,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8068/","markdown":"## What problem does it solve?\n\nValidator rewards are computed from the **effective balance** (EB), a whole-ETH figure that only moves when the actual balance crosses hysteresis thresholds. Today the EB rises one step only after the balance exceeds it by 1.25 ETH and falls only when the balance drops 0.25 ETH below it.\n\nSince [EIP-7251](/eip-7251/), validators with `0x02` (compounding) credentials can hold up to 2048 ETH and let rewards accumulate. Ethereum's fast-finality roadmap depends on large operators consolidating into such validators. But the current rules punish them:\n\n- A compounding validator has on average about 0.75 ETH of balance that does not count toward its EB. A 32-ETH `0x01` (skimming) validator, swept regularly, has almost none. The spec estimates the skimming validator earns around 2.3 % more consensus-layer yield than a compounding one growing from 32.25 to 34.25 ETH.\n- A `0x02` validator can game the hysteresis: withdraw down to about 0.25 ETH below its EB (e.g. 32.75 ETH with a 33 ETH EB) and redeploy the surplus, earning more than an honest compounding validator.\n\n## How it works\n\nThe goal is a **neutral** EB that on average equals the real balance.\n\n- **New thresholds** (via `HYSTERESIS_UPWARD_MULTIPLIER = 2`, `HYSTERESIS_DOWNWARD_MULTIPLIER = 3`, with the existing 0.25 ETH hysteresis increment):\n  - step up when the balance exceeds EB + 0.5 ETH, setting the EB to the balance rounded to the nearest whole ETH;\n  - step down when the balance falls below EB − 0.75 ETH, setting the EB to the floor of the balance.\n  For a validator compounding upward, this makes the EB track the balance on average, like a 32-ETH `0x01` validator.\n- **Partial-withdrawal reset**: when a non-exiting `0x02` validator receives a partial withdrawal, a flag is set. At the next epoch processing its EB is reset to the floor of the new balance `b0`, and a one-off `temporary_upward_threshold` is stored:\n\n  `t = E + (1 + r0²) / 2`, where `E = floor(b0)` and `r0 = b0 − E` (in ETH).\n\n  The EB cannot rise again until the balance reaches both the normal threshold and `t`. The formula comes from requiring the average idle balance to be zero as the balance grows from `b0` to the next whole ETH.\n- Two new lists are added to `BeaconState`: `temporary_upward_threshold` and `reset_eb_flags`.\n\n## Sample code\n\nThe new reset helper from the spec (consensus-spec Python, values in Gwei):\n\n```python\ndef initiate_effective_balance_and_threshold(state: BeaconState, index: ValidatorIndex) -\u003e None:\n    v = state.validators[index]\n    balance = state.balances[index]\n\n    # EB = floor of balance (capped)\n    v.effective_balance = min(balance - balance % EFFECTIVE_BALANCE_INCREMENT,\n                              get_max_effective_balance(v))\n    # t = E + (1 + r0^2) / 2, scaled to Gwei\n    offset = (EFFECTIVE_BALANCE_INCREMENT\n              + (balance - v.effective_balance) ** 2 // EFFECTIVE_BALANCE_INCREMENT) // 2\n    state.temporary_upward_threshold[index] = v.effective_balance + offset\n    state.reset_eb_flags[index] = False\n```\n\nWorked example: after a withdrawal leaves 32.4 ETH, `E = 32`, `r0 = 0.4`, so `t = 32 + (1 + 0.16) / 2 = 32.58` ETH. The EB stays 32 until the balance reaches 32.58 ETH, then becomes 33.\n\n## Things to know\n\n- **Status: Draft.** It is not scheduled for a hard fork.\n- Activation would raise many validators' EBs at once at the fork boundary; the spec flags this as needing further analysis.\n- `0x01` validators are largely unaffected in normal operation, since a regularly swept 32-ETH balance stays near its EB.\n- The spec also sketches a smaller alternative that only fixes the partial-withdrawal gaming and instead narrows the yield gap with a sweep withdrawal fee for `0x01` validators, as proposed in [EIP-8062](/eip-8062/).\n- Partial withdrawals for compounding validators are requested through [EIP-7002](/eip-7002/); under this proposal each such withdrawal triggers the EB reset.\n"},"ja":{"lang":"ja","tldr":"実効残高の丸め方を変えるドラフト段階のコンセンサス変更。コンパウンド型（0x02）バリデーターがスキミング型（0x01）バリデーターと同じ利回りを得られ、部分出金でヒステリシスを悪用することもできなくなり、ステークを統合する際の阻害要因を取り除く。","tags":["staking","consensus","effective-balance","validators","consolidation"],"related":[7251,8062,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8068/","markdown":"## 何を解決するのか\n\nバリデーターの報酬は**実効残高**（EB）から計算されます。EB は ETH 単位の整数値で、実際の残高がヒステリシスのしきい値を越えたときにだけ動きます。現在、EB は残高がそれを 1.25 ETH 上回ったときにのみ 1 段階上がり、残高が 0.25 ETH 下回ったときにのみ下がります。\n\n[EIP-7251](/eip-7251/) 以降、`0x02`（コンパウンド）クレデンシャルを持つバリデーターは最大 2048 ETH を保有でき、報酬を積み上げられます。Ethereum の高速ファイナリティのロードマップは、大規模オペレーターがそのようなバリデーターに統合することを前提としています。しかし現在のルールは、彼らに不利に働きます。\n\n- コンパウンド型バリデーターは、平均して約 0.75 ETH 分の残高が EB に算入されません。定期的にスイープされる 32 ETH の `0x01`（スキミング）バリデーターには、それがほとんどありません。仕様の見積もりでは、32.25 ETH から 34.25 ETH へ増えていくコンパウンド型に比べ、スキミング型はコンセンサスレイヤーの利回りが約 2.3 % 高くなります。\n- `0x02` バリデーターはヒステリシスを悪用できます。EB を約 0.25 ETH 下回る水準（たとえば EB が 33 ETH のとき 32.75 ETH）まで出金し、余剰分を別に運用すれば、誠実なコンパウンド型バリデーターより多く稼げます。\n\n## 仕組み\n\n目標は、平均して実際の残高と等しくなる**中立的な** EB です。\n\n- **新しいしきい値**（`HYSTERESIS_UPWARD_MULTIPLIER = 2`、`HYSTERESIS_DOWNWARD_MULTIPLIER = 3` と、既存の 0.25 ETH のヒステリシス増分による）:\n  - 残高が EB + 0.5 ETH を超えたら段階を上げ、EB を残高を最も近い整数 ETH に丸めた値にします。\n  - 残高が EB − 0.75 ETH を下回ったら段階を下げ、EB を残高の切り捨て値にします。\n  上向きにコンパウンドしていくバリデーターでは、これにより EB が 32 ETH の `0x01` バリデーターと同様に、平均して残高に追従します。\n- **部分出金時のリセット**: 退出中でない `0x02` バリデーターが部分出金を受け取ると、フラグが立ちます。次のエポック処理で EB が新しい残高 `b0` の切り捨て値にリセットされ、一回限りの `temporary_upward_threshold` が保存されます。\n\n  `t = E + (1 + r0²) / 2`、ただし `E = floor(b0)`、`r0 = b0 − E`（ETH 単位）。\n\n  EB は、残高が通常のしきい値と `t` の両方に達するまで再び上がりません。この式は、残高が `b0` から次の整数 ETH へ増える間、遊休残高の平均がゼロになるという条件から導かれます。\n- `BeaconState` に 2 つの新しいリスト `temporary_upward_threshold` と `reset_eb_flags` が追加されます。\n\n## サンプルコード\n\n仕様に記載されている新しいリセット用ヘルパー（consensus-spec の Python、値は Gwei 単位）:\n\n```python\ndef initiate_effective_balance_and_threshold(state: BeaconState, index: ValidatorIndex) -\u003e None:\n    v = state.validators[index]\n    balance = state.balances[index]\n\n    # EB = floor of balance (capped)\n    v.effective_balance = min(balance - balance % EFFECTIVE_BALANCE_INCREMENT,\n                              get_max_effective_balance(v))\n    # t = E + (1 + r0^2) / 2, scaled to Gwei\n    offset = (EFFECTIVE_BALANCE_INCREMENT\n              + (balance - v.effective_balance) ** 2 // EFFECTIVE_BALANCE_INCREMENT) // 2\n    state.temporary_upward_threshold[index] = v.effective_balance + offset\n    state.reset_eb_flags[index] = False\n```\n\n具体例: 出金後に 32.4 ETH が残る場合、`E = 32`、`r0 = 0.4` なので `t = 32 + (1 + 0.16) / 2 = 32.58` ETH です。EB は残高が 32.58 ETH に達するまで 32 のままで、その後 33 になります。\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** ハードフォークへの組み込みは予定されていません。\n- 有効化すると、フォークの境界で多くのバリデーターの EB が一斉に上がります。仕様は、これにはさらなる分析が必要だと指摘しています。\n- `0x01` バリデーターは、定期的にスイープされる 32 ETH の残高が EB の近くにとどまるため、通常運用ではほとんど影響を受けません。\n- 仕様は、より小規模な代替案も示しています。部分出金の悪用だけを修正し、代わりに [EIP-8062](/eip-8062/) で提案されているような `0x01` バリデーター向けのスイープ出金手数料で利回りの差を縮めるものです。\n- コンパウンド型バリデーターの部分出金は [EIP-7002](/eip-7002/) 経由で要求されます。この提案では、そのような出金のたびに EB のリセットが発動します。\n"},"ko":{"lang":"ko","tldr":"유효 잔액 반올림 방식을 바꾸는 초안 단계의 합의 변경. 복리(0x02) 검증자가 인출형(0x01) 검증자와 같은 수익을 얻고 부분 인출로 히스테리시스를 악용할 수 없게 하여, 스테이크 통합을 가로막는 요인을 없앤다.","tags":["staking","consensus","effective-balance","validators","consolidation"],"related":[7251,8062,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8068/","markdown":"## 어떤 문제를 해결하나요?\n\n검증자 보상은 **유효 잔액**(EB)으로 계산됩니다. EB는 ETH 단위의 정수 값이며 실제 잔액이 히스테리시스 임계값을 넘을 때만 움직입니다. 현재 EB는 잔액이 EB보다 1.25 ETH 많아진 뒤에야 한 단계 오르고, 잔액이 EB보다 0.25 ETH 낮아져야 내려갑니다.\n\n[EIP-7251](/eip-7251/) 이후 `0x02`(복리) 자격 증명을 가진 검증자는 최대 2048 ETH를 보유하며 보상을 계속 쌓을 수 있습니다. 이더리움의 빠른 파이널리티 로드맵은 대형 운영자들이 이런 검증자로 통합하는 데 달려 있습니다. 그런데 현재 규칙은 오히려 이들에게 불리합니다.\n\n- 복리 검증자는 평균적으로 약 0.75 ETH의 잔액이 EB에 반영되지 않습니다. 정기적으로 스윕되는 32 ETH `0x01`(인출형) 검증자는 이런 잔액이 거의 없습니다. 스펙은 32.25 ETH에서 34.25 ETH로 늘어나는 복리 검증자보다 인출형 검증자의 합의 계층 수익이 약 2.3% 더 높다고 추정합니다.\n- `0x02` 검증자는 히스테리시스를 악용할 수 있습니다. EB보다 약 0.25 ETH 낮은 수준까지(예: EB가 33 ETH일 때 32.75 ETH) 인출하고 남는 금액을 다른 곳에 굴리면 정직한 복리 검증자보다 더 많이 벌 수 있습니다.\n\n## 어떻게 동작하나요?\n\n목표는 평균적으로 실제 잔액과 같은 **중립적인** EB입니다.\n\n- **새 임계값**(`HYSTERESIS_UPWARD_MULTIPLIER = 2`, `HYSTERESIS_DOWNWARD_MULTIPLIER = 3`과 기존 0.25 ETH 히스테리시스 증분 사용):\n  - 잔액이 EB + 0.5 ETH를 넘으면 한 단계 올리고, EB를 잔액을 가장 가까운 정수 ETH로 반올림한 값으로 설정합니다.\n  - 잔액이 EB − 0.75 ETH 아래로 떨어지면 한 단계 내리고, EB를 잔액의 내림 값으로 설정합니다.\n  위쪽으로 복리 성장하는 검증자의 경우, 이렇게 하면 32 ETH `0x01` 검증자처럼 EB가 평균적으로 잔액을 따라갑니다.\n- **부분 인출 시 리셋**: 종료 중이 아닌 `0x02` 검증자가 부분 인출을 받으면 플래그가 설정됩니다. 다음 에포크 처리에서 EB가 새 잔액 `b0`의 내림 값으로 리셋되고, 일회성 `temporary_upward_threshold`가 저장됩니다.\n\n  `t = E + (1 + r0²) / 2`, 여기서 `E = floor(b0)`, `r0 = b0 − E`(ETH 단위).\n\n  잔액이 일반 임계값과 `t`에 모두 도달하기 전까지 EB는 다시 오를 수 없습니다. 이 공식은 잔액이 `b0`에서 다음 정수 ETH까지 늘어나는 동안 평균 유휴 잔액이 0이 되어야 한다는 조건에서 나옵니다.\n- `BeaconState`에 새 리스트 두 개, `temporary_upward_threshold`와 `reset_eb_flags`가 추가됩니다.\n\n## 샘플 코드\n\n스펙의 새 리셋 헬퍼(consensus-spec Python, 값은 Gwei 단위):\n\n```python\ndef initiate_effective_balance_and_threshold(state: BeaconState, index: ValidatorIndex) -\u003e None:\n    v = state.validators[index]\n    balance = state.balances[index]\n\n    # EB = floor of balance (capped)\n    v.effective_balance = min(balance - balance % EFFECTIVE_BALANCE_INCREMENT,\n                              get_max_effective_balance(v))\n    # t = E + (1 + r0^2) / 2, scaled to Gwei\n    offset = (EFFECTIVE_BALANCE_INCREMENT\n              + (balance - v.effective_balance) ** 2 // EFFECTIVE_BALANCE_INCREMENT) // 2\n    state.temporary_upward_threshold[index] = v.effective_balance + offset\n    state.reset_eb_flags[index] = False\n```\n\n계산 예시: 인출 후 32.4 ETH가 남으면 `E = 32`, `r0 = 0.4`이므로 `t = 32 + (1 + 0.16) / 2 = 32.58` ETH입니다. EB는 잔액이 32.58 ETH에 도달할 때까지 32로 유지되다가 33이 됩니다.\n\n## 알아둘 점\n\n- **상태: Draft.** 하드 포크에 포함될 예정은 없습니다.\n- 활성화되면 포크 경계에서 많은 검증자의 EB가 한꺼번에 올라갑니다. 스펙은 이에 대해 추가 분석이 필요하다고 지적합니다.\n- 정기적으로 스윕되는 32 ETH 잔액은 EB 근처에 머물기 때문에, `0x01` 검증자는 정상 운영에서 대체로 영향을 받지 않습니다.\n- 스펙은 더 작은 대안도 제시합니다. 부분 인출 악용만 고치고, 대신 [EIP-8062](/eip-8062/)에서 제안된 것처럼 `0x01` 검증자에 대한 스윕 인출 수수료로 수익 격차를 줄이는 방식입니다.\n- 복리 검증자의 부분 인출은 [EIP-7002](/eip-7002/)를 통해 요청됩니다. 이 제안에서는 그런 인출마다 EB 리셋이 발동됩니다.\n"},"zh":{"lang":"zh","tldr":"一项处于草案阶段的共识层改动，调整有效余额的取整方式，使复利型（0x02）验证者获得与提取型（0x01）验证者相同的收益，并且无法通过部分提款操纵滞后机制，从而消除整合质押的阻碍因素。","tags":["staking","consensus","effective-balance","validators","consolidation"],"related":[7251,8062,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8068/","markdown":"## 它解决什么问题？\n\n验证者的奖励根据**有效余额**（EB）计算。EB 是一个以 ETH 为单位的整数，只有在实际余额越过滞后（hysteresis）阈值时才会变动。目前，只有当余额比 EB 高出 1.25 ETH 时，EB 才会上升一档；只有当余额比 EB 低 0.25 ETH 时，EB 才会下降。\n\n自 [EIP-7251](/eip-7251/) 起，拥有 `0x02`（复利）凭证的验证者最多可以持有 2048 ETH，并让奖励不断累积。以太坊的快速最终性路线图依赖于大型运营方整合为这类验证者。但目前的规则却在惩罚他们：\n\n- 复利型验证者平均约有 0.75 ETH 的余额不计入其 EB。而一个定期被清扫的 32 ETH `0x01`（提取型）验证者几乎没有这部分。规范估计，与从 32.25 ETH 增长到 34.25 ETH 的复利型验证者相比，提取型验证者的共识层收益高出约 2.3%。\n- `0x02` 验证者可以操纵滞后机制：把余额提取到比 EB 低约 0.25 ETH（例如 EB 为 33 ETH 时提到 32.75 ETH），并把多余部分另作他用，从而比诚实的复利型验证者赚得更多。\n\n## 它如何运作\n\n目标是得到一个平均而言等于真实余额的**中性** EB。\n\n- **新阈值**（通过 `HYSTERESIS_UPWARD_MULTIPLIER = 2`、`HYSTERESIS_DOWNWARD_MULTIPLIER = 3`，以及现有的 0.25 ETH 滞后增量）：\n  - 当余额超过 EB + 0.5 ETH 时上调一档，把 EB 设为余额四舍五入到最接近的整数 ETH；\n  - 当余额低于 EB − 0.75 ETH 时下调一档，把 EB 设为余额的向下取整值。\n  对于向上复利的验证者，这使 EB 平均而言跟踪余额，就像 32 ETH 的 `0x01` 验证者一样。\n- **部分提款重置**：当一个未退出的 `0x02` 验证者收到部分提款时，会设置一个标志。在下一次 epoch 处理时，其 EB 被重置为新余额 `b0` 的向下取整值，并存储一个一次性的 `temporary_upward_threshold`：\n\n  `t = E + (1 + r0²) / 2`，其中 `E = floor(b0)`，`r0 = b0 − E`（以 ETH 计）。\n\n  在余额同时达到正常阈值和 `t` 之前，EB 不能再次上升。这个公式来自这样一个要求：当余额从 `b0` 增长到下一个整数 ETH 时，平均闲置余额为零。\n- `BeaconState` 中新增两个列表：`temporary_upward_threshold` 和 `reset_eb_flags`。\n\n## 示例代码\n\n规范中新的重置辅助函数（consensus-spec Python，数值以 Gwei 为单位）：\n\n```python\ndef initiate_effective_balance_and_threshold(state: BeaconState, index: ValidatorIndex) -\u003e None:\n    v = state.validators[index]\n    balance = state.balances[index]\n\n    # EB = floor of balance (capped)\n    v.effective_balance = min(balance - balance % EFFECTIVE_BALANCE_INCREMENT,\n                              get_max_effective_balance(v))\n    # t = E + (1 + r0^2) / 2, scaled to Gwei\n    offset = (EFFECTIVE_BALANCE_INCREMENT\n              + (balance - v.effective_balance) ** 2 // EFFECTIVE_BALANCE_INCREMENT) // 2\n    state.temporary_upward_threshold[index] = v.effective_balance + offset\n    state.reset_eb_flags[index] = False\n```\n\n计算示例：一次提款后剩余 32.4 ETH，则 `E = 32`，`r0 = 0.4`，所以 `t = 32 + (1 + 0.16) / 2 = 32.58` ETH。EB 保持为 32，直到余额达到 32.58 ETH，之后变为 33。\n\n## 需要注意\n\n- **状态：Draft。** 尚未排入任何硬分叉。\n- 激活时会在分叉边界上一次性提高许多验证者的 EB；规范指出这需要进一步分析。\n- `0x01` 验证者在正常运行中基本不受影响，因为定期被清扫的 32 ETH 余额始终接近其 EB。\n- 规范还勾勒了一个较小的替代方案：只修复部分提款的操纵问题，并像 [EIP-8062](/eip-8062/) 所提议的那样，通过对 `0x01` 验证者收取清扫提款费用来缩小收益差距。\n- 复利型验证者的部分提款通过 [EIP-7002](/eip-7002/) 发起；在此提案下，每一次这样的提款都会触发 EB 重置。\n"}}}
