diff options
| author | Adam Soltys <[email protected]> | 2021-05-01 02:44:17 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-05-01 02:46:25 -0700 |
| commit | a51c5f61b3ac4ff6f497eea8465a70b69b70e819 (patch) | |
| tree | cf8622075efeb4bdd447c1f4a61fbb5ad64fba96 /lib | |
| parent | b6eaad7663eec2a995cd4f399a4d8f8366e24166 (diff) | |
| download | coinos-server-a51c5f61b3ac4ff6f497eea8465a70b69b70e819.tar.gz coinos-server-a51c5f61b3ac4ff6f497eea8465a70b69b70e819.zip | |
limit lightning fees to account balance or 10000 sats
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/send.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/send.js b/lib/send.js index 12c3f5aa..660fcae4 100644 --- a/lib/send.js +++ b/lib/send.js @@ -56,7 +56,7 @@ send = async (amount, memo, hash, user) => { amt: amount, payment_request: hash, max_parts: 10, - fee_limit: { fixed: 1000 }, + fee_limit: { fixed: Math.min(10000, account.balance) }, }); if (m.payment_error) throw new Error(m.payment_error); |
