From d61c01df1b5a1d6becaa4f649527f405dae06653 Mon Sep 17 00:00:00 2001 From: Adamantios Date: Wed, 6 Sep 2023 15:32:39 +0300 Subject: [PATCH] fix: do not check if redeemed when no trades are available --- .../valory/skills/decision_maker_abci/behaviours/reedem.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/valory/skills/decision_maker_abci/behaviours/reedem.py b/packages/valory/skills/decision_maker_abci/behaviours/reedem.py index c4c4abfa8..595083910 100644 --- a/packages/valory/skills/decision_maker_abci/behaviours/reedem.py +++ b/packages/valory/skills/decision_maker_abci/behaviours/reedem.py @@ -267,6 +267,9 @@ def _conditional_tokens_interact( def _check_already_redeemed(self) -> WaitableConditionType: """Check whether we have already redeemed for this bet.""" + if len(self.trades) == 0: + return True + kwargs: Dict[str, Any] = { key: [] for key in (