Skip to content

Commit

Permalink
fix: always enumerate until 20k token ids
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Nov 27, 2022
1 parent f3c4b4b commit 598fdf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Expand Up @@ -28,7 +28,7 @@ export const StreamTicketTokenSelector = ({ as, ...attributes }: Props) => {
ticketTokens.map((token) => (
<div
key={token.tokenId}
className="ticket-token relative flex gap-2 items-start py-4"
className="ticket-token relative flex gap-2 items-start py-1"
>
<div className="token-checkbox flex items-center h-5">
<input
Expand Down
Expand Up @@ -111,14 +111,10 @@ export const useStreamTokensInCustody = (config: Config) => {
setIsLoading(true);
const finalData: BigNumberish[] = [];

// Enumerate to 20,000
// Enumerate to 15,000
const custodyStatusesPromises = [];

for (
let i = 0, l = Number(totalSupply?.toString() || 20_000);
i <= l;
i = i + 500 + 1
) {
for (let i = 0, l = Number(15_000); i <= l; i = i + 500 + 1) {
custodyStatusesPromises.push(fetchTokensInCustodyInRange(i, i + 500));
}

Expand Down Expand Up @@ -163,7 +159,6 @@ export const useStreamTokensInCustody = (config: Config) => {
finalWalletAddress,
isLoading,
supportsTokensInCustody,
totalSupply,
]);

useMemo(() => {
Expand Down

0 comments on commit 598fdf9

Please sign in to comment.