diff options
| author | Adam Soltys <[email protected]> | 2020-03-29 23:22:37 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-03-29 23:22:37 -0700 |
| commit | bdbbdd4242b7a0e89d486099a97a678eeb50bb0a (patch) | |
| tree | 3eab5ba31aa6af0dcd9668ae22579d8b619cdf23 | |
| parent | ed40224a26ed2656ebbbb187a3b76b7c88107afc (diff) | |
| download | coinos-server-bdbbdd4242b7a0e89d486099a97a678eeb50bb0a.tar.gz coinos-server-bdbbdd4242b7a0e89d486099a97a678eeb50bb0a.zip | |
allow float fee rate
| -rw-r--r-- | routes/liquid/fee.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/liquid/fee.js b/routes/liquid/fee.js index 402c0b2a..cf581905 100644 --- a/routes/liquid/fee.js +++ b/routes/liquid/fee.js @@ -14,7 +14,7 @@ module.exports = async (req, res) => { subtractFeeFromOutputs: amount === user.balance ? [0] : [] } - if (feeRate) params["feeRate"] = (parseInt(feeRate) / SATS * 1000).toFixed(8); + if (feeRate) params.feeRate = (parseFloat(feeRate) / SATS * 1000).toFixed(8); tx = await lq.fundRawTransaction(tx, params); res.send({ tx }); |
