From 315009a7f0cc7ce5e9fc15fdac84b5cb1f62d250 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 5 Jul 2025 19:50:26 +0200 Subject: [PATCH] chore: move comment to correct location --- freqtrade/exchange/exchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freqtrade/exchange/exchange.py b/freqtrade/exchange/exchange.py index d95f649d0..f6bc62cc0 100644 --- a/freqtrade/exchange/exchange.py +++ b/freqtrade/exchange/exchange.py @@ -3428,10 +3428,10 @@ class Exchange: # Find the appropriate tier based on stake_amount prior_max_lev = None for tier in pair_tiers: + # Adjust notional by leverage to do a proper comparison min_stake = tier["minNotional"] / (prior_max_lev or tier["maxLeverage"]) max_stake = tier["maxNotional"] / tier["maxLeverage"] prior_max_lev = tier["maxLeverage"] - # Adjust notional by leverage to do a proper comparison if min_stake <= stake_amount <= max_stake: return tier["maxLeverage"]