Skip to content

Commit 8e32463

Browse files
author
Aaron Cook
authored
[EPIC] SEP #5 - Update header/widget (#2213)
* fix: add `type` of SEP #5 claiming data * fix: staging allocation URL
1 parent 27ffdd7 commit 8e32463

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/hooks/useSafeTokenAllocation.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { getSafeTokenAddress } from '@/components/common/SafeTokenWidget'
2+
import { cgwDebugStorage } from '@/components/sidebar/DebugToggle'
3+
import { IS_PRODUCTION } from '@/config/constants'
24
import { ZERO_ADDRESS } from '@safe-global/safe-core-sdk/dist/src/utils/constants'
35
import { isPast } from 'date-fns'
46
import { BigNumber } from 'ethers'
@@ -8,10 +10,13 @@ import useAsync from './useAsync'
810
import useSafeInfo from './useSafeInfo'
911
import { getWeb3ReadOnly } from './wallets/web3'
1012

11-
export const VESTING_URL = 'https://safe-claiming-app-data.safe.global/allocations/'
13+
export const VESTING_URL =
14+
IS_PRODUCTION || cgwDebugStorage.get()
15+
? 'https://safe-claiming-app-data.safe.global/allocations/'
16+
: 'https://safe-claiming-app-data.staging.5afe.dev/allocations/'
1217

1318
type VestingData = {
14-
tag: 'user' | 'ecosystem' | 'investor'
19+
tag: 'user' | 'ecosystem' | 'investor' | 'user_v2' // SEP #5
1520
account: string
1621
chainId: number
1722
contract: string

0 commit comments

Comments
 (0)