diff --git a/packages/web-app/app/_providers/persist-query-wrapper.tsx b/packages/web-app/app/_providers/persist-query-wrapper.tsx index 048baf85..cbc16c06 100644 --- a/packages/web-app/app/_providers/persist-query-wrapper.tsx +++ b/packages/web-app/app/_providers/persist-query-wrapper.tsx @@ -10,14 +10,13 @@ import { hashFn } from 'wagmi/query'; const oneMinute = 1_000 * 60; const oneHour = oneMinute * 60; -const tenMinutes = oneMinute * 10; const queryClient = new QueryClient({ defaultOptions: { queries: { queryKeyHashFn: hashFn, retry: 0, - staleTime: tenMinutes, + staleTime: oneMinute, gcTime: oneHour, }, }, diff --git a/packages/web-app/app/_server/can-contribute.ts b/packages/web-app/app/_server/can-contribute.ts index a41c143f..2d555251 100644 --- a/packages/web-app/app/_server/can-contribute.ts +++ b/packages/web-app/app/_server/can-contribute.ts @@ -10,7 +10,7 @@ export const canContribute = async (project: string, address: string) => { .from('applications') .select('*') .eq('project', project) - .eq('address', address); + .ilike('address', `%${address}%`); if (error) { console.error(error); diff --git a/packages/web-app/app/_server/idos/index.ts b/packages/web-app/app/_server/idos/index.ts index 4050b912..5ee11ab1 100644 --- a/packages/web-app/app/_server/idos/index.ts +++ b/packages/web-app/app/_server/idos/index.ts @@ -9,6 +9,7 @@ import { evmGranteePublicKey, } from '../wallet'; import { createClient } from '../supabase/server'; +import { compareAddresses } from '@/app/_lib/utils'; export interface idOSGrant { content: string; @@ -143,7 +144,10 @@ export const updateAllowedProjectApplicants = async ( // remove already allowed addresses const addresses = parsedApplicants.filter( - (address) => !currentAllowedList.includes(address), + (address) => + !currentAllowedList.some((allowed) => + compareAddresses(allowed, address), + ), ); console.log('==>Current Applicants', parsedApplicants.length);