diff --git a/src/hooks/useSafeTokenAllocation.ts b/src/hooks/useSafeTokenAllocation.ts index f5b61a450d..2ea00d7151 100644 --- a/src/hooks/useSafeTokenAllocation.ts +++ b/src/hooks/useSafeTokenAllocation.ts @@ -1,4 +1,6 @@ import { getSafeTokenAddress } from '@/components/common/SafeTokenWidget' +import { cgwDebugStorage } from '@/components/sidebar/DebugToggle' +import { IS_PRODUCTION } from '@/config/constants' import { ZERO_ADDRESS } from '@safe-global/safe-core-sdk/dist/src/utils/constants' import { isPast } from 'date-fns' import { BigNumber } from 'ethers' @@ -8,7 +10,10 @@ import useAsync from './useAsync' import useSafeInfo from './useSafeInfo' import { getWeb3ReadOnly } from './wallets/web3' -export const VESTING_URL = 'https://safe-claiming-app-data.safe.global/allocations/' +export const VESTING_URL = + IS_PRODUCTION || cgwDebugStorage.get() + ? 'https://safe-claiming-app-data.safe.global/allocations/' + : 'https://safe-claiming-app-data.staging.5afe.dev/allocations/' type VestingData = { tag: 'user' | 'ecosystem' | 'investor' | 'user_v2' // SEP #5