Don't handle case where base_currency is not set

(very old trades)
This commit is contained in:
Matthias 2024-04-25 19:56:27 +02:00
parent a3e6abef8d
commit 8e5c574224

View File

@ -494,7 +494,7 @@ class FreqtradeBot(LoggingMixin):
send_msg=prev_trade_state != trade.is_open)
else:
trade.exit_reason = prev_exit_reason
total = self.wallets.get_total(trade.base_currency)
total = self.wallets.get_total(trade.base_currency) if trade.base_currency else 0
if total < trade.amount:
if total > trade.amount * 0.98:
logger.warning(