aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-07 06:04:45 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-07 06:08:30 +0800
commit0823bd24d6e6a69fcd8638852f1b93eebd7d68b3 (patch)
tree3796e1aa4d94c1d435ac3a825b32e4ef71da73d0 /packages
parentce4081bb18bffb364050f04796f3174b87b7303e (diff)
downloaddexon-sol-tools-0823bd24d6e6a69fcd8638852f1b93eebd7d68b3.tar
dexon-sol-tools-0823bd24d6e6a69fcd8638852f1b93eebd7d68b3.tar.gz
dexon-sol-tools-0823bd24d6e6a69fcd8638852f1b93eebd7d68b3.tar.bz2
dexon-sol-tools-0823bd24d6e6a69fcd8638852f1b93eebd7d68b3.tar.lz
dexon-sol-tools-0823bd24d6e6a69fcd8638852f1b93eebd7d68b3.tar.xz
dexon-sol-tools-0823bd24d6e6a69fcd8638852f1b93eebd7d68b3.tar.zst
dexon-sol-tools-0823bd24d6e6a69fcd8638852f1b93eebd7d68b3.zip
fix(asset-buyer): lower default expiryBuffer from 5 minutes to 2 minutes
Diffstat (limited to 'packages')
-rw-r--r--packages/asset-buyer/CHANGELOG.json4
-rw-r--r--packages/asset-buyer/src/constants.ts2
2 files changed, 5 insertions, 1 deletions
diff --git a/packages/asset-buyer/CHANGELOG.json b/packages/asset-buyer/CHANGELOG.json
index 0d71bb84d..2a775075f 100644
--- a/packages/asset-buyer/CHANGELOG.json
+++ b/packages/asset-buyer/CHANGELOG.json
@@ -24,6 +24,10 @@
"note":
"Fix bug where default values for `AssetBuyer` public facing methods could get overriden by `undefined` values",
"pr": 1207
+ },
+ {
+ "note": "Lower default expiry buffer from 5 minutes to 2 minutes",
+ "pr": 1217
}
]
},
diff --git a/packages/asset-buyer/src/constants.ts b/packages/asset-buyer/src/constants.ts
index cc415102c..c0e1bf27d 100644
--- a/packages/asset-buyer/src/constants.ts
+++ b/packages/asset-buyer/src/constants.ts
@@ -9,7 +9,7 @@ const MAINNET_NETWORK_ID = 1;
const DEFAULT_ASSET_BUYER_OPTS: AssetBuyerOpts = {
networkId: MAINNET_NETWORK_ID,
orderRefreshIntervalMs: 10000, // 10 seconds
- expiryBufferSeconds: 300, // 5 minutes
+ expiryBufferSeconds: 120, // 2 minutes
};
const DEFAULT_BUY_QUOTE_REQUEST_OPTS: BuyQuoteRequestOpts = {