@@ -9,10 +9,8 @@ import { STRING_KEYS } from '@/constants/localization';
99import { EMPTY_ARR } from '@/constants/objects' ;
1010import { AppRoute } from '@/constants/routes' ;
1111
12- import { useAccountBalance } from '@/hooks/useAccountBalance' ;
1312import { useBreakpoints } from '@/hooks/useBreakpoints' ;
1413import { useComplianceState } from '@/hooks/useComplianceState' ;
15- import { useEnvConfig } from '@/hooks/useEnvConfig' ;
1614import { useStringGetter } from '@/hooks/useStringGetter' ;
1715import { useTokenConfigs } from '@/hooks/useTokenConfigs' ;
1816
@@ -23,12 +21,10 @@ import { DetachedSection } from '@/components/ContentSection';
2321import { ContentSectionHeader } from '@/components/ContentSectionHeader' ;
2422import { TermsOfUseLink } from '@/components/TermsOfUseLink' ;
2523
26- import { MustBigNumber } from '@/lib/numbers' ;
2724import { orEmptyObj } from '@/lib/typeUtils' ;
2825
2926import { GeoblockedPanel } from './GeoblockedPanel' ;
3027import { LaunchIncentivesPanel } from './LaunchIncentivesPanel' ;
31- import { MigratePanel } from './MigratePanel' ;
3228import { RewardHistoryPanel } from './RewardHistoryPanel' ;
3329import { RewardsHelpPanel } from './RewardsHelpPanel' ;
3430import { RewardsLeaderboardPanel } from './RewardsLeaderboardPanel' ;
@@ -41,7 +37,7 @@ const RewardsPage = () => {
4137 const navigate = useNavigate ( ) ;
4238
4339 const { complianceState } = useComplianceState ( ) ;
44- const { isTablet, isNotTablet } = useBreakpoints ( ) ;
40+ const { isTablet } = useBreakpoints ( ) ;
4541
4642 const { usdcDenom } = useTokenConfigs ( ) ;
4743
@@ -52,17 +48,6 @@ const RewardsPage = () => {
5248 ( a ) => a . amount
5349 ) ;
5450
55- const ethereumChainId = useEnvConfig ( 'ethereumChainId' ) ;
56- const chainId = Number ( ethereumChainId ) ;
57- // v3 token is only on mainnet
58- const { balance : tokenBalance } = useAccountBalance ( {
59- addressOrDenom : chainId === 1 ? import . meta. env . VITE_V3_TOKEN_ADDRESS : undefined ,
60- chainId : 1 ,
61- isCosmosChain : false ,
62- } ) ;
63-
64- const showMigratePanel =
65- import . meta. env . VITE_V3_TOKEN_ADDRESS && isNotTablet && MustBigNumber ( tokenBalance ) . gt ( 0 ) ;
6651 const showGeoblockedPanel = complianceState !== ComplianceStates . FULL_ACCESS ;
6752 const showStakingRewardPanel = totalUsdcRewards > 0 && ! showGeoblockedPanel ;
6853
@@ -99,7 +84,6 @@ const RewardsPage = () => {
9984 </ div >
10085 ) : (
10186 < $DetachedSection >
102- { showMigratePanel && < MigratePanel /> }
10387 < div tw = "flex gap-1.5" >
10488 < div tw = "flexColumn flex-[2] gap-1.5" >
10589 < LaunchIncentivesPanel />
0 commit comments