Use get_base_currency instead of splitting by /

This commit is contained in:
Matthias
2020-02-25 07:01:31 +01:00
parent e9448dc5e2
commit e8eaa8920e
2 changed files with 2 additions and 3 deletions

View File

@@ -938,8 +938,7 @@ class FreqtradeBot:
"""
# Update wallets to ensure amounts tied up in a stoploss is now free!
self.wallets.update()
wallet_amount = self.wallets.get_free(pair.split('/')[0])
wallet_amount = self.wallets.get_free(self.exchange.get_pair_base_currency(pair))
logger.debug(f"{pair} - Wallet: {wallet_amount} - Trade-amount: {amount}")
if wallet_amount >= amount:
return amount