Skip to content

Commit

Permalink
[EPIC] SEP #5 - Update header/widget (#2213)
Browse files Browse the repository at this point in the history
* fix: add `type` of SEP #5 claiming data

* fix: staging allocation URL
  • Loading branch information
iamacook authored Jul 13, 2023
1 parent 27ffdd7 commit 8e32463
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/hooks/useSafeTokenAllocation.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -8,10 +10,13 @@ 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'
tag: 'user' | 'ecosystem' | 'investor' | 'user_v2' // SEP #5
account: string
chainId: number
contract: string
Expand Down

0 comments on commit 8e32463

Please sign in to comment.