From 820d2b806ff5702cb21696a1c2c95e7607d254a3 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 9 May 2022 08:24:38 +0100 Subject: [PATCH] Send NTFY when we cannot withdraw in LBTC --- handler/sources/localbitcoins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler/sources/localbitcoins.py b/handler/sources/localbitcoins.py index b891f65..505761f 100644 --- a/handler/sources/localbitcoins.py +++ b/handler/sources/localbitcoins.py @@ -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):