diff options
author | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-02 15:04:00 +0800 |
---|---|---|
committer | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-02 15:04:00 +0800 |
commit | ffb58b74793e9b5d5caf36efdc5d7d3867c2e162 (patch) | |
tree | 94e0b86e54e6ba2062a64bb9536a575b9f6c309b /ui/app/helpers | |
parent | 11b14616db1153510b4c37edada7463d2e9a368b (diff) | |
download | tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.gz tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.bz2 tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.lz tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.xz tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.tar.zst tangerine-wallet-browser-ffb58b74793e9b5d5caf36efdc5d7d3867c2e162.zip |
configuration, translation updating
Diffstat (limited to 'ui/app/helpers')
-rw-r--r-- | ui/app/helpers/constants/common.js | 2 | ||||
-rw-r--r-- | ui/app/helpers/utils/confirm-tx.util.js | 6 | ||||
-rw-r--r-- | ui/app/helpers/utils/conversions.util.js | 2 | ||||
-rw-r--r-- | ui/app/helpers/utils/transactions.util.js | 2 | ||||
-rw-r--r-- | ui/app/helpers/utils/util.js | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/ui/app/helpers/constants/common.js b/ui/app/helpers/constants/common.js index a0d6e65b3..6641faaae 100644 --- a/ui/app/helpers/constants/common.js +++ b/ui/app/helpers/constants/common.js @@ -1,4 +1,4 @@ -export const ETH = 'ETH' +export const ETH = 'TAN' export const GWEI = 'GWEI' export const WEI = 'WEI' diff --git a/ui/app/helpers/utils/confirm-tx.util.js b/ui/app/helpers/utils/confirm-tx.util.js index 853427b31..92a1f668e 100644 --- a/ui/app/helpers/utils/confirm-tx.util.js +++ b/ui/app/helpers/utils/confirm-tx.util.js @@ -55,7 +55,7 @@ export function addFiat (...args) { export function getValueFromWeiHex ({ value, - fromCurrency = 'ETH', + fromCurrency = 'TAN', toCurrency, conversionRate, numberOfDecimals, @@ -75,7 +75,7 @@ export function getValueFromWeiHex ({ export function getTransactionFee ({ value, - fromCurrency = 'ETH', + fromCurrency = 'TAN', toCurrency, conversionRate, numberOfDecimals, @@ -101,7 +101,7 @@ export function formatCurrency (value, currencyCode) { export function convertTokenToFiat ({ value, - fromCurrency = 'ETH', + fromCurrency = 'TAN', toCurrency, conversionRate, contractExchangeRate, diff --git a/ui/app/helpers/utils/conversions.util.js b/ui/app/helpers/utils/conversions.util.js index 5e1c21ff7..44e11d996 100644 --- a/ui/app/helpers/utils/conversions.util.js +++ b/ui/app/helpers/utils/conversions.util.js @@ -105,7 +105,7 @@ export function decEthToConvertedCurrency (ethTotal, convertedCurrency, conversi return conversionUtil(ethTotal, { fromNumericBase: 'dec', toNumericBase: 'dec', - fromCurrency: 'ETH', + fromCurrency: 'TAN', toCurrency: convertedCurrency, numberOfDecimals: 2, conversionRate, diff --git a/ui/app/helpers/utils/transactions.util.js b/ui/app/helpers/utils/transactions.util.js index b65bda5b2..e99cc3ac0 100644 --- a/ui/app/helpers/utils/transactions.util.js +++ b/ui/app/helpers/utils/transactions.util.js @@ -225,5 +225,5 @@ export function getBlockExplorerUrlForTx (networkId, hash, rpcPrefs = {}) { return `${rpcPrefs.blockExplorerUrl}/tx/${hash}` } const prefix = prefixForNetwork(networkId) - return `https://${prefix}etherscan.io/tx/${hash}` + return `https://${prefix}tangerine.garden/transaction/${hash}` } diff --git a/ui/app/helpers/utils/util.js b/ui/app/helpers/utils/util.js index 94fa9ad42..5f9856965 100644 --- a/ui/app/helpers/utils/util.js +++ b/ui/app/helpers/utils/util.js @@ -137,7 +137,7 @@ function parseBalance (balance) { // Takes wei hex, returns an object with three properties. // Its "formatted" property is what we generally use to render values. -function formatBalance (balance, decimalsToKeep, needsParse = true, ticker = 'ETH') { +function formatBalance (balance, decimalsToKeep, needsParse = true, ticker = 'TAN') { var parsed = needsParse ? parseBalance(balance) : balance.split('.') var beforeDecimal = parsed[0] var afterDecimal = parsed[1] |