Skip to content

Commit

Permalink
fix: fetch token states 500 at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Oct 20, 2022
1 parent 34f9cdf commit ec82864
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ export const useStreamTokensInCustody = (config: Config) => {
for (
let i = 0, l = Number(totalSupply?.toString() || 20000);
i <= l;
i = i + 5000
i = i + 500
) {
const tokens = await fetchTokensInCustodyInRange(i, i + 5000);
const tokens = await fetchTokensInCustodyInRange(i, i + 500);

if (tokens && tokens.length) {
finalData.push(...tokens);
Expand Down

0 comments on commit ec82864

Please sign in to comment.