removing unnecessary variable before returning the result

This commit is contained in:
misagh 2018-12-01 10:58:05 +01:00
parent 9c987fdedd
commit 86d9457ea1

View File

@ -333,12 +333,11 @@ class FreqtradeBot(object):
:return: float: Stake Amount
"""
if self.edge:
stake_amount = self.edge.stake_amount(
return self.edge.stake_amount(
pair,
self.wallets.get_free(self.config['stake_currency']),
self.wallets.get_total(self.config['stake_currency'])
)
return stake_amount
else:
stake_amount = self.config['stake_amount']