aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-18 09:55:50 +0800
committerFabio Berger <me@fabioberger.com>2017-12-18 09:55:50 +0800
commitf698dd40772eee0b3142028f62b6c56dcfcc5a1e (patch)
tree3c93414de7700c047241cc4b1b2e210d981a82d3 /packages
parent0578116f1dbe89a5b3c0c7e5f45948a1434b07b3 (diff)
downloaddexon-sol-tools-f698dd40772eee0b3142028f62b6c56dcfcc5a1e.tar
dexon-sol-tools-f698dd40772eee0b3142028f62b6c56dcfcc5a1e.tar.gz
dexon-sol-tools-f698dd40772eee0b3142028f62b6c56dcfcc5a1e.tar.bz2
dexon-sol-tools-f698dd40772eee0b3142028f62b6c56dcfcc5a1e.tar.lz
dexon-sol-tools-f698dd40772eee0b3142028f62b6c56dcfcc5a1e.tar.xz
dexon-sol-tools-f698dd40772eee0b3142028f62b6c56dcfcc5a1e.tar.zst
dexon-sol-tools-f698dd40772eee0b3142028f62b6c56dcfcc5a1e.zip
Use bigNumberConfigs from @0xproject/utils in website repo
Diffstat (limited to 'packages')
-rw-r--r--packages/website/package.json1
-rw-r--r--packages/website/ts/index.tsx7
2 files changed, 3 insertions, 5 deletions
diff --git a/packages/website/package.json b/packages/website/package.json
index a6703af7e..235ff236e 100644
--- a/packages/website/package.json
+++ b/packages/website/package.json
@@ -20,6 +20,7 @@
"dependencies": {
"0x.js": "~0.27.2",
"@0xproject/subproviders": "^0.1.0",
+ "@0xproject/utils": "^0.1.0",
"accounting": "^0.4.1",
"basscss": "^8.0.3",
"bignumber.js": "~4.1.0",
diff --git a/packages/website/ts/index.tsx b/packages/website/ts/index.tsx
index 71565fa4d..69bb03dce 100644
--- a/packages/website/ts/index.tsx
+++ b/packages/website/ts/index.tsx
@@ -1,6 +1,7 @@
// Polyfills
import 'whatwg-fetch';
+import {bigNumberConfigs} from '@0xproject/utils';
import BigNumber from 'bignumber.js';
import {colors, getMuiTheme, MuiThemeProvider} from 'material-ui/styles';
import * as React from 'react';
@@ -22,11 +23,7 @@ import {WebsitePaths} from 'ts/types';
import {constants} from 'ts/utils/constants';
injectTapEventPlugin();
-// By default BigNumber's `toString` method converts to exponential notation if the value has
-// more then 20 digits. We want to avoid this behavior, so we set EXPONENTIAL_AT to a high number
-BigNumber.config({
- EXPONENTIAL_AT: 1000,
-});
+bigNumberConfigs.configure();
// Check if we've introduced an update that requires us to clear the tradeHistory local storage entries
tradeHistoryStorage.clearIfRequired();