Skip to content

Commit 383997d

Browse files
committed
feat: add the logic to avoid rate limit
ticket: WIN-5700
1 parent b0e63e4 commit 383997d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/abstract-eth/src/abstractEthLikeNewCoins.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,8 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
13661366
consolidatedTransactions.push(recoveryTransaction);
13671367
}
13681368
}
1369-
1369+
// To avoid rate limit for etherscan
1370+
await new Promise((resolve) => setTimeout(resolve, 1000));
13701371
// lastScanIndex = i;
13711372
}
13721373

0 commit comments

Comments
 (0)