From 946087dd4dd2cfdd6873347438a7d9d37ae55316 Mon Sep 17 00:00:00 2001 From: RanchiMall Dev Date: Sat, 23 Aug 2025 08:34:23 +0000 Subject: [PATCH] Workflow updating files of flopay --- flopay/index.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/flopay/index.html b/flopay/index.html index c91a408..13463bc 100644 --- a/flopay/index.html +++ b/flopay/index.html @@ -1569,7 +1569,8 @@ floDapps.launchStartUp().then(result => { console.log(`Welcome ${floDapps.user.id}`); floGlobals.myFloID = floCrypto.toFloID(floDapps.user.id); - floGlobals.myBtcID = btcOperator.convert.legacy2bech(floGlobals.myFloID) + floGlobals.myBtcID = btcOperator.convert.legacy2bech(floGlobals.myFloID); + getRef('user_profile_id').textContent = floGlobals.myFloID let showingFloID = true // alternating between floID and btcID every 10 seconds @@ -3642,6 +3643,10 @@ My Bitcoin address +
+ My Ethereum USDT USDC address + +
${!floGlobals.isPrivKeySecured ? html` @@ -3880,6 +3885,7 @@ async function refreshBalance(button) { if (usdtOut) usdtOut.textContent = '0'; const ethAddr = await getUserEthAddress(); + floGlobals.myEthID = ethAddr; if (ethAddr && window.ethOperator) { const [ethBal, usdcBal, usdtBal] = await Promise.all([ ethOperator.getBalance(ethAddr), @@ -3905,9 +3911,9 @@ async function refreshBalance(button) { // If no ETH stack, placeholders remain } catch (e) { console.error('ERC-20 balance fetch failed:', e); - if (getRef('eth_balance')) getRef('eth_balance').textContent = '—'; - if (getRef('usdc_erc20_balance')) getRef('usdc_erc20_balance').textContent = '—'; - if (getRef('usdt_erc20_balance')) getRef('usdt_erc20_balance').textContent = '—'; + if (getRef('eth_balance')) getRef('eth_balance').textContent = '0'; + if (getRef('usdc_erc20_balance')) getRef('usdc_erc20_balance').textContent = '0'; + if (getRef('usdt_erc20_balance')) getRef('usdt_erc20_balance').textContent = '0'; } }