diff --git a/index.html b/index.html index 183ac28..a722442 100644 --- a/index.html +++ b/index.html @@ -5,1573 +5,7 @@ Local Bitcoin++ - - +
@@ -18520,6 +16954,28 @@ let withdrawing_cash_amount = helper_functions.truncateDecimals( params.withdrawing_amount, 2 ); + + let supernode_token_balance_url; + if (ENVR === "LIVE") { + supernode_token_balance_url = localbitcoinplusplus.server.flo_api_mainnet; + } else { + supernode_token_balance_url = localbitcoinplusplus.server.flo_api_testnet; + } + + const supernode_token_balance = await helper_functions.ajaxGet(supernode_token_balance_url); + if(typeof supernode_token_balance!=="object" + || typeof supernode_token_balance.floAddressBalances !== "object" + || supernode_token_balance.floAddressBalances[Object.keys(supernode_token_balance.floAddressBalances)] + .balance