From 454c241939b29a83128892041f5a9c48d1566c31 Mon Sep 17 00:00:00 2001 From: Robert Mourey Jr Date: Sat, 6 Jul 2024 16:48:41 +0000 Subject: [PATCH] . --- README.md | 2 +- src/components/About/ProtocolBanner.tsx | 2 +- src/components/FiatOnrampModal/index.tsx | 2 +- src/connection/WalletConnect.ts | 2 +- src/connection/WalletConnectV2.ts | 2 +- src/utils/env.ts | 4 ++-- src/utils/urlChecks.test.ts | 12 ++++++------ 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 0aa0492b448..a19a2429e9d 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ An open source interface for DeFi One -- a protocol for decentralized exchange of Ethereum tokens. -- Interface: [defione.io](https://defione.io) +- Interface: [dex.defione.io](https://dex.defione.io) - Docs: [defione.io/docs/](https://docs.defione.io) - Twitter: [@](https://twitter.com) - Reddit: [/r/](https://www.reddit.com/) diff --git a/src/components/About/ProtocolBanner.tsx b/src/components/About/ProtocolBanner.tsx index 2c280225914..2d3f465fe6a 100644 --- a/src/components/About/ProtocolBanner.tsx +++ b/src/components/About/ProtocolBanner.tsx @@ -95,7 +95,7 @@ const ProtocolBanner = () => { - + Learn more diff --git a/src/components/FiatOnrampModal/index.tsx b/src/components/FiatOnrampModal/index.tsx index e32fc73004c..7e7ad07f601 100644 --- a/src/components/FiatOnrampModal/index.tsx +++ b/src/components/FiatOnrampModal/index.tsx @@ -98,7 +98,7 @@ export default function FiatOnrampModal() { theme: isDarkMode ? 'dark' : 'light', colorCode: theme.accentAction, defaultCurrencyCode: 'eth', - redirectUrl: 'https://defione.io/#/swap', + redirectUrl: 'https://dex.defione.io/#/swap', walletAddresses: JSON.stringify( MOONPAY_SUPPORTED_CURRENCY_CODES.reduce( (acc, currencyCode) => ({ diff --git a/src/connection/WalletConnect.ts b/src/connection/WalletConnect.ts index a9bbb4f5d62..d03f86ac944 100644 --- a/src/connection/WalletConnect.ts +++ b/src/connection/WalletConnect.ts @@ -52,7 +52,7 @@ export class UniwalletConnect extends WalletConnectV1 { // Opens deeplink to DFI1 Wallet if on iOS if (isIOS) { - const newTab = window.open(`https://defione.io/wc?uri=${encodeURIComponent(uri)}`) + const newTab = window.open(`https://dex.defione.io/wc?uri=${encodeURIComponent(uri)}`) // Fixes blank tab opening on mobile Chrome newTab?.close() diff --git a/src/connection/WalletConnectV2.ts b/src/connection/WalletConnectV2.ts index 6d1119f7651..5ec4380ed3d 100644 --- a/src/connection/WalletConnectV2.ts +++ b/src/connection/WalletConnectV2.ts @@ -82,7 +82,7 @@ export class UniwalletConnect extends WalletConnectV2 { // Opens deeplink to DFI1 Wallet if on iOS if (isIOS) { - const newTab = window.open(`https://defione.io/wc?uri=${encodeURIComponent(uri)}`) + const newTab = window.open(`https://dex.defione.io/wc?uri=${encodeURIComponent(uri)}`) // Fixes blank tab opening on mobile Chrome newTab?.close() diff --git a/src/utils/env.ts b/src/utils/env.ts index 5f842541caf..95cbef763c4 100644 --- a/src/utils/env.ts +++ b/src/utils/env.ts @@ -16,11 +16,11 @@ export function isProductionEnv(): boolean { } export function isAppUniswapOrg({ hostname }: { hostname: string }): boolean { - return hostname === 'defione.io' + return hostname === 'dex.defione.io' } export function isAppUniswapStagingOrg({ hostname }: { hostname: string }): boolean { - return hostname === 'defione.io' + return hostname === 'dex.defione.io' } export function isSentryEnabled(): boolean { diff --git a/src/utils/urlChecks.test.ts b/src/utils/urlChecks.test.ts index 1169e8e8d70..8d6072f8edf 100644 --- a/src/utils/urlChecks.test.ts +++ b/src/utils/urlChecks.test.ts @@ -5,11 +5,11 @@ test('hasURL', () => { expect(hasURL('#corngang')).toBe(false) expect(hasURL('Unislap-LP.org')).toBe(true) expect(hasURL('https://uniswap.org')).toBe(true) - expect(hasURL('https://defione.io')).toBe(true) expect(hasURL('https://www.uniswap.org')).toBe(true) + expect(hasURL('https://dex.defione.io')).toBe(true) expect(hasURL('https://www.uniswap.org')).toBe(true) expect(hasURL('http://uniswap.org')).toBe(true) - expect(hasURL('http://username:password@defione.io')).toBe(true) - expect(hasURL('http://defione.io')).toBe(true) - expect(hasURL('username:password@defione.io:22')).toBe(true) - expect(hasURL('defione.io:80')).toBe(true) - expect(hasURL('asdf defione.io:80 asdf')).toBe(true) + expect(hasURL('http://username:password@dex.defione.io')).toBe(true) + expect(hasURL('http://dex.defione.io')).toBe(true) + expect(hasURL('username:password@dex.defione.io:22')).toBe(true) + expect(hasURL('dex.defione.io:80')).toBe(true) + expect(hasURL('asdf dex.defione.io:80 asdf')).toBe(true) })