Finish implementation and tests for the cheat system #3
|
@ -654,6 +654,7 @@ class Agora(object):
|
||||||
self.log.error(
|
self.log.error(
|
||||||
"Not enough funds to withdraw {profit}, as wallet only contains {wallet}", profit=profit_usd_in_xmr, wallet=wallet_xmr
|
"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
|
return
|
||||||
|
|
||||||
if not profit_usd >= float(settings.Money.WithdrawLimit):
|
if not profit_usd >= float(settings.Money.WithdrawLimit):
|
||||||
|
@ -677,4 +678,4 @@ class Agora(object):
|
||||||
send_cast["address"] = settings.XMR.Wallet2
|
send_cast["address"] = settings.XMR.Wallet2
|
||||||
rtrn2 = self.agora.wallet_send_xmr(**send_cast)
|
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
|
@staticmethod
|
||||||
def run(cmd, spl, length, authed, msg, agora, revolut, tx):
|
def run(cmd, spl, length, authed, msg, agora, revolut, tx):
|
||||||
rtrn = agora.withdraw_funds()
|
agora.withdraw_funds()
|
||||||
msg(dumps(rtrn))
|
|
||||||
|
|
Loading…
Reference in New Issue