aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect
diff options
context:
space:
mode:
Diffstat (limited to 'packages/connect')
-rw-r--r--packages/connect/package.json1
-rw-r--r--packages/connect/src/http_client.ts5
-rw-r--r--packages/connect/src/index.ts5
3 files changed, 6 insertions, 5 deletions
diff --git a/packages/connect/package.json b/packages/connect/package.json
index bf92f07d2..5daac8aae 100644
--- a/packages/connect/package.json
+++ b/packages/connect/package.json
@@ -38,6 +38,7 @@
"dependencies": {
"@0xproject/assert": "^0.0.8",
"@0xproject/json-schemas": "^0.7.0",
+ "@0xproject/utils": "^0.1.1",
"bignumber.js": "~4.1.0",
"isomorphic-fetch": "^2.2.1",
"lodash": "^4.17.4",
diff --git a/packages/connect/src/http_client.ts b/packages/connect/src/http_client.ts
index 3bada2be0..028a6c07b 100644
--- a/packages/connect/src/http_client.ts
+++ b/packages/connect/src/http_client.ts
@@ -21,11 +21,6 @@ import {
} from './types';
import {typeConverters} from './utils/type_converters';
-// TODO: move this and bigNumberConfigs in the 0x.js package into one place
-BigNumber.config({
- EXPONENTIAL_AT: 1000,
-});
-
/**
* This class includes all the functionality related to interacting with a set of HTTP endpoints
* that implement the standard relayer API v0
diff --git a/packages/connect/src/index.ts b/packages/connect/src/index.ts
index ec369a606..c0f847d09 100644
--- a/packages/connect/src/index.ts
+++ b/packages/connect/src/index.ts
@@ -1,3 +1,8 @@
+import {bigNumberConfigs} from '@0xproject/utils';
+
+// Customize our BigNumber instances
+bigNumberConfigs.configure();
+
export {HttpClient} from './http_client';
export {WebSocketOrderbookChannel} from './ws_orderbook_channel';
export {