aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/test
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 03:43:08 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 03:43:08 +0800
commitffecba21f4e9dcda961a3e8432e70e6605174de5 (patch)
tree35cce13840a35a8a37b570de6c1588c3bece5aa8 /packages/instant/test
parent3e8d9510ec35e0f830a708efa608fd4c77ecfcae (diff)
downloaddexon-sol-tools-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar
dexon-sol-tools-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.gz
dexon-sol-tools-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.bz2
dexon-sol-tools-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.lz
dexon-sol-tools-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.xz
dexon-sol-tools-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.zst
dexon-sol-tools-ffecba21f4e9dcda961a3e8432e70e6605174de5.zip
ethDecimals -> ETH_DECIMALS
Diffstat (limited to 'packages/instant/test')
-rw-r--r--packages/instant/test/util/format.test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/instant/test/util/format.test.ts b/packages/instant/test/util/format.test.ts
index 141df9275..1be226ed8 100644
--- a/packages/instant/test/util/format.test.ts
+++ b/packages/instant/test/util/format.test.ts
@@ -1,15 +1,15 @@
import { BigNumber } from '@0x/utils';
import { Web3Wrapper } from '@0x/web3-wrapper';
-import { ethDecimals } from '../../src/constants';
+import { ETH_DECIMALS } from '../../src/constants';
import { format } from '../../src/util/format';
const BIG_NUMBER_ONE = new BigNumber(1);
const BIG_NUMBER_DECIMAL = new BigNumber(0.432414);
const BIG_NUMBER_IRRATIONAL = new BigNumber(5.3014059295032);
-const ONE_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_ONE, ethDecimals);
-const DECIMAL_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_DECIMAL, ethDecimals);
-const IRRATIONAL_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_IRRATIONAL, ethDecimals);
+const ONE_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_ONE, ETH_DECIMALS);
+const DECIMAL_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_DECIMAL, ETH_DECIMALS);
+const IRRATIONAL_ETH_IN_BASE_UNITS = Web3Wrapper.toBaseUnitAmount(BIG_NUMBER_IRRATIONAL, ETH_DECIMALS);
const BIG_NUMBER_FAKE_ETH_USD_PRICE = new BigNumber(2.534);
describe('format', () => {