From dce07aa93b3c2f47aca0c24cea6adde9ec37f1a7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 8 Jan 2023 21:05:34 -0800 Subject: tech debt jubilee --- lib/sendInternal.js | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'lib/sendInternal.js') diff --git a/lib/sendInternal.js b/lib/sendInternal.js index b49a6c64..5a8b0b9d 100644 --- a/lib/sendInternal.js +++ b/lib/sendInternal.js @@ -1,12 +1,9 @@ import config from "$config"; -import db from "$db"; import { emit } from "$lib/sockets"; import store from "$lib/store"; import { callWebhook } from "$lib/webhooks"; -import axios from "axios"; import { v4 } from "uuid"; import { notify } from "$lib/notifications"; -import { sendLiquid } from "$routes/liquid/send"; import { l, err } from "$lib/logging"; import { fail } from "$lib/utils"; @@ -153,25 +150,6 @@ export default async ( await invoice.increment({ received: amount }, { transaction }); await invoice.reload({ transaction }); - - let c = store.convert[invoice.text]; - if (c) { - l( - "internal payment detected for conversion", - invoice.text, - c.address, - recipient.username - ); - - recipient.account = a2; - - sendLiquid({ - address: c.address, - amount: amount - 100, - user: recipient, - limit: amount - }).catch(console.log); - } } let p2 = await db.Payment.create(params, { transaction }); -- cgit v1.2.3