File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
apps/box/src/components/Cards Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -103,16 +103,17 @@ export const EarningCard = ({
103103 const handleOpenClaimPortal = async ( ) => {
104104 try {
105105 // Build the claim URL with network and peerId parameters
106- const claimBaseUrl = 'https://claim-web.fula.network' ;
106+ // MetaMask deep link expects domain without protocol (no https://)
107+ const claimDomain = 'claim-web.fula.network' ;
107108 const params = new URLSearchParams ( ) ;
108109 params . append ( 'network' , selectedChain ) ;
109110 if ( currentBloxPeerId ) {
110111 params . append ( 'peerId' , currentBloxPeerId ) ;
111112 }
112- const claimUrl = `${ claimBaseUrl } ?${ params . toString ( ) } ` ;
113113
114- // Wrap in MetaMask deep link to open in MetaMask browser
115- const metamaskDeepLink = `https://metamask.app.link/dapp/${ encodeURIComponent ( claimUrl ) } ` ;
114+ // MetaMask deep link format: https://metamask.app.link/dapp/{domain}?{params}
115+ // Do NOT URL encode - MetaMask expects raw URL after /dapp/
116+ const metamaskDeepLink = `https://metamask.app.link/dapp/${ claimDomain } ?${ params . toString ( ) } ` ;
116117
117118 await Linking . openURL ( metamaskDeepLink ) ;
118119 } catch ( error : any ) {
You can’t perform that action at this time.
0 commit comments