Commit 6c8fc5a7 authored by Moody Salem's avatar Moody Salem

fix: reduce call retries by specifying a block tag in multicall

parent 70225857
...@@ -32,7 +32,8 @@ async function fetchChunk( ...@@ -32,7 +32,8 @@ async function fetchChunk(
try { try {
const { blockNumber, returnData } = await multicall2Contract.callStatic.tryBlockAndAggregate( const { blockNumber, returnData } = await multicall2Contract.callStatic.tryBlockAndAggregate(
false, false,
chunk.map((obj) => ({ target: obj.address, callData: obj.callData })) chunk.map((obj) => ({ target: obj.address, callData: obj.callData })),
{ blockTag: minBlockNumber }
) )
resultsBlockNumber = blockNumber.toNumber() resultsBlockNumber = blockNumber.toNumber()
results = returnData results = returnData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment