From 86d9457ea13f1f802646400ac7dbc991637d9daf Mon Sep 17 00:00:00 2001 From: misagh Date: Sat, 1 Dec 2018 10:58:05 +0100 Subject: [PATCH] removing unnecessary variable before returning the result --- freqtrade/freqtradebot.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freqtrade/freqtradebot.py b/freqtrade/freqtradebot.py index 66e32ec4b..e687b4a8d 100644 --- a/freqtrade/freqtradebot.py +++ b/freqtrade/freqtradebot.py @@ -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']