diff --git a/packages/valory/skills/market_manager_abci/behaviours.py b/packages/valory/skills/market_manager_abci/behaviours.py index 59611a3d..04c26cba 100644 --- a/packages/valory/skills/market_manager_abci/behaviours.py +++ b/packages/valory/skills/market_manager_abci/behaviours.py @@ -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]