Add hook to release funds

This commit is contained in:
Mark Veidemanis 2021-12-29 19:21:18 +00:00
parent bdd7921bc0
commit 3bcebb9d61
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ class Transactions(object):
if not account_type == "revolut": if not account_type == "revolut":
self.irc.client.msg(self.irc.client.channel, f"Account type is not Revolut: {account_type}") self.irc.client.msg(self.irc.client.channel, f"Account type is not Revolut: {account_type}")
return return
self.irc.client.msg(self.irc.client.channel, f"All checks passed, would release funds for {stored_trade['id']} / {reference}") self.irc.client.msg(self.irc.client.channel, f"All checks passed, releasing funds for {stored_trade['id']} / {reference}")
rtrn = self.agora.release_funds(txid)
self.irc.client.msg(self.irc.client.channel, dumps(rtrn))
def new_trade(self, trade_id, buyer, currency, amount, amount_xmr): def new_trade(self, trade_id, buyer, currency, amount, amount_xmr):
""" """