From 3bcebb9d612cb4232867914313c8a8933d64dd9d Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Wed, 29 Dec 2021 19:21:18 +0000 Subject: [PATCH] Add hook to release funds --- handler/transactions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handler/transactions.py b/handler/transactions.py index dd89b6a..06c6ffe 100644 --- a/handler/transactions.py +++ b/handler/transactions.py @@ -117,7 +117,9 @@ class Transactions(object): if not account_type == "revolut": self.irc.client.msg(self.irc.client.channel, f"Account type is not Revolut: {account_type}") 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): """