Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmourey26 authored Jul 6, 2024
1 parent 6fc266c commit 454c241
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
2 changes: 1 addition & 1 deletion src/components/About/ProtocolBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const ProtocolBanner = () => {
</DescriptionText>
</TextContainer>
<BannerButtonContainer>
<BannerButton width="200px" as="a" href="https://www.defione.io" rel="noopener noreferrer" target="_blank">
<BannerButton width="200px" as="a" href="https://www.dex.defione.io" rel="noopener noreferrer" target="_blank">
Learn more
</BannerButton>
</BannerButtonContainer>
Expand Down
2 changes: 1 addition & 1 deletion src/components/FiatOnrampModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => ({
Expand Down
2 changes: 1 addition & 1 deletion src/connection/WalletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/connection/WalletConnectV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
12 changes: 6 additions & 6 deletions src/utils/urlChecks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})

0 comments on commit 454c241

Please sign in to comment.