makerdao / multicall

Multicall: Aggregate multiple constant function call results into one
MIT License
851 stars 451 forks source link

Big batch gets timeout #39

Open Bortxoloko opened 2 years ago

Bortxoloko commented 2 years ago

Hello I'm using this contracts to query the reserves for all pairs in automated market makers. This pairs are very big in ethereum chain(≈60000) and it makes the contract give a timeout message. I just divide the calls in smaller batches but it becomes infeasible in binance smart chain where the pairs are 10 times greater and it would take a lot of time.

How can i make larger batches?