aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/account-link.js
blob: a87e8c5607087148118fc889f7ac7298e6ef1951 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module.exports = function (address, network) {
  const net = parseInt(network)
  let link
  switch (net) {
    case 1: // main net
    case 237: // main net
      link = `https://dexonscan.app/address/${address}`
      break
    case 2: // test net
    case 238: // test net
    default:
      link = `https://testnet.dexonscan.app/address/${address}`
      break
  }

  return link
}