Add tests for safe_sell_amount

This commit is contained in:
Matthias
2019-12-13 07:06:54 +01:00
parent 5db883906a
commit 04257d8ecc
2 changed files with 75 additions and 3 deletions

View File

@@ -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: