aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-10-10 05:28:54 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-10-10 05:28:54 +0800
commitf2fdb6e47dd07a034d5be4fc3e0edca863e38aaa (patch)
tree047abfcbcdf9f80d2bc71c36e3665c0c3cb0599f
parentf9f8e06c1c8ac5b254dfae08e216ea199a77ff02 (diff)
downloaddexon-sol-tools-f2fdb6e47dd07a034d5be4fc3e0edca863e38aaa.tar
dexon-sol-tools-f2fdb6e47dd07a034d5be4fc3e0edca863e38aaa.tar.gz
dexon-sol-tools-f2fdb6e47dd07a034d5be4fc3e0edca863e38aaa.tar.bz2
dexon-sol-tools-f2fdb6e47dd07a034d5be4fc3e0edca863e38aaa.tar.lz
dexon-sol-tools-f2fdb6e47dd07a034d5be4fc3e0edca863e38aaa.tar.xz
dexon-sol-tools-f2fdb6e47dd07a034d5be4fc3e0edca863e38aaa.tar.zst
dexon-sol-tools-f2fdb6e47dd07a034d5be4fc3e0edca863e38aaa.zip
Add comments for expiryBuffer
-rw-r--r--packages/asset-buyer/src/constants.ts2
-rw-r--r--packages/asset-buyer/src/types.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/asset-buyer/src/constants.ts b/packages/asset-buyer/src/constants.ts
index bc168e462..e095dee06 100644
--- a/packages/asset-buyer/src/constants.ts
+++ b/packages/asset-buyer/src/constants.ts
@@ -8,7 +8,7 @@ const MAINNET_NETWORK_ID = 1;
const DEFAULT_ASSET_BUYER_OPTS: AssetBuyerOpts = {
networkId: MAINNET_NETWORK_ID,
orderRefreshIntervalMs: 10000, // 10 seconds
- expiryBufferSeconds: 300,
+ expiryBufferSeconds: 300, // 5 minutes
};
const DEFAULT_BUY_QUOTE_REQUEST_OPTS: BuyQuoteRequestOpts = {
diff --git a/packages/asset-buyer/src/types.ts b/packages/asset-buyer/src/types.ts
index 90502ac69..6218f4ba4 100644
--- a/packages/asset-buyer/src/types.ts
+++ b/packages/asset-buyer/src/types.ts
@@ -92,7 +92,7 @@ export interface BuyQuoteExecutionOpts {
/**
* networkId: The ethereum network id. Defaults to 1 (mainnet).
* orderRefreshIntervalMs: The interval in ms that getBuyQuoteAsync should trigger an refresh of orders and order states. Defaults to 10000ms (10s).
- * expiryBufferSeconds: The number of seconds to add when calculating whether an order is expired or not. Defaults to 15s.
+ * expiryBufferSeconds: The number of seconds to add when calculating whether an order is expired or not. Defaults to 300s (5m).
*/
export interface AssetBuyerOpts {
networkId: number;