From 1c10bd1c5f258577cb2825531f047a581171ee2e Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Mon, 9 May 2022 08:24:27 +0100 Subject: [PATCH] Send NTFY when we cannot withdraw --- handler/sources/agora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/sources/agora.py b/handler/sources/agora.py index ec0483d..02897ea 100644 --- a/handler/sources/agora.py +++ b/handler/sources/agora.py @@ -86,9 +86,9 @@ class Agora(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):