Only allow min-stake adjustments of up to 30%

fix #5856
This commit is contained in:
Matthias
2021-11-10 06:57:22 +01:00
parent 23a566b478
commit d3d17f9f8b
4 changed files with 13 additions and 3 deletions

View File

@@ -321,7 +321,7 @@ def test_create_trade_no_stake_amount(default_conf_usdt, ticker_usdt, fee, mocke
@pytest.mark.parametrize('stake_amount,create,amount_enough,max_open_trades', [
(5.0, True, True, 99),
(0.00005, True, False, 99),
(0.04, True, False, 99), # Amount will be adjusted to min - which is 0.051
(0, False, True, 99),
(UNLIMITED_STAKE_AMOUNT, False, True, 0),
])