From 637da46122d9baa8f1ac5a1a32fba8d8373c5261 Mon Sep 17 00:00:00 2001 From: 223880 Date: Tue, 26 Mar 2024 13:42:53 -0300 Subject: [PATCH] Fix CJ --- src/app/coinjoin/main_function.jsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/coinjoin/main_function.jsx b/src/app/coinjoin/main_function.jsx index 7c1edebf..81305f60 100644 --- a/src/app/coinjoin/main_function.jsx +++ b/src/app/coinjoin/main_function.jsx @@ -11,12 +11,13 @@ const explorer = 'https://mempool.space/testnet/tx' const stats_tx_fee = 10000 -const btc_to_satoshis () { - return btc_to_satoshis; -} - class satoshis_to_btc () { - return satoshis_to_btc; - }; +let converter = new BitcoinConverter(); + +let satoshis = converter.btcToSatoshis(0.001); +console.log(satoshis); // 100000 + +let btc = converter.satoshisToBtc(100000); +console.log(btc); // 0.001 class CoinJoinRound { constructor(inputs, outputs) {