allow trade to be closed via partial exit call if remaining amount is exactly 0

This commit is contained in:
Stefano Ariestasia
2023-12-05 17:10:15 +09:00
parent af05e3d747
commit 90332128b1

View File

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