aboutsummaryrefslogtreecommitdiffstats
path: root/lib/sendInternal.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-08 21:05:34 -0800
committerAdam Soltys <[email protected]>2023-01-08 21:05:34 -0800
commitdce07aa93b3c2f47aca0c24cea6adde9ec37f1a7 (patch)
tree6c6b8930ebe9c2cc5b8d1f759e61260f509fdd7a /lib/sendInternal.js
parentf7b844883506a8072213245b9b8a2b988694e4f5 (diff)
downloadcoinos-server-dce07aa93b3c2f47aca0c24cea6adde9ec37f1a7.tar.gz
coinos-server-dce07aa93b3c2f47aca0c24cea6adde9ec37f1a7.zip
tech debt jubilee
Diffstat (limited to 'lib/sendInternal.js')
-rw-r--r--lib/sendInternal.js22
1 files changed, 0 insertions, 22 deletions
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 });