Skip to content

Commit b82fcef

Browse files
committed
[walls] fix error message on InsufficientFund
1 parent fb7af51 commit b82fcef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stakemachine/strategies/walls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def updateorders(self):
4747

4848
# Buy Side
4949
if float(self.balance(self.market["base"])) < buy_price * target["amount"]["buy"]:
50-
InsufficientFundsError(Amount(target["amount"]["buy"], self.market["quote"]))
50+
InsufficientFundsError(Amount(target["amount"]["buy"] * float(buy_price), self.market["base"]))
5151
self["insufficient_buy"] = True
5252
else:
5353
self["insufficient_buy"] = False

0 commit comments

Comments
 (0)