@@ -21,10 +21,13 @@ import WalletIcon from '../../../public/icons/markets/wallet-icon.svg';
2121import HALLink from '../../components/HALLink' ;
2222import { HealthFactorNumber } from '../../components/HealthFactorNumber' ;
2323import { FormattedNumber } from '../../components/primitives/FormattedNumber' ;
24+ import { Link , ROUTES } from '../../components/primitives/Link' ;
2425import { NoData } from '../../components/primitives/NoData' ;
2526import { TopInfoPanel } from '../../components/TopInfoPanel/TopInfoPanel' ;
2627import { TopInfoPanelItem } from '../../components/TopInfoPanel/TopInfoPanelItem' ;
2728import { useAppDataContext } from '../../hooks/app-data-provider/useAppDataProvider' ;
29+ import { useRootStore } from '../../store/root' ;
30+ import { selectIsMigrationAvailable } from '../../store/v3MigrationSelectors' ;
2831import { LiquidationRiskParametresInfoModal } from './LiquidationRiskParametresModal/LiquidationRiskParametresModal' ;
2932
3033export const DashboardTopPanel = ( ) => {
@@ -34,6 +37,8 @@ export const DashboardTopPanel = () => {
3437 const [ open , setOpen ] = useState ( false ) ;
3538 const { openClaimRewards } = useModalContext ( ) ;
3639
40+ const isMigrateToV3Available = useRootStore ( ( state ) => selectIsMigrationAvailable ( state ) ) ;
41+
3742 const theme = useTheme ( ) ;
3843 const downToSM = useMediaQuery ( theme . breakpoints . down ( 'sm' ) ) ;
3944
@@ -205,6 +210,16 @@ export const DashboardTopPanel = () => {
205210 </ Box >
206211 </ TopInfoPanelItem >
207212 ) }
213+
214+ { isMigrateToV3Available && (
215+ < Box sx = { { alignSelf : 'center' } } >
216+ < Link href = { ROUTES . migrationTool } >
217+ < Button variant = "gradient" >
218+ < Trans > Migrate to V3</ Trans >
219+ </ Button >
220+ </ Link >
221+ </ Box >
222+ ) }
208223 </ TopInfoPanel >
209224
210225 < LiquidationRiskParametresInfoModal
0 commit comments