Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import argparse
import asyncio
import logging
import typing

from eth_account.account import Account
from secrets import randbits

Expand All @@ -16,6 +18,7 @@
Bytes32,
BidStatus,
BidStatusUpdate,
OpportunityEvm,
)

logger = logging.getLogger(__name__)
Expand All @@ -40,7 +43,7 @@ def __init__(

def assess_opportunity(
self,
opp: Opportunity,
opp: OpportunityEvm,
) -> BidEvm | None:
"""
Assesses whether an opportunity is worth executing; if so, returns a Bid object.
Expand Down Expand Up @@ -72,7 +75,7 @@ async def opportunity_callback(self, opp: Opportunity):
Args:
opp: An object representing a single opportunity.
"""
bid = self.assess_opportunity(opp)
bid = self.assess_opportunity(typing.cast(OpportunityEvm, opp))
if bid:
try:
await self.client.submit_bid(bid)
Expand Down
Loading