Add tests for safe_sell_amount
This commit is contained in:
@@ -901,7 +901,7 @@ class FreqtradeBot:
|
||||
:raise: DependencyException: if available balance is not within 2% of the available amount.
|
||||
"""
|
||||
wallet_amount = self.wallets.get_free(pair)
|
||||
logger.info(f"Amounts: {wallet_amount} - {amount}")
|
||||
logger.debug(f"{pair} - Wallet: {wallet_amount} - Trade-amount: {amount}")
|
||||
if wallet_amount > amount:
|
||||
return amount
|
||||
elif wallet_amount > amount * 0.98:
|
||||
|
Reference in New Issue
Block a user