Skip to content

Commit

Permalink
fix: bet blacklisting for non bets in list
Browse files Browse the repository at this point in the history
Co-authored-by: Adamantios Zaras <[email protected]>
  • Loading branch information
keshav1998 and Adamantios authored Nov 15, 2024
1 parent 7da9dfd commit 30ba00a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/valory/skills/market_manager_abci/behaviours.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ def _update_bets(

for bet in self.bets:
if self.synced_time >= bet.openingTimestamp - self.params.opening_margin:
index = self.get_bet_idx(bet.id)
if index is not None:
self.bets[index].blacklist_forever()
bet.blacklist_forever()

# truncate the bets, otherwise logs get too big
bets_str = str(self.bets)[:MAX_LOG_SIZE]
Expand Down

0 comments on commit 30ba00a

Please sign in to comment.