Send NTFY when we cannot withdraw

This commit is contained in:
Mark Veidemanis 2022-05-09 08:24:27 +01:00
parent 4089318343
commit 1c10bd1c5f
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 1 additions and 1 deletions

View File

@ -86,9 +86,9 @@ class Agora(sources.local.Local):
if not float(wallet_xmr) > profit_usd_in_xmr: if not float(wallet_xmr) > profit_usd_in_xmr:
# Not enough funds to withdraw # 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.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.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 return
if not profit_usd >= float(settings.Money.WithdrawLimit): if not profit_usd >= float(settings.Money.WithdrawLimit):