diff options
author | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-02 15:44:40 +0800 |
---|---|---|
committer | Chen Wei <chenwei@byzantine-lab.io> | 2019-07-02 15:44:40 +0800 |
commit | 852df543036aac5d0d24d3a31a24818ac4c114bd (patch) | |
tree | d8758b40eea4ea8bd35aaa2e7255621fffdd702b /ui/app/helpers/utils | |
parent | ffb58b74793e9b5d5caf36efdc5d7d3867c2e162 (diff) | |
download | tangerine-wallet-browser-852df543036aac5d0d24d3a31a24818ac4c114bd.tar tangerine-wallet-browser-852df543036aac5d0d24d3a31a24818ac4c114bd.tar.gz tangerine-wallet-browser-852df543036aac5d0d24d3a31a24818ac4c114bd.tar.bz2 tangerine-wallet-browser-852df543036aac5d0d24d3a31a24818ac4c114bd.tar.lz tangerine-wallet-browser-852df543036aac5d0d24d3a31a24818ac4c114bd.tar.xz tangerine-wallet-browser-852df543036aac5d0d24d3a31a24818ac4c114bd.tar.zst tangerine-wallet-browser-852df543036aac5d0d24d3a31a24818ac4c114bd.zip |
revert replacing "ETH" with "TAN"
Diffstat (limited to 'ui/app/helpers/utils')
-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/util.js | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/ui/app/helpers/utils/confirm-tx.util.js b/ui/app/helpers/utils/confirm-tx.util.js index 92a1f668e..853427b31 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 = 'TAN', + fromCurrency = 'ETH', toCurrency, conversionRate, numberOfDecimals, @@ -75,7 +75,7 @@ export function getValueFromWeiHex ({ export function getTransactionFee ({ value, - fromCurrency = 'TAN', + fromCurrency = 'ETH', toCurrency, conversionRate, numberOfDecimals, @@ -101,7 +101,7 @@ export function formatCurrency (value, currencyCode) { export function convertTokenToFiat ({ value, - fromCurrency = 'TAN', + fromCurrency = 'ETH', toCurrency, conversionRate, contractExchangeRate, diff --git a/ui/app/helpers/utils/conversions.util.js b/ui/app/helpers/utils/conversions.util.js index 44e11d996..5e1c21ff7 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: 'TAN', + fromCurrency: 'ETH', toCurrency: convertedCurrency, numberOfDecimals: 2, conversionRate, diff --git a/ui/app/helpers/utils/util.js b/ui/app/helpers/utils/util.js index 5f9856965..94fa9ad42 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 = 'TAN') { +function formatBalance (balance, decimalsToKeep, needsParse = true, ticker = 'ETH') { var parsed = needsParse ? parseBalance(balance) : balance.split('.') var beforeDecimal = parsed[0] var afterDecimal = parsed[1] |