From 31fccf7af3bf578c4a3ddec81d635238967549dc Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Thu, 12 Nov 2020 10:06:52 -0800 Subject: [PATCH] increase MAX_AWAIT_PROMISES --- src/balancer/OceanPool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/balancer/OceanPool.ts b/src/balancer/OceanPool.ts index 437e6193..c73b4d5f 100644 --- a/src/balancer/OceanPool.ts +++ b/src/balancer/OceanPool.ts @@ -11,7 +11,7 @@ declare type PoolTransactionType = 'swap' | 'join' | 'exit' const POOL_MAX_AMOUNT_IN_LIMIT = 0.25 // maximum 1/4 of the pool reserve const POOL_MAX_AMOUNT_OUT_LIMIT = 0.25 // maximum 1/4 of the pool reserve const BPFACTORY_DEPLOY_BLOCK = 0 -const MAX_AWAIT_PROMISES = 8 +const MAX_AWAIT_PROMISES = 10 // infura has a limit of 10 requests/sec export interface PoolDetails { poolAddress: string tokens: string[]