aboutsummaryrefslogtreecommitdiffstats
path: root/lib/send.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/send.js')
-rw-r--r--lib/send.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/send.js b/lib/send.js
index 414c7e3e..e30f0c4b 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -1,10 +1,6 @@
-const bolt11 = require("bolt11");
-const { Op } = require("sequelize");
-
-let {
- computeConversionFee,
- conversionFeeReceiver
-} = require("../routes/lightning/conversionFee.js");
+import bolt11 from 'bolt11';
+import { Op } from 'sequelize';
+import { computeConversionFee, conversionFeeReceiver } from '../routes/lightning/conversionFee.js';
send = async (amount, memo, hash, user) => {
l.info("attempting lightning payment", user.username, amount, hash);