Skip to content

Incorrect balance aggregation for consolidations #789

@valefar-on-discord

Description

@valefar-on-discord

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

        # 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions