mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 12:51:14 +00:00
chore: move comment to correct location
This commit is contained in:
@@ -3428,10 +3428,10 @@ class Exchange:
|
|||||||
# Find the appropriate tier based on stake_amount
|
# Find the appropriate tier based on stake_amount
|
||||||
prior_max_lev = None
|
prior_max_lev = None
|
||||||
for tier in pair_tiers:
|
for tier in pair_tiers:
|
||||||
|
# Adjust notional by leverage to do a proper comparison
|
||||||
min_stake = tier["minNotional"] / (prior_max_lev or tier["maxLeverage"])
|
min_stake = tier["minNotional"] / (prior_max_lev or tier["maxLeverage"])
|
||||||
max_stake = tier["maxNotional"] / tier["maxLeverage"]
|
max_stake = tier["maxNotional"] / tier["maxLeverage"]
|
||||||
prior_max_lev = tier["maxLeverage"]
|
prior_max_lev = tier["maxLeverage"]
|
||||||
# Adjust notional by leverage to do a proper comparison
|
|
||||||
if min_stake <= stake_amount <= max_stake:
|
if min_stake <= stake_amount <= max_stake:
|
||||||
return tier["maxLeverage"]
|
return tier["maxLeverage"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user