diff options
| author | Adam Soltys <[email protected]> | 2023-12-22 12:57:02 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-22 12:57:02 -0800 |
| commit | fbf27aaeb56cabc004c30215832126c98e7e4c6a (patch) | |
| tree | 2414e2a4db343c267ec9b31bed44157d9d7cf124 /lib/payments.js | |
| parent | 313e8d4a4277631feed002f3dedf4907cc881ced (diff) | |
| download | coinos-server-fbf27aaeb56cabc004c30215832126c98e7e4c6a.tar.gz coinos-server-fbf27aaeb56cabc004c30215832126c98e7e4c6a.zip | |
return platform fee for ln
Diffstat (limited to 'lib/payments.js')
| -rw-r--r-- | lib/payments.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/payments.js b/lib/payments.js index 9eeec99a..c76bea70 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -33,11 +33,11 @@ export let debit = async ({ user, type = types.internal, id = v4(), - rate + rate, }) => { let ref; let { id: uid, currency, username } = user; - if (!rate) rate = store.rates[currency] + if (!rate) rate = store.rates[currency]; let iid = await g(`invoice:${hash}`); if (iid && iid.hash) iid = iid.hash; @@ -73,7 +73,7 @@ export let debit = async ({ ourfee || 0, ); - if (r !== "ok") fail("Insufficient funds"); + if (r !== "ok") fail("Problem debiting account"); let p = { id, |
