Skip to content

Commit

Permalink
fix: remove stake limit while submiting ETH to cover withdrawals
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita P committed Dec 20, 2024
1 parent 4f96e0c commit ef08547
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/regression/test_all_round_happy_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def test_all_round_happy_path(accounts, stranger, steth_holder, eth_whale):
curated_module_id = 1
simple_dvt_module_id = 2

initial_stake_limit = contracts.lido.getCurrentStakeLimit()
contracts.lido.removeStakingLimit({"from": accounts.at(contracts.voting, force=True)})
""" report """
while contracts.withdrawal_queue.getLastRequestId() != contracts.withdrawal_queue.getLastFinalizedRequestId():
# finalize all current requests first
Expand All @@ -24,6 +26,7 @@ def test_all_round_happy_path(accounts, stranger, steth_holder, eth_whale):
contracts.lido.submit(ZERO_ADDRESS, {"from": eth_whale.address, "value": ETH(10000)})

contracts.lido.submit(ZERO_ADDRESS, {"from": eth_whale.address, "value": ETH(10000)})
contracts.lido.setStakingLimit(initial_stake_limit, initial_stake_limit, {"from": accounts.at(contracts.voting, force=True)})

# get accidentally unaccounted stETH shares on WQ contract
uncounted_steth_shares = contracts.lido.sharesOf(contracts.withdrawal_queue)
Expand Down

0 comments on commit ef08547

Please sign in to comment.