corrected var name
This commit is contained in:
parent
4a35c8c0f3
commit
3d3b3aff3a
@ -491,7 +491,7 @@ class FreqtradeBot(LoggingMixin):
|
|||||||
# We should decrease our position
|
# We should decrease our position
|
||||||
# Strategy should return value as Decimal for accuracy.
|
# Strategy should return value as Decimal for accuracy.
|
||||||
amount = abs(float(Decimal(stake_amount) / Decimal(current_exit_rate)))
|
amount = abs(float(Decimal(stake_amount) / Decimal(current_exit_rate)))
|
||||||
if trade.amount - amount < min_exit_stake_amount:
|
if trade.amount - amount < min_exit_stake:
|
||||||
logger.info('Remaining amount would be too small')
|
logger.info('Remaining amount would be too small')
|
||||||
return
|
return
|
||||||
if amount > trade.amount:
|
if amount > trade.amount:
|
||||||
|
Loading…
Reference in New Issue
Block a user