Skip to content

Commit

Permalink
safely finalize all requests
Browse files Browse the repository at this point in the history
  • Loading branch information
bulbozaur committed Aug 8, 2023
1 parent fa15a68 commit f170957
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/regression/test_gate_seal.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ def test_gate_seal_scenario(steth_holder, gate_seal_committee, eth_whale):
REQUESTS_SUM = REQUESTS_COUNT * REQUEST_AMOUNT

""" finalize all requests """
contracts.lido.submit(ZERO_ADDRESS, {"from": eth_whale, "amount": ETH(50000)}),
report_tx = oracle_report(silent=True)[0]
unfinalized_steth = contracts.withdrawal_queue.unfinalizedStETH()
contracts.lido.submit(ZERO_ADDRESS, {"from": eth_whale, "amount": unfinalized_steth * 2})
while (contracts.withdrawal_queue.unfinalizedStETH()):
oracle_report(silent=True)

""" requests to be finalized """
contracts.lido.approve(contracts.withdrawal_queue.address, REQUESTS_SUM, {"from": steth_holder})
Expand Down

0 comments on commit f170957

Please sign in to comment.