Fix 0.0 amount message wording

This commit is contained in:
Matthias 2022-09-21 06:42:55 +02:00
parent ff36431680
commit 8f41f943b4
2 changed files with 2 additions and 2 deletions

View File

@ -594,7 +594,7 @@ class FreqtradeBot(LoggingMixin):
amount = trade.amount amount = trade.amount
if amount == 0.0: if amount == 0.0:
logger.info("Amount to sell is 0.0 due to exchange limits - not selling.") logger.info("Amount to exit is 0.0 due to exchange limits - not exiting.")
return return
remaining = (trade.amount - amount) * current_exit_rate remaining = (trade.amount - amount) * current_exit_rate

View File

@ -521,4 +521,4 @@ def test_dca_exiting(default_conf_usdt, ticker_usdt, fee, mocker, caplog) -> Non
assert trade.orders[-1].ft_order_side == 'sell' assert trade.orders[-1].ft_order_side == 'sell'
assert pytest.approx(trade.stake_amount) == 40.198 assert pytest.approx(trade.stake_amount) == 40.198
assert trade.is_open assert trade.is_open
assert log_has_re('Amount to sell is 0.0 due to exchange limits - not selling.', caplog) assert log_has_re('Amount to exit is 0.0 due to exchange limits - not exiting.', caplog)