diff options
| author | Adam Soltys <[email protected]> | 2023-02-23 01:44:12 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-23 01:44:12 -0800 |
| commit | 39b669f53574258a016d338ce6fc6d0eeeae38b4 (patch) | |
| tree | 7e7d753e29199b61aa132bf70bc697a8b64915a9 /routes/lnurl.js | |
| parent | 753147ba339bc335443f9ed3a9f03eb492df1f7b (diff) | |
| download | coinos-server-39b669f53574258a016d338ce6fc6d0eeeae38b4.tar.gz coinos-server-39b669f53574258a016d338ce6fc6d0eeeae38b4.zip | |
return min max with fee estimation
Diffstat (limited to 'routes/lnurl.js')
| -rw-r--r-- | routes/lnurl.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index 381b3008..fc8107a3 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -45,7 +45,7 @@ export default { let uid = await g(`user:${username.toLowerCase()}`); if (!uid) { let u = await got(`${classic}/admin/migrate/${username}?zero=true`, { - headers: { authorization: `Bearer ${admin}` }, + headers: { authorization: `Bearer ${admin}` } }).json(); if (!u) fail("user not found"); @@ -66,7 +66,7 @@ export default { let metadata = JSON.stringify([ ["text/plain", `Paying ${username}@${host}`], - ["text/identifier", `${username}@${host}`], + ["text/identifier", `${username}@${host}`] ]); let id = v4(); @@ -77,7 +77,7 @@ export default { maxSendable: 100000000000, metadata, callback: `${URL}/api/lnurl/${id}`, - tag: "payRequest", + tag: "payRequest" }); }, @@ -91,21 +91,21 @@ export default { let metadata = JSON.stringify([ ["text/plain", `Paying ${username}@${host}`], - ["text/identifier", `${username}@${host}`], + ["text/identifier", `${username}@${host}`] ]); ({ text: pr } = await generate({ invoice: { amount: Math.round(amount / 1000), - type: types.lightning, + type: types.lightning }, memo: metadata, - user, + user })); await s(`lnurlp:${id}`, pr); } res.send({ pr, routes: [] }); - }, + } }; |
