Skip to content

Commit

Permalink
Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cyc60 committed Dec 9, 2024
1 parent c082571 commit b6d4bd2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/exit/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
1 change: 0 additions & 1 deletion src/exit/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b6d4bd2

Please sign in to comment.