diff --git a/index.html b/index.html index 37fd680..958f00d 100644 --- a/index.html +++ b/index.html @@ -2144,7 +2144,7 @@ status = note ? note.split(':')[0] : 'PENDING'; getRef('transaction__type').textContent = 'Payment request' if (status === 'PAID') - shouldRender['txLink'] = `https://flosight.duckdns.org/tx/${note.split(':')[1].trim()}`; + shouldRender['txLink'] = `${floBlockchainAPI.current_server}tx/${note.split(':')[1].trim()}`; if (remark !== '') shouldRender.txRemark = remark } else if (params.type === 'wallet') { @@ -2164,7 +2164,7 @@ status = tag ? tag : (note ? 'REJECTED' : "PENDING"); getRef('transaction__type').textContent = mode === 'cash-to-token' ? 'Wallet top-up' : 'Withdraw'; if (status === 'COMPLETED') { - shouldRender['txLink'] = `https://flosight.duckdns.org/tx/${mode === 'cash-to-token' ? note : token_txid}` + shouldRender['txLink'] = `${floBlockchainAPI.current_server}tx/${mode === 'cash-to-token' ? note : token_txid}` } else if (status === 'REJECTED') { shouldRender.txNote = html` ${note.split(':')[1]}` } @@ -2832,7 +2832,7 @@ showChildElement('withdraw_wallet_process', 1); refreshBalance(); getRef('withdrawal_blockchain_link').classList.remove('hidden'); - getRef('withdrawal_blockchain_link').href = `https://flosight.duckdns.org/tx/${txid}` + getRef('withdrawal_blockchain_link').href = `${floBlockchainAPI.current_server}tx/${txid}` console.log(result); }).catch(error => { getRef('withdrawal_failed_reason').textContent = error; @@ -2932,7 +2932,7 @@ let result if (type === 'btc-bonds' || type === 'bobs-fund') { result = await User.sendToken(receiverFloID, amount, remarks) - document.getElementById('external_transfer__link').href = `https://flosight.duckdns.org/tx/${result}`; + document.getElementById('external_transfer__link').href = `${floBlockchainAPI.current_server}tx/${result}`; } else if (type === 'exchange') { result = await floExchangeAPI.depositToken('rupee', amount, floGlobals.myFloID, receiverFloID, privateKey) } @@ -3477,7 +3477,7 @@