Send NTFY when we cannot withdraw in LBTC
This commit is contained in:
parent
1c10bd1c5f
commit
820d2b806f
|
@ -102,9 +102,10 @@ class LBTC(sources.local.Local):
|
|||
|
||||
if not float(wallet_xmr) > profit_usd_in_xmr:
|
||||
# Not enough funds to withdraw
|
||||
# TODO: Send a message to notify
|
||||
self.log.error(f"Not enough funds to withdraw {profit_usd_in_xmr}, as wallet only contains {wallet_xmr}")
|
||||
self.irc.sendmsg(f"Not enough funds to withdraw {profit_usd_in_xmr}, as wallet only contains {wallet_xmr}")
|
||||
self.ux.notify.notify_need_topup(profit_usd_in_xmr)
|
||||
|
||||
return
|
||||
|
||||
if not profit_usd >= float(settings.Money.WithdrawLimit):
|
||||
|
|
Loading…
Reference in New Issue