mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
removing unnecessary variable before returning the result
This commit is contained in:
parent
9c987fdedd
commit
86d9457ea1
|
@ -333,12 +333,11 @@ class FreqtradeBot(object):
|
||||||
:return: float: Stake Amount
|
:return: float: Stake Amount
|
||||||
"""
|
"""
|
||||||
if self.edge:
|
if self.edge:
|
||||||
stake_amount = self.edge.stake_amount(
|
return self.edge.stake_amount(
|
||||||
pair,
|
pair,
|
||||||
self.wallets.get_free(self.config['stake_currency']),
|
self.wallets.get_free(self.config['stake_currency']),
|
||||||
self.wallets.get_total(self.config['stake_currency'])
|
self.wallets.get_total(self.config['stake_currency'])
|
||||||
)
|
)
|
||||||
return stake_amount
|
|
||||||
else:
|
else:
|
||||||
stake_amount = self.config['stake_amount']
|
stake_amount = self.config['stake_amount']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user