Nag on IRC if there's not enough in the XMR wallet to withdraw
This commit is contained in:
parent
7b5290a1e0
commit
a4ae7da715
|
@ -654,6 +654,7 @@ class Agora(object):
|
|||
self.log.error(
|
||||
"Not enough funds to withdraw {profit}, as wallet only contains {wallet}", profit=profit_usd_in_xmr, wallet=wallet_xmr
|
||||
)
|
||||
self.irc.sendmsg(f"Not enough funds to withdraw {profit_usd_in_xmr}, as wallet only contains {wallet_xmr}")
|
||||
return
|
||||
|
||||
if not profit_usd >= float(settings.Money.WithdrawLimit):
|
||||
|
@ -677,4 +678,4 @@ class Agora(object):
|
|||
send_cast["address"] = settings.XMR.Wallet2
|
||||
rtrn2 = self.agora.wallet_send_xmr(**send_cast)
|
||||
|
||||
return (rtrn1["success"], rtrn2["success"])
|
||||
self.irc.sendmsg(f"Withdrawal: {rtrn1['success']} | {rtrn2['success']}")
|
||||
|
|
|
@ -407,5 +407,4 @@ class IRCCommands(object):
|
|||
|
||||
@staticmethod
|
||||
def run(cmd, spl, length, authed, msg, agora, revolut, tx):
|
||||
rtrn = agora.withdraw_funds()
|
||||
msg(dumps(rtrn))
|
||||
agora.withdraw_funds()
|
||||
|
|
Loading…
Reference in New Issue