mirror of
https://github.com/alexgo-io/DefiLlama-Adapters.git
synced 2026-01-12 08:34:23 +08:00
slowdown justswap
This commit is contained in:
@@ -35,7 +35,7 @@ async function tvl(api) {
|
||||
}
|
||||
|
||||
const multicallContract = 'TEazPvZwDjDtFeJupyo7QunvnrnUjPH8ED'
|
||||
const chunks = sliceIntoChunks(allPairs, 200)
|
||||
const chunks = sliceIntoChunks(allPairs, 100)
|
||||
|
||||
const chunkCount = chunks.length
|
||||
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) // adding twice to add token balance on the LP
|
||||
console.log(`Processed chunk ${chunks.indexOf(calls) + 1} of ${chunkCount}`)
|
||||
await sleep(1500)
|
||||
await sleep(4500)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user