From c11e1a84e4c231c09c765ff151e96c9708d7e75a Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 7 Nov 2021 15:41:04 +0100 Subject: [PATCH] Fix wrong logging detected in #5856 --- freqtrade/wallets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py index 237c1dc2c..79dfe2544 100644 --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -250,12 +250,13 @@ class Wallets: logger.warning("Minimum stake amount > available balance.") return 0 if min_stake_amount is not None and stake_amount < min_stake_amount: - stake_amount = min_stake_amount if self._log: logger.info( f"Stake amount for pair {pair} is too small " f"({stake_amount} < {min_stake_amount}), adjusting to {min_stake_amount}." ) + stake_amount = min_stake_amount + if stake_amount > max_stake_amount: stake_amount = max_stake_amount if self._log: