Keep max_stake_amount (only relevant for DCA orders).

This commit is contained in:
Matthias
2022-12-27 13:42:56 +01:00
parent 6f2c3e2528
commit 55001bf321
3 changed files with 12 additions and 7 deletions

View File

@@ -264,6 +264,7 @@ def test_migrate_new(mocker, default_conf, fee, caplog):
assert pytest.approx(trade.open_trade_value) == trade._calc_open_trade_value(
trade.amount, trade.open_rate)
assert trade.close_profit_abs is None
assert trade.stake_amount == trade.max_stake_amount
orders = trade.orders
assert len(orders) == 4