Skip to content

[Feat] Consolidation limits the max fee it will pay #60

Description

@yorickdowne

Description

When consolidating "a bunch" of validators, one after the other from the same wallet, valctl sends the escalating fee the contract charges without a ceiling or warning.

Reproduction steps

Send "many" consolidation requests in a short amount of time - in our case under 500 escalated the fee the contract charges to where it drained our wallet.

Current Behavior

Started sending ETH to the consolidation contract without limit, eventually wiping us out. See https://hoodi.etherscan.io/txs?a=0xb6639c4d2c0967414f86919ccdd9af3f76f88ab1&p=5 - it starts with 0 ETH, then sends a bit, and eventually sends 200+ ETH per call.

Expected Behavior

eth-valctl warns the user about high fees as the queue grows, maybe even limits to a max and backs off when fee is higher than that

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions