1
- import { DHEDGE_DAPP_LINK } from '@frontend/shared-constants' ;
1
+ import { DHEDGE_DAPP_LINK , ZERO_ADDRESS } from '@frontend/shared-constants' ;
2
2
import { OpenAccountModalButton } from '@frontend/shared-providers' ;
3
3
import { MotionStack } from '@frontend/shared-ui' ;
4
4
import { Button , Stack , Typography } from '@mui/material' ;
5
5
import { constants } from 'ethers' ;
6
6
import { useAccount , useNetwork , useSwitchNetwork } from 'wagmi' ;
7
7
8
- import { l1Chain } from '../../../../constants' ;
8
+ import { l1Chain , l2Chain } from '../../../../constants' ;
9
9
import { useNeedsApproval } from '../../../../hooks/useNeedsApproval' ;
10
10
import { useSetStep } from '../../hooks' ;
11
11
import { useTrackedState } from '../../state' ;
@@ -27,14 +27,18 @@ export const InputStep = (props: MotionStackProps) => {
27
27
return (
28
28
< MotionStack alignItems = "flex-start" { ...props } >
29
29
< Typography variant = "h5" mb = { 1 } >
30
- Redeem your dHEDGE V1{ ' ' }
31
- < a
32
- href = { `${ DHEDGE_DAPP_LINK } /vault/${ l1token . contract . address } ` }
33
- target = "_blank"
34
- rel = "noreferrer"
35
- >
36
- { l1token . contract . name ?? 'vault' }
37
- </ a > { ' ' }
30
+ Redeem your V1{ ' ' }
31
+ { l1token . contract . address === ZERO_ADDRESS ? (
32
+ 'vault'
33
+ ) : (
34
+ < a
35
+ href = { `${ DHEDGE_DAPP_LINK } /vault/${ l1token . contract . address } ` }
36
+ target = "_blank"
37
+ rel = "noreferrer"
38
+ >
39
+ { l1token . contract . name ?? 'vault' }
40
+ </ a >
41
+ ) } { ' ' }
38
42
tokens to receive{ ' ' }
39
43
< a
40
44
href = { `${ DHEDGE_DAPP_LINK } /vault/${ l2token . contract . address } ` }
@@ -49,6 +53,11 @@ export const InputStep = (props: MotionStackProps) => {
49
53
After redeeming your vault tokens from Ethereum, please wait while the
50
54
bridge issues your { l2token . contract . symbol } tokens.
51
55
</ Typography >
56
+ < Typography variant = "hint" color = "warning.dark" >
57
+ Your { l2token . contract . symbol } tokens will be sent to the same{ ' ' }
58
+ { l2Chain . name } address you used.
59
+ </ Typography >
60
+
52
61
< Stack width = { 1 } justifyContent = "center" alignItems = "center" my = { 8 } >
53
62
< Stack width = { { xs : 'auto' , lg : 3 / 4 } } >
54
63
< TokenInputs mb = { 4 } />
0 commit comments