Correct conditions for remaining stake checking

This commit is contained in:
Matthias
2023-12-14 20:34:58 +01:00
parent bb2024f789
commit 9e2e60e7ad
2 changed files with 2 additions and 5 deletions

View File

@@ -685,7 +685,7 @@ class FreqtradeBot(LoggingMixin):
return
remaining = (trade.amount - amount) * current_exit_rate
if min_exit_stake and (0 < remaining < min_exit_stake):
if min_exit_stake and remaining != 0 and remaining < min_exit_stake:
logger.info(f"Remaining amount of {remaining} would be smaller "
f"than the minimum of {min_exit_stake}.")
return