diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:43:08 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:43:08 +0800 |
commit | ffecba21f4e9dcda961a3e8432e70e6605174de5 (patch) | |
tree | 35cce13840a35a8a37b570de6c1588c3bece5aa8 /packages/instant/src/util | |
parent | 3e8d9510ec35e0f830a708efa608fd4c77ecfcae (diff) | |
download | dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.gz dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.bz2 dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.lz dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.xz dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.zst dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.zip |
ethDecimals -> ETH_DECIMALS
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r-- | packages/instant/src/util/format.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/util/format.ts b/packages/instant/src/util/format.ts index 8482b1526..2e0ccc03b 100644 --- a/packages/instant/src/util/format.ts +++ b/packages/instant/src/util/format.ts @@ -2,7 +2,7 @@ import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as _ from 'lodash'; -import { ethDecimals } from '../constants'; +import { ETH_DECIMALS } from '../constants'; export const format = { ethBaseAmount: ( @@ -13,7 +13,7 @@ export const format = { if (_.isUndefined(ethBaseAmount)) { return defaultText; } - const ethUnitAmount = Web3Wrapper.toUnitAmount(ethBaseAmount, ethDecimals); + const ethUnitAmount = Web3Wrapper.toUnitAmount(ethBaseAmount, ETH_DECIMALS); return format.ethUnitAmount(ethUnitAmount, decimalPlaces); }, ethUnitAmount: ( @@ -36,7 +36,7 @@ export const format = { if (_.isUndefined(ethBaseAmount) || _.isUndefined(ethUsdPrice)) { return defaultText; } - const ethUnitAmount = Web3Wrapper.toUnitAmount(ethBaseAmount, ethDecimals); + const ethUnitAmount = Web3Wrapper.toUnitAmount(ethBaseAmount, ETH_DECIMALS); return format.ethUnitAmountInUsd(ethUnitAmount, ethUsdPrice, decimalPlaces); }, ethUnitAmountInUsd: ( |