@@ -15,6 +15,7 @@ import { ReactTable } from '@/components/ReactTable/ReactTable'
15
15
import { RawText } from '@/components/Text'
16
16
import { WalletActions } from '@/context/WalletProvider/actions'
17
17
import { DefiAction } from '@/features/defi/contexts/DefiManagerProvider/DefiCommon'
18
+ import { useFeatureFlag } from '@/hooks/useFeatureFlag/useFeatureFlag'
18
19
import { useWallet } from '@/hooks/useWallet/useWallet'
19
20
import { bn , bnOrZero } from '@/lib/bignumber/bignumber'
20
21
import { trackOpportunityEvent } from '@/lib/mixpanel/helpers'
@@ -96,6 +97,7 @@ export const StakingPositionsByProvider: React.FC<StakingPositionsByProviderProp
96
97
const stakingOpportunities = useAppSelector (
97
98
selectAggregatedEarnUserStakingOpportunitiesIncludeEmpty ,
98
99
)
100
+ const isRfoxFoxEcosystemPageEnabled = useFeatureFlag ( 'RfoxFoxEcosystemPage' )
99
101
const filteredDown = useMemo (
100
102
( ) =>
101
103
stakingOpportunities . filter (
@@ -126,7 +128,7 @@ export const StakingPositionsByProvider: React.FC<StakingPositionsByProviderProp
126
128
const { assetReference, assetNamespace } = fromAssetId ( assetId )
127
129
128
130
if ( provider === DefiProvider . rFOX ) {
129
- return navigate ( '/rfox ')
131
+ return navigate ( isRfoxFoxEcosystemPageEnabled ? '/fox-ecosystem' : '/fox ')
130
132
}
131
133
132
134
if ( ! isConnected ) {
@@ -163,7 +165,7 @@ export const StakingPositionsByProvider: React.FC<StakingPositionsByProviderProp
163
165
} ,
164
166
)
165
167
} ,
166
- [ assets , dispatch , navigate , isConnected , location ] ,
168
+ [ isConnected , assets , navigate , location , isRfoxFoxEcosystemPageEnabled , dispatch ] ,
167
169
)
168
170
const columns : Column < StakingEarnOpportunityType > [ ] = useMemo (
169
171
( ) => [
0 commit comments