We currently iterate synchronously through the requested EOA's list of swaps , making one JSON-RPC getLogs request for each swap (we then search those logs for sandwiches around that swap).
These getLogs should be made concurrently. A Promise.all() might result in too many concurrent requests; something like https://github.com/timdp/es6-promise-pool seems like a good solution.
We currently iterate synchronously through the requested EOA's list of swaps , making one JSON-RPC
getLogs
request for each swap (we then search those logs for sandwiches around that swap).These getLogs should be made concurrently. A
Promise.all()
might result in too many concurrent requests; something like https://github.com/timdp/es6-promise-pool seems like a good solution.