diff --git a/src/exit/contracts.py b/src/exit/contracts.py index bba281a..af9ebd6 100644 --- a/src/exit/contracts.py +++ b/src/exit/contracts.py @@ -66,9 +66,7 @@ class VaultContract(ContractWrapper): class KeeperContract(ContractWrapper): - abi_path = 'abi/IKeeper.json' - - def can_harvest(self, vault: ChecksumAddress, block_number: BlockNumber | None = None) -> bool: + def can_harvest(self, vault: ChecksumAddress, block_number: BlockNumber) -> bool: return self.contract.functions.canHarvest(vault).call(block_identifier=block_number) diff --git a/src/exit/execution.py b/src/exit/execution.py index daa16e1..de606fa 100644 --- a/src/exit/execution.py +++ b/src/exit/execution.py @@ -43,7 +43,6 @@ def can_force_enter_exit_queue( fn_name='canForceEnterExitQueue', args=[vault, user] ) calls.append((leverage_strategy_contract.address, can_force_enter_exit_queue_call)) - # fetch data _, response = multicall_contract.aggregate(calls, block_number) if update_state_call: response.pop(0)