From 33b04b1992acc4a68b071e14def01c6218a9599d Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Mon, 7 Feb 2022 02:47:18 -0600 Subject: [PATCH] deleted outdated todos --- freqtrade/exchange/exchange.py | 2 +- tests/optimize/test_backtesting.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index 490792627..763386f54 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -750,7 +750,7 @@ class Exchange: return self._get_stake_amount_considering_leverage( max(stake_limits) * amount_reserve_percent, leverage or 1.0 - ) if isMin else min(stake_limits) # TODO-lev: Account 4 max_reserve_percent in max limits? + ) if isMin else min(stake_limits) def _get_stake_amount_considering_leverage(self, stake_amount: float, leverage: float): """ diff --git a/tests/optimize/test_backtesting.py b/tests/optimize/test_backtesting.py index ca1d20cfb..56b815d68 100644 --- a/tests/optimize/test_backtesting.py +++ b/tests/optimize/test_backtesting.py @@ -497,7 +497,6 @@ def test_backtesting_pairlist_list(default_conf, mocker, caplog, testdatadir, ti def test_backtest__enter_trade(default_conf, fee, mocker) -> None: - # TODO-lev: test max_pair_stake_amount default_conf['use_sell_signal'] = False mocker.patch('freqtrade.exchange.Exchange.get_fee', fee) mocker.patch("freqtrade.exchange.Exchange.get_min_pair_stake_amount", return_value=0.00001)