diff options
author | Hsuan Lee <boczeratul@gmail.com> | 2018-10-24 15:40:38 +0800 |
---|---|---|
committer | Hsuan Lee <hsuan@cobinhood.com> | 2018-12-10 18:27:43 +0800 |
commit | b9b8c9d70bfa12aa5c752f05d676b2e1a67405b6 (patch) | |
tree | 6f38bcb507cf0c1286379ac4320a02c8a15679cc /ui | |
parent | 1707172b35661330c34ed90209676ecc945611f9 (diff) | |
download | dexon-wallet-b9b8c9d70bfa12aa5c752f05d676b2e1a67405b6.tar.gz dexon-wallet-b9b8c9d70bfa12aa5c752f05d676b2e1a67405b6.tar.zst dexon-wallet-b9b8c9d70bfa12aa5c752f05d676b2e1a67405b6.zip |
Update Dexon wording
Diffstat (limited to 'ui')
24 files changed, 68 insertions, 69 deletions
diff --git a/ui/app/components/currency-display/index.scss b/ui/app/components/currency-display/index.scss index 313c932b..17410dc9 100644 --- a/ui/app/components/currency-display/index.scss +++ b/ui/app/components/currency-display/index.scss @@ -6,6 +6,7 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + color: $white; } &__suffix { diff --git a/ui/app/components/currency-display/tests/currency-display.container.test.js b/ui/app/components/currency-display/tests/currency-display.container.test.js index 9888c366..7973bf60 100644 --- a/ui/app/components/currency-display/tests/currency-display.container.test.js +++ b/ui/app/components/currency-display/tests/currency-display.container.test.js @@ -69,21 +69,18 @@ describe('CurrencyDisplay container', () => { { props: { value: '0x1193461d01595930', - currency: 'ETH', - nativeCurrency: 'ETH', + currency: 'DEX', numberOfDecimals: 3, }, result: { displayValue: '1.266', - suffix: 'ETH', - nativeCurrency: 'ETH', + suffix: 'DEX', }, }, { props: { value: '0x1193461d01595930', - currency: 'ETH', - nativeCurrency: 'ETH', + currency: 'DEX', numberOfDecimals: 3, hideLabel: true, }, @@ -96,8 +93,7 @@ describe('CurrencyDisplay container', () => { { props: { value: '0x3b9aca00', - currency: 'ETH', - nativeCurrency: 'ETH', + currency: 'DEX', denomination: 'GWEI', hideLabel: true, }, @@ -110,8 +106,7 @@ describe('CurrencyDisplay container', () => { { props: { value: '0x3b9aca00', - currency: 'ETH', - nativeCurrency: 'ETH', + currency: 'DEX', denomination: 'WEI', hideLabel: true, }, @@ -124,8 +119,7 @@ describe('CurrencyDisplay container', () => { { props: { value: '0x3b9aca00', - currency: 'ETH', - nativeCurrency: 'ETH', + currency: 'DEX', numberOfDecimals: 100, hideLabel: true, }, diff --git a/ui/app/components/currency-input/currency-input.component.js b/ui/app/components/currency-input/currency-input.component.js index 0761a75c..8a12851d 100644 --- a/ui/app/components/currency-input/currency-input.component.js +++ b/ui/app/components/currency-input/currency-input.component.js @@ -3,7 +3,7 @@ import PropTypes from 'prop-types' import UnitInput from '../unit-input' import CurrencyDisplay from '../currency-display' import { getValueFromWeiHex, getWeiHexFromDecimalValue } from '../../helpers/conversions.util' -import { ETH } from '../../constants/common' +import { DEX } from '../../constants/common' /** * Component that allows user to enter currency values as a number, and props receive a converted @@ -52,7 +52,7 @@ export default class CurrencyInput extends PureComponent { value: hexValue, toCurrency: currentCurrency, conversionRate, numberOfDecimals: 2, }) : getValueFromWeiHex({ - value: hexValue, toCurrency: ETH, numberOfDecimals: 6, + value: hexValue, toCurrency: DEX, numberOfDecimals: 6, }) return Number(decimalValueString) || 0 @@ -66,7 +66,7 @@ export default class CurrencyInput extends PureComponent { value: decimalValue, fromCurrency, conversionRate, invertConversionRate: true, }) : getWeiHexFromDecimalValue({ - value: decimalValue, fromCurrency: ETH, fromDenomination: ETH, conversionRate, + value: decimalValue, fromCurrency: DEX, fromDenomination: DEX, conversionRate, }) this.setState({ hexValue, decimalValue }) @@ -78,13 +78,13 @@ export default class CurrencyInput extends PureComponent { } renderConversionComponent () { - const { useFiat, currentCurrency, nativeCurrency } = this.props + const { useFiat, currentCurrency } = this.props const { hexValue } = this.state let currency, numberOfDecimals if (useFiat) { - // Display ETH - currency = nativeCurrency || ETH + // Display DEX + currency = DEX numberOfDecimals = 6 } else { // Display Fiat diff --git a/ui/app/components/currency-input/currency-input.container.js b/ui/app/components/currency-input/currency-input.container.js index 1d1ed7b4..941e9380 100644 --- a/ui/app/components/currency-input/currency-input.container.js +++ b/ui/app/components/currency-input/currency-input.container.js @@ -1,6 +1,6 @@ import { connect } from 'react-redux' import CurrencyInput from './currency-input.component' -import { ETH } from '../../constants/common' +import { DEX } from '../../constants/common' const mapStateToProps = state => { const { metamask: { nativeCurrency, currentCurrency, conversionRate } } = state @@ -13,9 +13,9 @@ const mapStateToProps = state => { } const mergeProps = (stateProps, dispatchProps, ownProps) => { - const { nativeCurrency, currentCurrency } = stateProps + const { currentCurrency } = stateProps const { useFiat } = ownProps - const suffix = useFiat ? currentCurrency.toUpperCase() : nativeCurrency || ETH + const suffix = useFiat ? currentCurrency.toUpperCase() : DEX return { ...stateProps, diff --git a/ui/app/components/currency-input/tests/currency-input.container.test.js b/ui/app/components/currency-input/tests/currency-input.container.test.js index 5d72958e..27965ec0 100644 --- a/ui/app/components/currency-input/tests/currency-input.container.test.js +++ b/ui/app/components/currency-input/tests/currency-input.container.test.js @@ -52,8 +52,12 @@ describe('CurrencyInput container', () => { assert.deepEqual(mergeProps(mockStateProps, mockDispatchProps, {}), { conversionRate: 280.45, currentCurrency: 'usd', +<<<<<<< HEAD nativeCurrency: 'ETH', suffix: 'ETH', +======= + suffix: 'DEX', +>>>>>>> Update Dexon wording }) }) }) diff --git a/ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js b/ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js index 7f1fb4e4..dfd1cea8 100644 --- a/ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js +++ b/ui/app/components/pages/confirm-token-transaction-base/confirm-token-transaction-base.component.js @@ -9,7 +9,7 @@ import { roundExponential, } from '../../../helpers/confirm-transaction/util' import { getWeiHexFromDecimalValue } from '../../../helpers/conversions.util' -import { ETH, PRIMARY } from '../../../constants/common' +import { DEX, PRIMARY } from '../../../constants/common' export default class ConfirmTokenTransactionBase extends Component { static contextTypes = { @@ -45,8 +45,8 @@ export default class ConfirmTokenTransactionBase extends Component { const decimalEthValue = (tokenAmount * contractExchangeRate) || 0 const hexWeiValue = getWeiHexFromDecimalValue({ value: decimalEthValue, - fromCurrency: ETH, - fromDenomination: ETH, + fromCurrency: DEX, + fromDenomination: DEX, }) return typeof contractExchangeRate === 'undefined' @@ -72,7 +72,7 @@ export default class ConfirmTokenTransactionBase extends Component { <div> <span>{ `${tokensText} + ` }</span> <img - src="/images/eth.svg" + src="/images/dexon_logo.svg" height="18" /> <span>{ ethTransactionTotal }</span> diff --git a/ui/app/components/send/send-header/send-header.selectors.js b/ui/app/components/send/send-header/send-header.selectors.js index d7c9d376..3d5ca404 100644 --- a/ui/app/components/send/send-header/send-header.selectors.js +++ b/ui/app/components/send/send-header/send-header.selectors.js @@ -19,7 +19,7 @@ function getTitleKey (state) { } else if (isToken) { return 'sendTokens' } else { - return 'sendETH' + return 'sendDEX' } } @@ -32,6 +32,6 @@ function getSubtitleParams (state) { } else if (token) { return [ 'onlySendTokensToAccountAddress', [ token.symbol ] ] } else { - return [ 'onlySendToEtherAddress' ] + return [ 'onlySendToDexonAddress' ] } } diff --git a/ui/app/components/send/send-header/tests/send-header-selectors.test.js b/ui/app/components/send/send-header/tests/send-header-selectors.test.js index e0c6a3ab..d6d090ae 100644 --- a/ui/app/components/send/send-header/tests/send-header-selectors.test.js +++ b/ui/app/components/send/send-header/tests/send-header-selectors.test.js @@ -23,7 +23,7 @@ describe('send-header selectors', () => { }) it('should return the correct key when getSendEditingTransactionId is falsy and getSelectedToken is falsy', () => { - assert.equal(getTitleKey({ e: null }), 'sendETH') + assert.equal(getTitleKey({ e: null }), 'sendDEX') }) }) @@ -40,7 +40,7 @@ describe('send-header selectors', () => { }) it('should return the correct params when getSendEditingTransactionId is falsy and getSelectedToken is falsy', () => { - assert.deepEqual(getSubtitleParams({ e: null }), [ 'onlySendToEtherAddress' ]) + assert.deepEqual(getSubtitleParams({ e: null }), [ 'onlySendToDexonAddress' ]) }) }) diff --git a/ui/app/components/shapeshift-form.js b/ui/app/components/shapeshift-form.js index a842bcc8..14513959 100644 --- a/ui/app/components/shapeshift-form.js +++ b/ui/app/components/shapeshift-form.js @@ -58,7 +58,7 @@ function ShapeshiftForm () { } ShapeshiftForm.prototype.getCoinPair = function () { - return `${this.state.depositCoin.toUpperCase()}_ETH` + return `${this.state.depositCoin.toUpperCase()}_DEX` } ShapeshiftForm.prototype.componentWillMount = function () { @@ -211,7 +211,7 @@ ShapeshiftForm.prototype.render = function () { this.context.t('receive'), ]), - h('div.shapeshift-form__selector-input', ['ETH']), + h('div.shapeshift-form__selector-input', ['DEX']), ]), diff --git a/ui/app/components/signature-request.js b/ui/app/components/signature-request.js index 85af3b00..1c031ef8 100644 --- a/ui/app/components/signature-request.js +++ b/ui/app/components/signature-request.js @@ -122,7 +122,7 @@ SignatureRequest.prototype.renderBalance = function () { h('div.request-signature__balance-text', `${this.context.t('balance')}:`), - h('div.request-signature__balance-value', `${balanceInEther} ETH`), + h('div.request-signature__balance-value', `${balanceInEther} DEX`), ]) } diff --git a/ui/app/components/token-input/token-input.component.js b/ui/app/components/token-input/token-input.component.js index 10fa1151..e85436b7 100644 --- a/ui/app/components/token-input/token-input.component.js +++ b/ui/app/components/token-input/token-input.component.js @@ -5,7 +5,7 @@ import CurrencyDisplay from '../currency-display' import { getWeiHexFromDecimalValue } from '../../helpers/conversions.util' import ethUtil from 'ethereumjs-util' import { conversionUtil, multiplyCurrencies } from '../../conversion-util' -import { ETH } from '../../constants/common' +import { DEX } from '../../constants/common' /** * Component that allows user to enter token values as a number, and props receive a converted @@ -91,15 +91,15 @@ export default class TokenInput extends PureComponent { numberOfDecimals = 2 } else { // Display ETH - currency = ETH + currency = DEX numberOfDecimals = 6 } const decimalEthValue = (decimalValue * selectedTokenExchangeRate) || 0 const hexWeiValue = getWeiHexFromDecimalValue({ value: decimalEthValue, - fromCurrency: ETH, - fromDenomination: ETH, + fromCurrency: DEX, + fromDenomination: DEX, }) return selectedTokenExchangeRate diff --git a/ui/app/components/transaction-action/tests/transaction-action.component.test.js b/ui/app/components/transaction-action/tests/transaction-action.component.test.js index b22a9db3..b2f33274 100644 --- a/ui/app/components/transaction-action/tests/transaction-action.component.test.js +++ b/ui/app/components/transaction-action/tests/transaction-action.component.test.js @@ -57,7 +57,7 @@ describe('TransactionAction Component', () => { gas: '0x5208', gasPrice: '0x3b9aca00', nonce: '0x96', - to: 'sentEtherAddress', + to: 'sentDexonAddress', value: '0x2386f26fc10000', }, } @@ -69,8 +69,8 @@ describe('TransactionAction Component', () => { />, { context: { t }}) assert.equal(wrapper.find('.transaction-action').length, 1) - wrapper.setState({ transactionAction: 'sentEther' }) - assert.equal(wrapper.text(), 'sentEther') + wrapper.setState({ transactionAction: 'sentDexon' }) + assert.equal(wrapper.text(), 'sentDexon') }) it('should render Approved', async () => { diff --git a/ui/app/components/transaction-breakdown/transaction-breakdown.component.js b/ui/app/components/transaction-breakdown/transaction-breakdown.component.js index 141e16e1..addb4006 100644 --- a/ui/app/components/transaction-breakdown/transaction-breakdown.component.js +++ b/ui/app/components/transaction-breakdown/transaction-breakdown.component.js @@ -5,7 +5,7 @@ import TransactionBreakdownRow from './transaction-breakdown-row' import CurrencyDisplay from '../currency-display' import UserPreferencedCurrencyDisplay from '../user-preferenced-currency-display' import HexToDecimal from '../hex-to-decimal' -import { GWEI, PRIMARY, SECONDARY } from '../../constants/common' +import { DEX, GWEI, PRIMARY, SECONDARY } from '../../constants/common' import { getHexGasTotal } from '../../helpers/confirm-transaction/util' import { sumHexes } from '../../helpers/transactions.util' @@ -86,8 +86,10 @@ export default class TransactionBreakdown extends PureComponent { /> <UserPreferencedCurrencyDisplay className="transaction-breakdown__value" - type={SECONDARY} - value={totalInHex} + currency={DEX} + denomination={GWEI} + value={gasPrice} + hideLabel /> </div> </TransactionBreakdownRow> diff --git a/ui/app/components/unit-input/index.scss b/ui/app/components/unit-input/index.scss index 7995696a..7af91df9 100644 --- a/ui/app/components/unit-input/index.scss +++ b/ui/app/components/unit-input/index.scss @@ -1,9 +1,9 @@ .unit-input { min-height: 54px; - border: 1px solid #dedede; + border: 1px solid $tundora; border-radius: 4px; - background-color: #fff; - color: #4d4d4d; + background-color: $dark-gray; + color: $dim-gray; font-size: 1rem; padding: 8px 10px; position: relative; @@ -25,7 +25,7 @@ } &__input { - color: #4d4d4d; + color: $white; font-size: 1rem; font-family: Roboto; border: none; diff --git a/ui/app/components/user-preferenced-currency-display/tests/user-preferenced-currency-display.container.test.js b/ui/app/components/user-preferenced-currency-display/tests/user-preferenced-currency-display.container.test.js index ba1c23d8..2232e825 100644 --- a/ui/app/components/user-preferenced-currency-display/tests/user-preferenced-currency-display.container.test.js +++ b/ui/app/components/user-preferenced-currency-display/tests/user-preferenced-currency-display.container.test.js @@ -46,8 +46,8 @@ describe('UserPreferencedCurrencyDisplay container', () => { type: 'PRIMARY', }, result: { - currency: 'ETH', nativeCurrency: 'ETH', + currency: 'DEX', numberOfDecimals: 6, prefix: undefined, }, @@ -97,8 +97,7 @@ describe('UserPreferencedCurrencyDisplay container', () => { prefix: 'b', }, result: { - currency: 'ETH', - nativeCurrency: 'ETH', + currency: 'DEX', numberOfDecimals: 3, prefix: 'b', }, diff --git a/ui/app/components/user-preferenced-currency-display/user-preferenced-currency-display.component.js b/ui/app/components/user-preferenced-currency-display/user-preferenced-currency-display.component.js index f2a834ea..06d9c146 100644 --- a/ui/app/components/user-preferenced-currency-display/user-preferenced-currency-display.component.js +++ b/ui/app/components/user-preferenced-currency-display/user-preferenced-currency-display.component.js @@ -1,6 +1,6 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' -import { PRIMARY, SECONDARY, ETH } from '../../constants/common' +import { PRIMARY, SECONDARY, DEX } from '../../constants/common' import CurrencyDisplay from '../currency-display' export default class UserPreferencedCurrencyDisplay extends PureComponent { @@ -27,9 +27,9 @@ export default class UserPreferencedCurrencyDisplay extends PureComponent { renderEthLogo () { const { currency, showEthLogo, ethLogoHeight = 12 } = this.props - return currency === ETH && showEthLogo && ( + return currency === DEX && showEthLogo && ( <img - src="/images/eth.svg" + src="/images/dexon_logo.svg" height={ethLogoHeight} /> ) diff --git a/ui/app/components/user-preferenced-currency-display/user-preferenced-currency-display.container.js b/ui/app/components/user-preferenced-currency-display/user-preferenced-currency-display.container.js index 7999301a..af60aa1d 100644 --- a/ui/app/components/user-preferenced-currency-display/user-preferenced-currency-display.container.js +++ b/ui/app/components/user-preferenced-currency-display/user-preferenced-currency-display.container.js @@ -1,7 +1,7 @@ import { connect } from 'react-redux' import UserPreferencedCurrencyDisplay from './user-preferenced-currency-display.component' import { preferencesSelector } from '../../selectors' -import { ETH, PRIMARY, SECONDARY } from '../../constants/common' +import { DEX, PRIMARY, SECONDARY } from '../../constants/common' const mapStateToProps = (state, ownProps) => { const { useNativeCurrencyAsPrimaryCurrency } = preferencesSelector(state) @@ -30,7 +30,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => { if (type === PRIMARY && useNativeCurrencyAsPrimaryCurrency || type === SECONDARY && !useNativeCurrencyAsPrimaryCurrency) { // Display ETH - currency = nativeCurrency || ETH + currency = nativeCurrency || DEX numberOfDecimals = propsNumberOfDecimals || ethNumberOfDecimals || 6 prefix = propsPrefix || ethPrefix } else if (type === SECONDARY && useNativeCurrencyAsPrimaryCurrency || diff --git a/ui/app/constants/transactions.js b/ui/app/constants/transactions.js index d0a819b9..92781c27 100644 --- a/ui/app/constants/transactions.js +++ b/ui/app/constants/transactions.js @@ -12,7 +12,7 @@ export const TOKEN_METHOD_TRANSFER = 'transfer' export const TOKEN_METHOD_APPROVE = 'approve' export const TOKEN_METHOD_TRANSFER_FROM = 'transferfrom' -export const SEND_ETHER_ACTION_KEY = 'sentEther' +export const SEND_DEXON_ACTION_KEY = 'sentDexon' export const DEPLOY_CONTRACT_ACTION_KEY = 'contractDeployment' export const APPROVE_ACTION_KEY = 'approve' export const SEND_TOKEN_ACTION_KEY = 'sentTokens' diff --git a/ui/app/conversion-util.js b/ui/app/conversion-util.js index 8cc53177..948ac3a0 100644 --- a/ui/app/conversion-util.js +++ b/ui/app/conversion-util.js @@ -53,12 +53,12 @@ const toBigNumber = { const toNormalizedDenomination = { WEI: bigNumber => bigNumber.div(BIG_NUMBER_WEI_MULTIPLIER), GWEI: bigNumber => bigNumber.div(BIG_NUMBER_GWEI_MULTIPLIER), - ETH: bigNumber => bigNumber.div(BIG_NUMBER_ETH_MULTIPLIER), + DEX: bigNumber => bigNumber.div(BIG_NUMBER_ETH_MULTIPLIER), } const toSpecifiedDenomination = { WEI: bigNumber => bigNumber.times(BIG_NUMBER_WEI_MULTIPLIER).round(), GWEI: bigNumber => bigNumber.times(BIG_NUMBER_GWEI_MULTIPLIER).round(9), - ETH: bigNumber => bigNumber.times(BIG_NUMBER_ETH_MULTIPLIER).round(9), + DEX: bigNumber => bigNumber.times(BIG_NUMBER_ETH_MULTIPLIER).round(9), } const baseChange = { hex: n => n.toString(16), diff --git a/ui/app/css/itcss/settings/variables.scss b/ui/app/css/itcss/settings/variables.scss index fee7ada6..b9dbf497 100644 --- a/ui/app/css/itcss/settings/variables.scss +++ b/ui/app/css/itcss/settings/variables.scss @@ -29,7 +29,6 @@ $alto: #dedede; $alabaster: #fafafa; $silver-chalice: #aeaeae; $concrete: #f3f3f3; -$tundora: #4d4d4d; $nile-blue: #1b344d; $scorpion: #5d5d5d; $silver: #cdcdcd; diff --git a/ui/app/helpers/confirm-transaction/util.js b/ui/app/helpers/confirm-transaction/util.js index 0451824e..f3a9620f 100644 --- a/ui/app/helpers/confirm-transaction/util.js +++ b/ui/app/helpers/confirm-transaction/util.js @@ -64,7 +64,7 @@ export function getValueFromWeiHex ({ return conversionUtil(value, { fromNumericBase: 'hex', toNumericBase: 'dec', - fromCurrency, + fromCurrency: 'DEX', toCurrency, numberOfDecimals, fromDenomination: 'WEI', @@ -84,7 +84,7 @@ export function getTransactionFee ({ fromNumericBase: 'BN', toNumericBase: 'dec', fromDenomination: 'WEI', - fromCurrency, + fromCurrency: 'DEX', toCurrency, numberOfDecimals, conversionRate, diff --git a/ui/app/helpers/conversions.util.js b/ui/app/helpers/conversions.util.js index 065d67e8..fee340c3 100644 --- a/ui/app/helpers/conversions.util.js +++ b/ui/app/helpers/conversions.util.js @@ -1,6 +1,6 @@ import ethUtil from 'ethereumjs-util' -import { ETH, GWEI, WEI } from '../constants/common' import { conversionUtil, addCurrencies } from '../conversion-util' +import { DEX, GWEI, WEI } from '../constants/common' export function bnToHex (inputBn) { return ethUtil.addHexPrefix(inputBn.toString(16)) @@ -20,8 +20,8 @@ export function decimalToHex (decimal) { }) } -export function getEthConversionFromWeiHex ({ value, fromCurrency = ETH, conversionRate, numberOfDecimals = 6 }) { - const denominations = [fromCurrency, GWEI, WEI] +export function getEthConversionFromWeiHex ({ value, conversionRate, numberOfDecimals = 6, fromCurrency = DEX }) { + const denominations = [DEX, GWEI, WEI] let nonZeroDenomination @@ -46,7 +46,7 @@ export function getEthConversionFromWeiHex ({ value, fromCurrency = ETH, convers export function getValueFromWeiHex ({ value, - fromCurrency = ETH, + fromCurrency = DEX, toCurrency, conversionRate, numberOfDecimals, @@ -74,7 +74,7 @@ export function getWeiHexFromDecimalValue ({ return conversionUtil(value, { fromNumericBase: 'dec', toNumericBase: 'hex', - toCurrency: ETH, + toCurrency: DEX, fromCurrency, conversionRate, invertConversionRate, diff --git a/ui/app/helpers/transactions.util.js b/ui/app/helpers/transactions.util.js index 0f1ed70a..32eaa3c6 100644 --- a/ui/app/helpers/transactions.util.js +++ b/ui/app/helpers/transactions.util.js @@ -11,7 +11,7 @@ import { TOKEN_METHOD_TRANSFER, TOKEN_METHOD_APPROVE, TOKEN_METHOD_TRANSFER_FROM, - SEND_ETHER_ACTION_KEY, + SEND_DEXON_ACTION_KEY, DEPLOY_CONTRACT_ACTION_KEY, APPROVE_ACTION_KEY, SEND_TOKEN_ACTION_KEY, @@ -84,7 +84,7 @@ export async function getTransactionActionKey (transaction, methodData) { const toSmartContract = await isSmartContractAddress(to) if (!toSmartContract) { - return SEND_ETHER_ACTION_KEY + return SEND_DEXON_ACTION_KEY } const { name } = methodData @@ -105,7 +105,7 @@ export async function getTransactionActionKey (transaction, methodData) { return undefined } } else { - return SEND_ETHER_ACTION_KEY + return SEND_DEXON_ACTION_KEY } } diff --git a/ui/app/util.js b/ui/app/util.js index 28f027e2..558a7d19 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -128,7 +128,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 = 'DEX') { var parsed = needsParse ? parseBalance(balance) : balance.split('.') var beforeDecimal = parsed[0] var afterDecimal = parsed[1] |