@@ -239,7 +239,7 @@ <h1 class="text-3xl font-bold flex items-center gap-1">
239239 < img src ="mango-logo.png " alt ="MangoSwap " class ="w-10 h-10 inline-block ">
240240 < span class ="bg-gradient-to-r from-orange-500 via-yellow-500 to-green-500 bg-clip-text text-transparent "> MangoSwap</ span >
241241 </ h1 >
242- < p class ="text-gray-600 text-sm font-medium "> Sweet Swaps on Base ⛽ < span class ="bg-green-500 text-white px-2 py-0.5 rounded-full text-xs font-bold "> V4 </ span > </ p >
242+ < p class ="text-gray-600 text-sm font-medium "> Sweet Swaps on Base ⛽ < span class ="bg-green-500 text-white px-2 py-0.5 rounded-full text-xs font-bold "> GAS FREE </ span > </ p >
243243 </ div >
244244 < div class ="flex items-center gap-2 ">
245245 < button id ="themeToggle " class ="bg-gradient-to-r from-orange-400 to-yellow-400 hover:from-orange-500 hover:to-yellow-500 text-white px-4 py-2 rounded-lg font-bold shadow-md transition transform hover:scale-105 " title ="Toggle Dark Mode ">
@@ -281,7 +281,10 @@ <h3 class="text-2xl font-bold text-gray-800 mb-4">Connect Wallet</h3>
281281 🦊 MetaMask
282282 </ button >
283283 < button id ="connectCoinbase " class ="w-full bg-gradient-to-r from-blue-500 to-indigo-600 hover:from-blue-600 hover:to-indigo-700 text-white font-bold py-3 rounded-xl transition flex items-center justify-center gap-2 ">
284- 🔵 Coinbase Wallet
284+ 🔵 Base Wallet
285+ </ button >
286+ < button id ="connectPhantom " class ="w-full bg-gradient-to-r from-purple-500 to-indigo-500 hover:from-purple-600 hover:to-indigo-600 text-white font-bold py-3 rounded-xl transition flex items-center justify-center gap-2 ">
287+ 👻 Phantom
285288 </ button >
286289 </ div >
287290 < button id ="closeModal " class ="mt-4 w-full text-gray-600 hover:text-gray-800 font-semibold "> Cancel</ button >
@@ -413,7 +416,7 @@ <h3 class="font-bold text-orange-800 mb-2 text-sm">⏰ Execution Time</h3>
413416 </ div >
414417 </ div >
415418 < p id ="instantTimeNote " class ="text-xs text-orange-800 mt-2 "> ✨ Swap executes immediately</ p >
416- < p id ="scheduledTimeNote " class ="text-xs text-orange-800 mt-2 hidden "> 📅 Swap will execute automatically at scheduled time</ p >
419+ < p id ="scheduledTimeNote " class ="text-xs text-orange-800 mt-2 hidden "> 📅 Swap will execute at the time you select (your local timezone) </ p >
417420 </ div >
418421
419422 < div class ="bg-gradient-to-r from-green-100 to-emerald-100 rounded-lg p-3 border border-green-300 transition-colors duration-300 ">
@@ -612,7 +615,7 @@ <h3 class="font-bold text-orange-800 mb-2 text-sm">🎯 Target Price</h3>
612615 < span class ="text-xl "> ✅</ span >
613616 < div >
614617 < div class ="text-xs font-semibold text-green-800 "> Verified Contract</ div >
615- < div class ="text-xs text-green-700 "> Uniswap V3 Routing </ div >
618+ < div class ="text-xs text-green-700 "> View on Basescan </ div >
616619 </ div >
617620 </ div >
618621 < div class ="flex items-center gap-2 ">
@@ -765,6 +768,7 @@ <h3 class="font-bold text-orange-800 mb-2 text-sm">🎯 Target Price</h3>
765768 document . getElementById ( 'closeModal' ) . addEventListener ( 'click' , hideWalletModal ) ;
766769 document . getElementById ( 'connectMetaMask' ) . addEventListener ( 'click' , ( ) => connectWallet ( 'metamask' ) ) ;
767770 document . getElementById ( 'connectCoinbase' ) . addEventListener ( 'click' , ( ) => connectWallet ( 'coinbase' ) ) ;
771+ document . getElementById ( 'connectPhantom' ) . addEventListener ( 'click' , ( ) => connectWallet ( 'phantom' ) ) ;
768772 document . getElementById ( 'scheduleTab' ) . addEventListener ( 'click' , ( ) => switchTab ( 'schedule' ) ) ;
769773 document . getElementById ( 'swapsTab' ) . addEventListener ( 'click' , ( ) => switchTab ( 'swaps' ) ) ;
770774 document . getElementById ( 'limitTab' ) . addEventListener ( 'click' , ( ) => switchTab ( 'limit' ) ) ;
@@ -868,11 +872,18 @@ <h3 class="font-bold text-orange-800 mb-2 text-sm">🎯 Target Price</h3>
868872
869873 let ethereum ;
870874
871- if ( walletType === 'coinbase' ) {
875+ if ( walletType === 'phantom' ) {
876+ if ( window . phantom ?. ethereum ) {
877+ ethereum = window . phantom . ethereum ;
878+ } else {
879+ alert ( 'Phantom wallet not installed! Visit phantom.app to install.' ) ;
880+ return ;
881+ }
882+ } else if ( walletType === 'coinbase' ) {
872883 if ( window . ethereum ?. isCoinbaseWallet ) {
873884 ethereum = window . ethereum ;
874885 } else {
875- alert ( 'Coinbase Wallet not detected! Please install it from coinbase.com/wallet ' ) ;
886+ alert ( 'Base Wallet not detected! Please install it from wallet. coinbase.com' ) ;
876887 return ;
877888 }
878889 } else {
0 commit comments