Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudmi committed Dec 26, 2024
1 parent fa4d5c6 commit e20c96e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/exit/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def claim_exited_assets(
)
calls.append((leverage_strategy_contract.address, claim_call))
try:
tx = multicall_contract.aggregate(calls).transact()
tx = multicall_contract.functions.aggregate(calls).transact()
except Exception as e:
logger.error(
'Failed to claim exited assets for leverage position: vault=%s, user=%s %s...',
Expand Down
3 changes: 2 additions & 1 deletion src/exit/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
from web3.types import BlockNumber, ChecksumAddress

from src.common.graph import get_harvest_params
from src.common.typings import HarvestParams
from src.common.settings import NETWORK
from src.common.typings import HarvestParams

from .clients import graph_client
from .typings import ExitRequest, LeveragePosition, OsTokenExitRequest

Expand Down
3 changes: 1 addition & 2 deletions src/exit/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ async def handle_leverage_positions(block_number: BlockNumber) -> None:
async def handle_ostoken_exit_requests(block_number: BlockNumber) -> None:
"""Process osTokenExitRequests from graph and claim exited assets."""
# force claim for exit positions
max_ltv_percent = ostoken_vault_escrow_contract.liq_threshold_percent()
max_ltv_percent = max_ltv_percent / WAD
max_ltv_percent = ostoken_vault_escrow_contract.liq_threshold_percent() / WAD
exit_requests = await graph_ostoken_exit_requests(max_ltv_percent, block_number=block_number)
exit_requests = [
exit_request for exit_request in exit_requests if exit_request.exit_request.can_be_claimed
Expand Down

0 comments on commit e20c96e

Please sign in to comment.