Skip to content

Commit

Permalink
Update execution.py
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitri Tsumak <[email protected]>
  • Loading branch information
tsudmi authored Feb 2, 2024
1 parent cd8d0be commit 9bcc131
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/validators/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,10 @@ async def get_withdrawable_assets() -> tuple[Wei, HexStr | None]:

before_update_validators = before_update_assets // DEPOSIT_AMOUNT
after_update_validators = after_update_assets // DEPOSIT_AMOUNT
if before_update_validators != after_update_validators or await keeper_contract.can_harvest(
vault_contract.contract_address
):
if before_update_validators != after_update_validators:
return Wei(after_update_assets), update_state_call

return Wei(before_update_assets), None
return Wei(before_update_assets), update_state_call


async def check_deposit_data_root(deposit_data_root: str) -> None:
Expand Down

0 comments on commit 9bcc131

Please sign in to comment.