Skip to content

Commit

Permalink
added more sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
idan-orbs committed Apr 15, 2024
1 parent 6254935 commit 75bb49b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions projects/auto-compound-polygon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function claimBatch(web3, stakersList) {
}
)
console.log(`Finished chunk ${j}/${chunksNum}`);
await new Promise(resolve => setTimeout(resolve, 2 * 60 * 1000));
await new Promise(resolve => setTimeout(resolve, 5 * 60 * 1000));
}
console.log(`Successfully claimed for ${numberOfWallets}/${stakersListLen} accounts`);
return { numberOfWallets, totalCompounded };
Expand All @@ -88,7 +88,6 @@ async function claimBatch(web3, stakersList) {

async function compoundPolygon(args) {
const stakers = await getAllDelegators(args.web3);
await new Promise(resolve => setTimeout(resolve, 60 * 1000));
const { numberOfWallets, totalCompounded } = await claimBatch(args.web3, stakers);
await CalcAndSendMetrics(args.web3, numberOfWallets, totalCompounded)

Expand Down

0 comments on commit 75bb49b

Please sign in to comment.