Skip to content

Commit

Permalink
fix: disable ff1 nav for a while
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Aug 15, 2024
1 parent 600394d commit 92dd349
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 35 deletions.
38 changes: 5 additions & 33 deletions abi/multicall.abi.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,20 @@
[
{
"inputs": [
{
"internalType": "bool",
"name": "requireSuccess",
"type": "bool"
},
{
"components": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "bytes",
"name": "callData",
"type": "bytes"
}
{ "internalType": "address", "name": "target", "type": "address" },
{ "internalType": "bytes", "name": "callData", "type": "bytes" }
],
"internalType": "struct Multicall3.Call[]",
"name": "calls",
"type": "tuple[]"
}
],
"name": "tryAggregate",
"name": "aggregate",
"outputs": [
{
"components": [
{
"internalType": "bool",
"name": "success",
"type": "bool"
},
{
"internalType": "bytes",
"name": "returnData",
"type": "bytes"
}
],
"internalType": "struct Multicall3.Result[]",
"name": "returnData",
"type": "tuple[]"
}
{ "internalType": "uint256", "name": "blockNumber", "type": "uint256" },
{ "internalType": "bytes[]", "name": "returnData", "type": "bytes[]" }
],
"stateMutability": "payable",
"type": "function"
Expand Down
1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const tinlakePools = [
startBlock: 11282587,
navFeed: [
{ address: '0xcAB9ed8e5EF4607A97f4e22Ad1D984ADB93ce890', startBlock: 11282611 },
{ address: undefined, startBlock: 16537499 },
{ address: '0x887db3ee1166ddaf5f7df96b195912594112431e', startBlock: 16799275 },
],
reserve: [
Expand Down
4 changes: 2 additions & 2 deletions src/mappings/handlers/ethHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ async function processCalls(callsArray: PoolMulticall[], chunkSize = 30): Promis
let results: any[] = []
try {
const calls = chunk.map((call) => call.call)
results = await multicall.callStatic.tryAggregate(false, calls)
results.map((result, j) => (callsArray[i * chunkSize + j].result = result[1]))
results = await multicall.callStatic.aggregate(calls)
results[1].map((result, j) => (callsArray[i * chunkSize + j].result = result))
} catch (e) {
logger.error(`Error fetching chunk ${i}: ${e}`)
}
Expand Down

0 comments on commit 92dd349

Please sign in to comment.