mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-04-30 22:02:28 +08:00
slowdown justswap
This commit is contained in:
@@ -35,7 +35,7 @@ async function tvl(api) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const multicallContract = 'TEazPvZwDjDtFeJupyo7QunvnrnUjPH8ED'
|
const multicallContract = 'TEazPvZwDjDtFeJupyo7QunvnrnUjPH8ED'
|
||||||
const chunks = sliceIntoChunks(allPairs, 200)
|
const chunks = sliceIntoChunks(allPairs, 100)
|
||||||
|
|
||||||
const chunkCount = chunks.length
|
const chunkCount = chunks.length
|
||||||
console.log(`Processing ${chunkCount} chunks of calls to get TRX balance`)
|
console.log(`Processing ${chunkCount} chunks of calls to get TRX balance`)
|
||||||
@@ -45,6 +45,6 @@ async function tvl(api) {
|
|||||||
api.addGasToken(trxBalance)
|
api.addGasToken(trxBalance)
|
||||||
api.addGasToken(trxBalance) // adding twice to add token balance on the LP
|
api.addGasToken(trxBalance) // adding twice to add token balance on the LP
|
||||||
console.log(`Processed chunk ${chunks.indexOf(calls) + 1} of ${chunkCount}`)
|
console.log(`Processed chunk ${chunks.indexOf(calls) + 1} of ${chunkCount}`)
|
||||||
await sleep(1500)
|
await sleep(4500)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user