aboutsummaryrefslogtreecommitdiffstats
path: root/routes/liquid/send.js
diff options
context:
space:
mode:
authorAdrien Hopkins <[email protected]>2022-05-31 11:47:05 -0500
committerAdrien Hopkins <[email protected]>2022-05-31 11:47:05 -0500
commit66782a32054b98ffef1f5129d719acd8de1abbe2 (patch)
treec1ab4ee448524735ef9a2d73212e910a570a2640 /routes/liquid/send.js
parentc80408c08ff2a8ca31df5ef3c7c9df13c9f714e4 (diff)
downloadcoinos-server-66782a32054b98ffef1f5129d719acd8de1abbe2.tar.gz
coinos-server-66782a32054b98ffef1f5129d719acd8de1abbe2.zip
Initial BTC withdrawal fee test
Diffstat (limited to 'routes/liquid/send.js')
-rw-r--r--routes/liquid/send.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/liquid/send.js b/routes/liquid/send.js
index 59334103..6f3616e8 100644
--- a/routes/liquid/send.js
+++ b/routes/liquid/send.js
@@ -1,6 +1,8 @@
const btc = config.liquid.btcasset;
const lcad = config.liquid.cadasset;
const { Transaction } = require("liquidjs-lib");
+const withdrawalFeeMultiplier = 0.01; // 1% withdrawal fee
+const withdrawalFeeReceiver = "coinosfees"; // 1% withdrawal fee
sendLiquid = async ({ asset, amount, user, address, memo, tx, limit }) => {
try {