aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lightning/conversionFee.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/lightning/conversionFee.js')
-rw-r--r--routes/lightning/conversionFee.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/routes/lightning/conversionFee.js b/routes/lightning/conversionFee.js
index 161f18e6..62c0ec28 100644
--- a/routes/lightning/conversionFee.js
+++ b/routes/lightning/conversionFee.js
@@ -2,14 +2,11 @@
// This is in a separate file so that the same function can be used by ./send and ./receive
const conversionFeeMultiplier = 0.01;
-const conversionFeeReceiver = "coinosfees"; // account that receives the fees
+export const conversionFeeReceiver = "coinosfees"; // account that receives the fees
/**
* Returns the fee you have to pay for withdrawing 'amount' lightning BTC.
*/
-function computeConversionFee(amount) {
+export function computeConversionFee(amount) {
return Math.floor(amount * conversionFeeMultiplier);
}
-
-module.exports.conversionFeeReceiver = conversionFeeReceiver;
-module.exports.computeConversionFee = computeConversionFee;