ethereum / ethereum/staking-launchpad
Incorrect balance aggregation for consolidations
- Dominant language
- TypeScript
- Stars
- 304
- Forks
- 226
- PR merge metrics
- No merged PRs in 30d
Description
When you consolidate validators, the entire balance of the source validator does not necessarily get transferred to the target. It's a bit more complicated:
[Spec](https://github.com/ethereum/consensus-specs/blob/master/specs/electra/beacon-chain.md#new-process_pending_consolidations)
```python
# Calculate the consolidated balance
source_effective_balance = min(
state.balances[pending_consolidation.source_index], source_validator.effective_balance
)
```
Any balance remaining is handled via the normal sweep cycle and is sent to the withdrawal address.
The problem is the Launchpad UX suggests to the user the entire balance is swept to the target and should be fixed.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the Launchpad UI entry point that explains validator consolidations and compare its balance wording with the linked Electra specification. Update the UX so it does not imply that the entire source balance moves to the target; done means the displayed guidance accounts for the remaining balance being handled by the normal sweep cycle.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100