From 2f0f9e640ead76518f7f8013b16704da89421ee4 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 6 May 2020 15:09:35 -0700 Subject: internal transfers --- routes/liquid/fee.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'routes/liquid') diff --git a/routes/liquid/fee.js b/routes/liquid/fee.js index 56ec7aa1..d041a5e2 100644 --- a/routes/liquid/fee.js +++ b/routes/liquid/fee.js @@ -3,6 +3,12 @@ module.exports = async (req, res) => { let { address, asset, amount, feeRate } = req.body; let tx, fee; + let recipient = await db.User.findOne({ + where: { confidential: address } + }); + if (recipient) + emit(user.username, "to", recipient); + try { amount = parseInt(amount); -- cgit v1.2.3