From 366f4d98ef1a51145bc8ab603de0c29ccde1afa2 Mon Sep 17 00:00:00 2001 From: eddie <66155195+just-toby@users.noreply.github.com> Date: Wed, 30 Aug 2023 12:37:50 -0700 Subject: [PATCH] fix: remove unused feature flags (#7234) * fix: remove unused feature flags * fix: remove flag from tests * fix: tests * fix: remove useUniswapX param --- cypress/e2e/buy-crypto-modal.test.ts | 5 +- cypress/e2e/swap/settings.test.ts | 2 +- .../FeatureFlagModal/FeatureFlagModal.tsx | 7 - src/components/swap/SwapHeader.tsx | 5 +- src/featureFlags/flags/fiatOnRampButton.ts | 9 - src/featureFlags/flags/forceUniswapXOn.ts | 9 - src/featureFlags/index.tsx | 3 - .../hooks/routing/useRoutingAPIArguments.ts | 4 - .../Landing/__snapshots__/index.test.tsx.snap | 1304 +++++++++-------- src/state/routing/slice.ts | 12 +- src/state/routing/types.ts | 1 - 11 files changed, 719 insertions(+), 642 deletions(-) delete mode 100644 src/featureFlags/flags/fiatOnRampButton.ts delete mode 100644 src/featureFlags/flags/forceUniswapXOn.ts diff --git a/cypress/e2e/buy-crypto-modal.test.ts b/cypress/e2e/buy-crypto-modal.test.ts index f460b35abe..9357cc31fc 100644 --- a/cypress/e2e/buy-crypto-modal.test.ts +++ b/cypress/e2e/buy-crypto-modal.test.ts @@ -1,9 +1,8 @@ -import { FeatureFlag } from '../../src/featureFlags' import { getTestSelector } from '../utils' describe('Buy Crypto Modal', () => { it('should open and close', () => { - cy.visit('/', { featureFlags: [FeatureFlag.fiatOnRampButtonOnSwap] }) + cy.visit('/') // Open the fiat onramp modal cy.get(getTestSelector('buy-fiat-button')).click() @@ -16,7 +15,7 @@ describe('Buy Crypto Modal', () => { it('should open and close, mobile viewport', () => { cy.viewport('iphone-6') - cy.visit('/', { featureFlags: [FeatureFlag.fiatOnRampButtonOnSwap] }) + cy.visit('/') // Open the fiat onramp modal cy.get(getTestSelector('buy-fiat-button')).click() diff --git a/cypress/e2e/swap/settings.test.ts b/cypress/e2e/swap/settings.test.ts index aa6d558570..7360121e77 100644 --- a/cypress/e2e/swap/settings.test.ts +++ b/cypress/e2e/swap/settings.test.ts @@ -24,6 +24,6 @@ describe('Swap settings', () => { cy.contains('Transaction deadline').should('exist') cy.contains('UniswapX').should('exist') cy.contains('Local routing').should('exist') - cy.get(getTestSelector('mobile-settings-scrim')).click() + cy.get(getTestSelector('mobile-settings-scrim')).click({ force: true }) }) }) diff --git a/src/components/FeatureFlagModal/FeatureFlagModal.tsx b/src/components/FeatureFlagModal/FeatureFlagModal.tsx index d3d13ef6d0..52e6b76540 100644 --- a/src/components/FeatureFlagModal/FeatureFlagModal.tsx +++ b/src/components/FeatureFlagModal/FeatureFlagModal.tsx @@ -1,7 +1,6 @@ import Column from 'components/Column' import { BaseVariant, FeatureFlag, featureFlagSettings, useUpdateFlag } from 'featureFlags' import { useCurrencyConversionFlag } from 'featureFlags/flags/currencyConversion' -import { useForceUniswapXOnFlag } from 'featureFlags/flags/forceUniswapXOn' import { useFotAdjustmentsFlag } from 'featureFlags/flags/fotAdjustments' import { useInfoExploreFlag } from 'featureFlags/flags/infoExplore' import { useInfoLiveViewsFlag } from 'featureFlags/flags/infoLiveViews' @@ -236,12 +235,6 @@ export default function FeatureFlagModal() { featureFlag={FeatureFlag.uniswapXEnabled} label="Enable UniswapX on interface" /> - Swap - {fiatOnRampButtonEnabled && } + diff --git a/src/featureFlags/flags/fiatOnRampButton.ts b/src/featureFlags/flags/fiatOnRampButton.ts deleted file mode 100644 index 2b3b16eaa7..0000000000 --- a/src/featureFlags/flags/fiatOnRampButton.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { BaseVariant, FeatureFlag, useBaseFlag } from '../index' - -function useFiatOnRampButtonFlag(): BaseVariant { - return useBaseFlag(FeatureFlag.fiatOnRampButtonOnSwap) -} - -export function useFiatOnRampButtonEnabled(): boolean { - return useFiatOnRampButtonFlag() === BaseVariant.Enabled -} diff --git a/src/featureFlags/flags/forceUniswapXOn.ts b/src/featureFlags/flags/forceUniswapXOn.ts deleted file mode 100644 index e484eaa742..0000000000 --- a/src/featureFlags/flags/forceUniswapXOn.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { BaseVariant, FeatureFlag, useBaseFlag } from '../index' - -export function useForceUniswapXOnFlag(): BaseVariant { - return useBaseFlag(FeatureFlag.forceUniswapXOn) -} - -export function useForceUniswapXOn(): boolean { - return useForceUniswapXOnFlag() === BaseVariant.Enabled -} diff --git a/src/featureFlags/index.tsx b/src/featureFlags/index.tsx index 6f694ba919..864976eb2c 100644 --- a/src/featureFlags/index.tsx +++ b/src/featureFlags/index.tsx @@ -7,12 +7,9 @@ import { useGate } from 'statsig-react' */ export enum FeatureFlag { traceJsonRpc = 'traceJsonRpc', - permit2 = 'permit2', - fiatOnRampButtonOnSwap = 'fiat_on_ramp_button_on_swap_page', debounceSwapQuote = 'debounce_swap_quote', uniswapXEnabled = 'uniswapx_enabled', // enables sending dutch_limit config to routing-api uniswapXSyntheticQuote = 'uniswapx_synthetic_quote', - forceUniswapXOn = 'uniswapx_force_on', // forces routing-api's feature flag for uniswapx to turn on as well uniswapXEthOutputEnabled = 'uniswapx_eth_output_enabled', uniswapXExactOutputEnabled = 'uniswapx_exact_output_enabled', multichainUX = 'multichain_ux', diff --git a/src/lib/hooks/routing/useRoutingAPIArguments.ts b/src/lib/hooks/routing/useRoutingAPIArguments.ts index 5cb1c73fd1..1b90ecb6d9 100644 --- a/src/lib/hooks/routing/useRoutingAPIArguments.ts +++ b/src/lib/hooks/routing/useRoutingAPIArguments.ts @@ -1,6 +1,5 @@ import { SkipToken, skipToken } from '@reduxjs/toolkit/query/react' import { Currency, CurrencyAmount, TradeType } from '@uniswap/sdk-core' -import { useForceUniswapXOn } from 'featureFlags/flags/forceUniswapXOn' import { useFotAdjustmentsEnabled } from 'featureFlags/flags/fotAdjustments' import { useUniswapXEnabled } from 'featureFlags/flags/uniswapx' import { useUniswapXEthOutputEnabled } from 'featureFlags/flags/uniswapXEthOutput' @@ -33,7 +32,6 @@ export function useRoutingAPIArguments({ }): GetQuoteArgs | SkipToken { const uniswapXEnabled = useUniswapXEnabled() const uniswapXForceSyntheticQuotes = useUniswapXSyntheticQuoteEnabled() - const forceUniswapXOn = useForceUniswapXOn() const userDisabledUniswapX = useUserDisabledUniswapX() const uniswapXEthOutputEnabled = useUniswapXEthOutputEnabled() const uniswapXExactOutputEnabled = useUniswapXExactOutputEnabled() @@ -59,7 +57,6 @@ export function useRoutingAPIArguments({ needsWrapIfUniswapX: tokenIn.isNative, uniswapXEnabled, uniswapXForceSyntheticQuotes, - forceUniswapXOn, userDisabledUniswapX, uniswapXEthOutputEnabled, uniswapXExactOutputEnabled, @@ -75,7 +72,6 @@ export function useRoutingAPIArguments({ uniswapXEnabled, uniswapXExactOutputEnabled, uniswapXForceSyntheticQuotes, - forceUniswapXOn, userDisabledUniswapX, uniswapXEthOutputEnabled, fotAdjustmentsEnabled, diff --git a/src/pages/Landing/__snapshots__/index.test.tsx.snap b/src/pages/Landing/__snapshots__/index.test.tsx.snap index dd75ea98cf..fbdf06830d 100644 --- a/src/pages/Landing/__snapshots__/index.test.tsx.snap +++ b/src/pages/Landing/__snapshots__/index.test.tsx.snap @@ -7,7 +7,7 @@ exports[`disable nft on landing page does not render nft information and card 1` min-width: 0; } -.c24 { +.c14 { box-sizing: border-box; margin: 0; min-width: 0; @@ -30,7 +30,7 @@ exports[`disable nft on landing page does not render nft information and card 1` border-radius: 4px; } -.c43 { +.c46 { box-sizing: border-box; margin: 0; min-width: 0; @@ -88,11 +88,11 @@ exports[`disable nft on landing page does not render nft information and card 1` color: #222222; } -.c20 { +.c25 { color: #7D7D7D; } -.c95 { +.c98 { -webkit-text-decoration: none; text-decoration: none; cursor: pointer; @@ -103,15 +103,15 @@ exports[`disable nft on landing page does not render nft information and card 1` font-weight: 500; } -.c95:hover { +.c98:hover { opacity: 0.6; } -.c95:active { +.c98:active { opacity: 0.4; } -.c93 { +.c96 { -webkit-text-decoration: none; text-decoration: none; cursor: pointer; @@ -122,36 +122,36 @@ exports[`disable nft on landing page does not render nft information and card 1` font-weight: 500; } -.c93:hover { +.c96:hover { opacity: 0.6; } -.c93:active { +.c96:active { opacity: 0.4; } -.c86 { +.c89 { height: 32px; width: 32px; fill: #98A1C0; opacity: 1; } -.c87 { +.c90 { height: 32px; width: 32px; fill: #98A1C0; opacity: 1; } -.c88 { +.c91 { height: 32px; width: 32px; fill: #98A1C0; opacity: 1; } -.c80 { +.c83 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -164,7 +164,7 @@ exports[`disable nft on landing page does not render nft information and card 1` max-width: 1440px; } -.c81 { +.c84 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -174,24 +174,24 @@ exports[`disable nft on landing page does not render nft information and card 1` flex-direction: column; } -.c82 { +.c85 { display: none; } -.c97 { +.c100 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } -.c83 { +.c86 { width: 72px; height: 72px; display: none; } -.c84 { +.c87 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -204,20 +204,20 @@ exports[`disable nft on landing page does not render nft information and card 1` margin: 20px 0 0 0; } -.c85 { +.c88 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } -.c90 { +.c93 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } -.c91 { +.c94 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -230,32 +230,32 @@ exports[`disable nft on landing page does not render nft information and card 1` margin: 20px 0 0 0; } -.c92 { +.c95 { font-size: 16px; line-height: 20px; font-weight: 535; } -.c96 { +.c99 { font-size: 16px; line-height: 20px; color: #7D7D7D; } -.c94 { +.c97 { font-size: 16px; line-height: 20px; color: #7D7D7D; } -.c89 { +.c92 { font-size: 16px; line-height: 20px; margin: 1rem 0 0 0; color: #CECECE; } -.c63 { +.c66 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -283,11 +283,11 @@ exports[`disable nft on landing page does not render nft information and card 1` transition: 250ms ease border; } -.c63:hover { +.c66:hover { border: 1px solid #CECECE; } -.c69 { +.c72 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -315,11 +315,11 @@ exports[`disable nft on landing page does not render nft information and card 1` transition: 250ms ease border; } -.c69:hover { +.c72:hover { border: 1px solid #CECECE; } -.c64 { +.c67 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -334,13 +334,13 @@ exports[`disable nft on landing page does not render nft information and card 1` justify-content: space-between; } -.c65 { +.c68 { font-size: 20px; line-height: 28px; font-weight: 535; } -.c66 { +.c69 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -355,7 +355,7 @@ exports[`disable nft on landing page does not render nft information and card 1` max-width: 480px; } -.c70 { +.c73 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -370,7 +370,7 @@ exports[`disable nft on landing page does not render nft information and card 1` max-width: 480px; } -.c67 { +.c70 { color: #FC72FF; font-weight: 535; margin: 24px 0 0; @@ -379,18 +379,18 @@ exports[`disable nft on landing page does not render nft information and card 1` transition: 250ms ease opacity; } -.c67:hover { +.c70:hover { opacity: 0.6; } -.c71 { +.c74 { min-width: 20px; min-height: 20px; max-height: 48px; max-width: 48px; } -.c46 { +.c49 { background-color: transparent; bottom: 0; border-radius: inherit; @@ -404,7 +404,7 @@ exports[`disable nft on landing page does not render nft information and card 1` width: 100%; } -.c25 { +.c15 { padding: 16px; width: 100%; line-height: 24px; @@ -443,25 +443,25 @@ exports[`disable nft on landing page does not render nft information and card 1` transform: perspective(1px) translateZ(0); } -.c25:disabled { +.c15:disabled { opacity: 50%; cursor: auto; pointer-events: none; } -.c25 > * { +.c15 > * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } -.c25 > a { +.c15 > a { -webkit-text-decoration: none; text-decoration: none; } -.c77 { +.c80 { padding: 16px; width: 200px; line-height: 24px; @@ -500,58 +500,58 @@ exports[`disable nft on landing page does not render nft information and card 1` transform: perspective(1px) translateZ(0); } -.c77:disabled { +.c80:disabled { opacity: 50%; cursor: auto; pointer-events: none; } -.c77 > * { +.c80 > * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } -.c77 > a { +.c80 > a { -webkit-text-decoration: none; text-decoration: none; } -.c44 { +.c47 { background-color: #FFEFFF; color: #FC72FF; font-size: 20px; font-weight: 535; } -.c44:focus { +.c47:focus { box-shadow: 0 0 0 1pt #FFEFFF; background-color: #FFEFFF; } -.c44:hover { +.c47:hover { background-color: #FFEFFF; } -.c44:active { +.c47:active { box-shadow: 0 0 0 1pt #FFEFFF; background-color: #FFEFFF; } -.c44:hover .c45 { +.c47:hover .c48 { background-color: #98A1C014; } -.c44:active .c45 { +.c47:active .c48 { background-color: #B8C0DC3d; } -.c44:disabled { +.c47:disabled { opacity: 0.4; } -.c44:disabled:hover { +.c47:disabled:hover { cursor: auto; background-color: transparent; box-shadow: none; @@ -559,7 +559,7 @@ exports[`disable nft on landing page does not render nft information and card 1` outline: none; } -.c26 { +.c29 { background-color: #FFFFFF; color: #7D7D7D; border: 1px solid #22222212; @@ -567,15 +567,15 @@ exports[`disable nft on landing page does not render nft information and card 1` font-weight: 535; } -.c26:hover { +.c29:hover { background-color: #ececec; } -.c26:active { +.c29:active { background-color: #e0e0e0; } -.c78 { +.c81 { background-color: transparent; color: #FC72FF; display: -webkit-box; @@ -592,27 +592,56 @@ exports[`disable nft on landing page does not render nft information and card 1` align-items: center; } -.c78:focus { +.c81:focus { -webkit-text-decoration: underline; text-decoration: underline; } -.c78:hover { +.c81:hover { -webkit-text-decoration: none; text-decoration: none; } -.c78:active { +.c81:active { -webkit-text-decoration: none; text-decoration: none; } -.c78:disabled { +.c81:disabled { opacity: 50%; cursor: auto; } -.c72 { +.c16 { + padding: 0; + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; + background: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c16:focus { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.c16:hover { + opacity: 0.9; +} + +.c16:active { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.c16:disabled { + opacity: 50%; + cursor: auto; +} + +.c75 { height: 340px; width: 100%; border-radius: 32px; @@ -638,7 +667,7 @@ exports[`disable nft on landing page does not render nft information and card 1` background: url(Mesh.png),linear-gradient(93.06deg,#FF00C7 2.66%,#FF9FFB 98.99%); } -.c73 { +.c76 { color: white; display: -webkit-box; display: -webkit-flex; @@ -652,20 +681,20 @@ exports[`disable nft on landing page does not render nft information and card 1` flex-direction: column; } -.c74 { +.c77 { font-weight: 535; font-size: 28px; line-height: 36px; } -.c75 { +.c78 { margin: 10px 10px 0 0; font-weight: 535; font-size: 16px; line-height: 20px; } -.c76 { +.c79 { width: 100%; display: -webkit-box; display: -webkit-flex; @@ -679,22 +708,22 @@ exports[`disable nft on landing page does not render nft information and card 1` transition: 250ms ease opacity; } -.c76:hover { +.c79:hover { opacity: 0.6; } -.c79 { +.c82 { color: white; border: 1px solid white; } -.c39 { +.c42 { display: grid; grid-auto-rows: auto; grid-row-gap: 4px; } -.c36 { +.c39 { -webkit-filter: none; filter: none; opacity: 1; @@ -702,7 +731,12 @@ exports[`disable nft on landing page does not render nft information and card 1` transition: opacity 250ms ease-in-out; } -.c31 { +.c13 { + display: inline-block; + height: inherit; +} + +.c34 { opacity: 0; -webkit-transition: opacity 250ms ease-in; transition: opacity 250ms ease-in; @@ -711,7 +745,7 @@ exports[`disable nft on landing page does not render nft information and card 1` border-radius: 50%; } -.c30 { +.c33 { width: 24px; height: 24px; background: #22222212; @@ -721,7 +755,7 @@ exports[`disable nft on landing page does not render nft information and card 1` border-radius: 50%; } -.c29 { +.c32 { position: relative; display: -webkit-box; display: -webkit-flex; @@ -729,7 +763,7 @@ exports[`disable nft on landing page does not render nft information and card 1` display: flex; } -.c22 { +.c27 { color: #222222; width: 0; position: relative; @@ -749,36 +783,36 @@ exports[`disable nft on landing page does not render nft information and card 1` text-align: right; } -.c22::-webkit-search-decoration { +.c27::-webkit-search-decoration { -webkit-appearance: none; } -.c22 [type='number'] { +.c27 [type='number'] { -moz-appearance: textfield; } -.c22::-webkit-outer-spin-button, -.c22::-webkit-inner-spin-button { +.c27::-webkit-outer-spin-button, +.c27::-webkit-inner-spin-button { -webkit-appearance: none; } -.c22::-webkit-input-placeholder { +.c27::-webkit-input-placeholder { color: #CECECE; } -.c22::-moz-placeholder { +.c27::-moz-placeholder { color: #CECECE; } -.c22:-ms-input-placeholder { +.c27:-ms-input-placeholder { color: #CECECE; } -.c22::placeholder { +.c27::placeholder { color: #CECECE; } -.c18 { +.c23 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -795,13 +829,13 @@ exports[`disable nft on landing page does not render nft information and card 1` will-change: height; } -.c19 { +.c24 { min-height: 44px; border-radius: 20px; width: initial; } -.c27 { +.c30 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -832,12 +866,12 @@ exports[`disable nft on landing page does not render nft information and card 1` visibility: visible; } -.c27:hover, -.c27:active { +.c30:hover, +.c30:active { background-color: #F9F9F9; } -.c27:before { +.c30:before { background-size: 100%; border-radius: inherit; position: absolute; @@ -848,15 +882,15 @@ exports[`disable nft on landing page does not render nft information and card 1` content: ''; } -.c27:hover:before { +.c30:hover:before { background-color: #98A1C014; } -.c27:active:before { +.c30:active:before { background-color: #B8C0DC3d; } -.c41 { +.c44 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -887,12 +921,12 @@ exports[`disable nft on landing page does not render nft information and card 1` visibility: visible; } -.c41:hover, -.c41:active { +.c44:hover, +.c44:active { background-color: #FC72FF; } -.c41:before { +.c44:before { background-size: 100%; border-radius: inherit; position: absolute; @@ -903,15 +937,15 @@ exports[`disable nft on landing page does not render nft information and card 1` content: ''; } -.c41:hover:before { +.c44:hover:before { background-color: #98A1C014; } -.c41:active:before { +.c44:active:before { background-color: #B8C0DC3d; } -.c21 { +.c26 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -929,7 +963,7 @@ exports[`disable nft on landing page does not render nft information and card 1` justify-content: space-between; } -.c34 { +.c37 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -946,12 +980,12 @@ exports[`disable nft on landing page does not render nft information and card 1` line-height: 1rem; } -.c34 span:hover { +.c37 span:hover { cursor: pointer; color: #4a4a4a; } -.c35 { +.c38 { -webkit-box-pack: end; -webkit-justify-content: flex-end; -ms-flex-pack: end; @@ -960,7 +994,7 @@ exports[`disable nft on landing page does not render nft information and card 1` padding: 8px 0px 0px 0px; } -.c28 { +.c31 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -976,35 +1010,35 @@ exports[`disable nft on landing page does not render nft information and card 1` width: 100%; } -.c33 { +.c36 { margin: 0 0.25rem 0 0.35rem; height: 35%; margin-left: 8px; } -.c33 path { +.c36 path { stroke: #222222; stroke-width: 2px; } -.c42 { +.c45 { margin: 0 0.25rem 0 0.35rem; height: 35%; margin-left: 8px; } -.c42 path { +.c45 path { stroke: #FFFFFF; stroke-width: 2px; } -.c32 { +.c35 { margin: 0 0.25rem 0 0.25rem; font-size: 20px; font-weight: 535; } -.c23 { +.c28 { -webkit-filter: none; filter: none; opacity: 1; @@ -1040,7 +1074,7 @@ exports[`disable nft on landing page does not render nft information and card 1` border: 1px solid #22222212; } -.c37 { +.c40 { border-radius: 12px; height: 40px; width: 40px; @@ -1055,21 +1089,21 @@ exports[`disable nft on landing page does not render nft information and card 1` z-index: 2; } -.c37:hover { +.c40:hover { cursor: pointer; opacity: 0.8; } -.c16 { +.c21 { height: 24px; width: 24px; } -.c16 > * { +.c21 > * { fill: #7D7D7D; } -.c14 { +.c19 { border: none; background-color: transparent; margin: 0; @@ -1078,19 +1112,35 @@ exports[`disable nft on landing page does not render nft information and card 1` outline: none; } -.c14:not([disabled]):hover { +.c19:not([disabled]):hover { opacity: 0.7; } -.c15 { +.c20 { padding: 6px 12px; border-radius: 16px; } -.c13 { +.c18 { position: relative; } +.c17 { + color: #7D7D7D; + gap: 4px; + font-weight: 485; +} + +.c17:focus { + -webkit-text-decoration: none; + text-decoration: none; +} + +.c17:active { + -webkit-text-decoration: none; + text-decoration: none; +} + .c9 { margin-bottom: 10px; color: #7D7D7D; @@ -1101,7 +1151,7 @@ exports[`disable nft on landing page does not render nft information and card 1` gap: 16px; } -.c38 { +.c41 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; @@ -1118,7 +1168,7 @@ exports[`disable nft on landing page does not render nft information and card 1` height: 100%; } -.c17 { +.c22 { background-color: #F9F9F9; border-radius: 16px; color: #7D7D7D; @@ -1130,7 +1180,7 @@ exports[`disable nft on landing page does not render nft information and card 1` position: relative; } -.c17:before { +.c22:before { box-sizing: border-box; background-size: 100%; border-radius: inherit; @@ -1144,15 +1194,15 @@ exports[`disable nft on landing page does not render nft information and card 1` border: 1px solid #F9F9F9; } -.c17:hover:before { +.c22:hover:before { border-color: #98A1C014; } -.c17:focus-within:before { +.c22:focus-within:before { border-color: #B8C0DC3d; } -.c40 { +.c43 { border-bottom: 1px solid #FFFFFF; } @@ -1179,7 +1229,7 @@ exports[`disable nft on landing page does not render nft information and card 1` overflow-x: hidden; } -.c47 { +.c50 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -1203,7 +1253,7 @@ exports[`disable nft on landing page does not render nft information and card 1` height: calc(100vh - 48px); } -.c48 { +.c51 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -1224,7 +1274,7 @@ exports[`disable nft on landing page does not render nft information and card 1` height: calc(100vh - 48px); } -.c49 { +.c52 { position: absolute; top: 68px; bottom: 0; @@ -1237,7 +1287,7 @@ exports[`disable nft on landing page does not render nft information and card 1` height: 100%; } -.c50 { +.c53 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -1265,11 +1315,11 @@ exports[`disable nft on landing page does not render nft information and card 1` pointer-events: none; } -.c50 * { +.c53 * { pointer-events: auto; } -.c51 { +.c54 { color: transparent; font-size: 36px; line-height: 44px; @@ -1281,7 +1331,7 @@ exports[`disable nft on landing page does not render nft information and card 1` -webkit-background-clip: text; } -.c53 { +.c56 { color: #7D7D7D; font-size: 16px; line-height: 24px; @@ -1291,7 +1341,7 @@ exports[`disable nft on landing page does not render nft information and card 1` margin: 0 0 32px; } -.c52 { +.c55 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1302,12 +1352,12 @@ exports[`disable nft on landing page does not render nft information and card 1` justify-content: center; } -.c55 { +.c58 { padding: 16px 0px; border-radius: 24px; } -.c56 { +.c59 { background: linear-gradient(93.06deg,#ff00c7 2.66%,#ff9ffb 98.99%); border: none; color: #FFFFFF; @@ -1315,24 +1365,24 @@ exports[`disable nft on landing page does not render nft information and card 1` transition: all 250ms ease; } -.c56:hover { +.c59:hover { box-shadow: 0px 0px 16px 0px #ff00c7; } -.c57 { +.c60 { margin: 0px; font-size: 16px; font-weight: 535; white-space: nowrap; } -.c54 { +.c57 { max-width: 300px; width: 100%; pointer-events: auto; } -.c58 { +.c61 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -1352,16 +1402,16 @@ exports[`disable nft on landing page does not render nft information and card 1` transition: 250ms ease opacity; } -.c58:hover { +.c61:hover { opacity: 0.6; } -.c59 { +.c62 { margin-left: 14px; size: 20px; } -.c61 { +.c64 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1378,7 +1428,7 @@ exports[`disable nft on landing page does not render nft information and card 1` background: linear-gradient(179.82deg,rgba(255,255,255,0) 0.16%,#eaeaea 99.85%); } -.c62 { +.c65 { display: grid; gap: 12px; width: 100%; @@ -1391,7 +1441,7 @@ exports[`disable nft on landing page does not render nft information and card 1` grid-template-columns: 1fr; } -.c68 { +.c71 { display: grid; gap: 12px; width: 100%; @@ -1445,7 +1495,7 @@ exports[`disable nft on landing page does not render nft information and card 1` width: 100%; } -.c60 { +.c63 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; @@ -1461,12 +1511,12 @@ exports[`disable nft on landing page does not render nft information and card 1` text-align: center; } -.c60:hover { +.c63:hover { color: #CECECE; } @media screen and (min-width:1024px) { - .c80 { + .c83 { -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; @@ -1478,7 +1528,7 @@ exports[`disable nft on landing page does not render nft information and card 1` } @media screen and (min-width:1024px) { - .c82 { + .c85 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -1487,63 +1537,63 @@ exports[`disable nft on landing page does not render nft information and card 1` } @media screen and (min-width:1024px) { - .c97 { + .c100 { display: none; } } @media screen and (min-width:1024px) { - .c83 { + .c86 { display: block; } } @media screen and (min-width:1280px) { - .c90 { + .c93 { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; } } @media screen and (min-width:1280px) { - .c91 { + .c94 { margin: 0; } } @media screen and (min-width:640px) { - .c63 { + .c66 { height: 360px; } } @media screen and (min-width:1280px) { - .c63 { + .c66 { padding: 32px; } } @media screen and (min-width:640px) { - .c69 { + .c72 { height: 260px; } } @media screen and (min-width:1280px) { - .c69 { + .c72 { padding: 32px; } } @media screen and (min-width:1024px) { - .c65 { + .c68 { font-size: 28px; line-height: 36px; } } @media screen and (min-width:1280px) { - .c66 { + .c69 { font-size: 20px; line-height: 28px; max-width: 480px; @@ -1551,7 +1601,7 @@ exports[`disable nft on landing page does not render nft information and card 1` } @media screen and (min-width:1280px) { - .c70 { + .c73 { font-size: 20px; line-height: 28px; max-width: 480px; @@ -1559,7 +1609,7 @@ exports[`disable nft on landing page does not render nft information and card 1` } @media screen and (min-width:1024px) { - .c72 { + .c75 { height: 140px; -webkit-flex-direction: row; -ms-flex-direction: row; @@ -1568,21 +1618,21 @@ exports[`disable nft on landing page does not render nft information and card 1` } @media screen and (min-width:1280px) { - .c74 { + .c77 { font-size: 28px; line-height: 36px; } } @media screen and (min-width:1280px) { - .c75 { + .c78 { font-size: 20px; line-height: 28px; } } @media screen and (min-width:1024px) { - .c76 { + .c79 { width: auto; } } @@ -1600,79 +1650,79 @@ exports[`disable nft on landing page does not render nft information and card 1` } @media screen and (min-width:768px) { - .c47 { + .c50 { height: 100vh; } } @media screen and (min-width:768px) { - .c48 { + .c51 { height: 100vh; } } @media screen and (min-width:640px) { - .c51 { + .c54 { font-size: 48px; line-height: 56px; } } @media screen and (min-width:768px) { - .c51 { + .c54 { font-size: 64px; line-height: 72px; } } @media screen and (min-width:768px) { - .c53 { + .c56 { font-size: 20px; line-height: 28px; } } @media screen and (min-width:640px) { - .c57 { + .c60 { font-size: 20px; } } @media screen and (min-width:640px) { - .c58 { + .c61 { visibility: visible; } } @media screen and (min-width:768px) { - .c61 { + .c64 { padding: 0 96px 5rem; } } @media screen and (min-width:640px) { - .c62 { + .c65 { grid-template-columns: 1fr; gap: 32px; } } @media screen and (min-width:1024px) { - .c62 { + .c65 { grid-template-columns: 1fr; gap: 32px; } } @media screen and (min-width:640px) { - .c68 { + .c71 { grid-template-columns: 1fr; gap: 32px; } } @media screen and (min-width:1024px) { - .c68 { + .c71 { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } @@ -1708,24 +1758,36 @@ exports[`disable nft on landing page does not render nft information and card 1` > Swap + + + + Buy + + + You pay ETH dropdown.svg @@ -1817,13 +1879,13 @@ exports[`disable nft on landing page does not render nft information and card 1` @@ -1832,10 +1894,10 @@ exports[`disable nft on landing page does not render nft information and card 1` @@ -1864,32 +1926,32 @@ exports[`disable nft on landing page does not render nft information and card 1` You receive Select token dropdown.svg @@ -1925,13 +1987,13 @@ exports[`disable nft on landing page does not render nft information and card 1` @@ -1942,11 +2004,11 @@ exports[`disable nft on landing page does not render nft information and card 1` Connect Wallet @@ -1957,52 +2019,52 @@ exports[`disable nft on landing page does not render nft information and card 1` Trade crypto with confidence Buy, sell, and explore tokens Get started Learn more Swap tokens Buy, sell, and explore tokens on Ethereum, Polygon, Optimism, and more. Trade Tokens @@ -2081,20 +2143,20 @@ exports[`disable nft on landing page does not render nft information and card 1` Buy crypto @@ -2121,12 +2183,12 @@ exports[`disable nft on landing page does not render nft information and card 1` Buy crypto with your credit card or bank account at the best rates. Buy now @@ -2134,30 +2196,30 @@ exports[`disable nft on landing page does not render nft information and card 1` Earn Provide liquidity to pools on Uniswap and earn fees on swaps. Provide liquidity @@ -2165,16 +2227,16 @@ exports[`disable nft on landing page does not render nft information and card 1` Build dApps @@ -2201,12 +2263,12 @@ exports[`disable nft on landing page does not render nft information and card 1` Build apps and tools on the largest DeFi protocol on Ethereum. Developer docs @@ -2215,27 +2277,27 @@ exports[`disable nft on landing page does not render nft information and card 1` Powered by the Uniswap Protocol The leading decentralized crypto trading protocol, governed by a global community. discord.svg twitter-safe.svg github.svg @@ -2300,7 +2362,7 @@ exports[`disable nft on landing page does not render nft information and card 1` © 2023 @@ -2308,45 +2370,45 @@ exports[`disable nft on landing page does not render nft information and card 1` App Swap Tokens Pools Protocol Company Get Help discord.svg twitter-safe.svg github.svg @@ -2473,7 +2535,7 @@ exports[`disable nft on landing page does not render nft information and card 1` © 2023 @@ -2493,7 +2555,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` min-width: 0; } -.c24 { +.c14 { box-sizing: border-box; margin: 0; min-width: 0; @@ -2516,7 +2578,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` border-radius: 4px; } -.c43 { +.c46 { box-sizing: border-box; margin: 0; min-width: 0; @@ -2574,11 +2636,11 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` color: #222222; } -.c20 { +.c25 { color: #7D7D7D; } -.c96 { +.c99 { -webkit-text-decoration: none; text-decoration: none; cursor: pointer; @@ -2589,15 +2651,15 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` font-weight: 500; } -.c96:hover { +.c99:hover { opacity: 0.6; } -.c96:active { +.c99:active { opacity: 0.4; } -.c94 { +.c97 { -webkit-text-decoration: none; text-decoration: none; cursor: pointer; @@ -2608,36 +2670,36 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` font-weight: 500; } -.c94:hover { +.c97:hover { opacity: 0.6; } -.c94:active { +.c97:active { opacity: 0.4; } -.c87 { +.c90 { height: 32px; width: 32px; fill: #98A1C0; opacity: 1; } -.c88 { +.c91 { height: 32px; width: 32px; fill: #98A1C0; opacity: 1; } -.c89 { +.c92 { height: 32px; width: 32px; fill: #98A1C0; opacity: 1; } -.c81 { +.c84 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2650,7 +2712,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` max-width: 1440px; } -.c82 { +.c85 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2660,24 +2722,24 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` flex-direction: column; } -.c83 { +.c86 { display: none; } -.c98 { +.c101 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } -.c84 { +.c87 { width: 72px; height: 72px; display: none; } -.c85 { +.c88 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2690,20 +2752,20 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` margin: 20px 0 0 0; } -.c86 { +.c89 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; } -.c91 { +.c94 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } -.c92 { +.c95 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2716,32 +2778,32 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` margin: 20px 0 0 0; } -.c93 { +.c96 { font-size: 16px; line-height: 20px; font-weight: 535; } -.c97 { +.c100 { font-size: 16px; line-height: 20px; color: #7D7D7D; } -.c95 { +.c98 { font-size: 16px; line-height: 20px; color: #7D7D7D; } -.c90 { +.c93 { font-size: 16px; line-height: 20px; margin: 1rem 0 0 0; color: #CECECE; } -.c63 { +.c66 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2769,11 +2831,11 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transition: 250ms ease border; } -.c63:hover { +.c66:hover { border: 1px solid #CECECE; } -.c68 { +.c71 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2801,11 +2863,11 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transition: 250ms ease border; } -.c68:hover { +.c71:hover { border: 1px solid #CECECE; } -.c70 { +.c73 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2833,11 +2895,11 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transition: 250ms ease border; } -.c70:hover { +.c73:hover { border: 1px solid #CECECE; } -.c64 { +.c67 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2852,13 +2914,13 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` justify-content: space-between; } -.c65 { +.c68 { font-size: 20px; line-height: 28px; font-weight: 535; } -.c66 { +.c69 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2873,7 +2935,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` max-width: 480px; } -.c71 { +.c74 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -2888,7 +2950,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` max-width: 480px; } -.c67 { +.c70 { color: #FC72FF; font-weight: 535; margin: 24px 0 0; @@ -2897,18 +2959,18 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transition: 250ms ease opacity; } -.c67:hover { +.c70:hover { opacity: 0.6; } -.c72 { +.c75 { min-width: 20px; min-height: 20px; max-height: 48px; max-width: 48px; } -.c46 { +.c49 { background-color: transparent; bottom: 0; border-radius: inherit; @@ -2922,7 +2984,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` width: 100%; } -.c25 { +.c15 { padding: 16px; width: 100%; line-height: 24px; @@ -2961,25 +3023,25 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transform: perspective(1px) translateZ(0); } -.c25:disabled { +.c15:disabled { opacity: 50%; cursor: auto; pointer-events: none; } -.c25 > * { +.c15 > * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } -.c25 > a { +.c15 > a { -webkit-text-decoration: none; text-decoration: none; } -.c78 { +.c81 { padding: 16px; width: 200px; line-height: 24px; @@ -3018,58 +3080,58 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transform: perspective(1px) translateZ(0); } -.c78:disabled { +.c81:disabled { opacity: 50%; cursor: auto; pointer-events: none; } -.c78 > * { +.c81 > * { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } -.c78 > a { +.c81 > a { -webkit-text-decoration: none; text-decoration: none; } -.c44 { +.c47 { background-color: #FFEFFF; color: #FC72FF; font-size: 20px; font-weight: 535; } -.c44:focus { +.c47:focus { box-shadow: 0 0 0 1pt #FFEFFF; background-color: #FFEFFF; } -.c44:hover { +.c47:hover { background-color: #FFEFFF; } -.c44:active { +.c47:active { box-shadow: 0 0 0 1pt #FFEFFF; background-color: #FFEFFF; } -.c44:hover .c45 { +.c47:hover .c48 { background-color: #98A1C014; } -.c44:active .c45 { +.c47:active .c48 { background-color: #B8C0DC3d; } -.c44:disabled { +.c47:disabled { opacity: 0.4; } -.c44:disabled:hover { +.c47:disabled:hover { cursor: auto; background-color: transparent; box-shadow: none; @@ -3077,7 +3139,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` outline: none; } -.c26 { +.c29 { background-color: #FFFFFF; color: #7D7D7D; border: 1px solid #22222212; @@ -3085,15 +3147,15 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` font-weight: 535; } -.c26:hover { +.c29:hover { background-color: #ececec; } -.c26:active { +.c29:active { background-color: #e0e0e0; } -.c79 { +.c82 { background-color: transparent; color: #FC72FF; display: -webkit-box; @@ -3110,27 +3172,56 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` align-items: center; } -.c79:focus { +.c82:focus { -webkit-text-decoration: underline; text-decoration: underline; } -.c79:hover { +.c82:hover { -webkit-text-decoration: none; text-decoration: none; } -.c79:active { +.c82:active { -webkit-text-decoration: none; text-decoration: none; } -.c79:disabled { +.c82:disabled { opacity: 50%; cursor: auto; } -.c73 { +.c16 { + padding: 0; + width: -webkit-fit-content; + width: -moz-fit-content; + width: fit-content; + background: none; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c16:focus { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.c16:hover { + opacity: 0.9; +} + +.c16:active { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.c16:disabled { + opacity: 50%; + cursor: auto; +} + +.c76 { height: 340px; width: 100%; border-radius: 32px; @@ -3156,7 +3247,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` background: url(Mesh.png),linear-gradient(93.06deg,#FF00C7 2.66%,#FF9FFB 98.99%); } -.c74 { +.c77 { color: white; display: -webkit-box; display: -webkit-flex; @@ -3170,20 +3261,20 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` flex-direction: column; } -.c75 { +.c78 { font-weight: 535; font-size: 28px; line-height: 36px; } -.c76 { +.c79 { margin: 10px 10px 0 0; font-weight: 535; font-size: 16px; line-height: 20px; } -.c77 { +.c80 { width: 100%; display: -webkit-box; display: -webkit-flex; @@ -3197,22 +3288,22 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transition: 250ms ease opacity; } -.c77:hover { +.c80:hover { opacity: 0.6; } -.c80 { +.c83 { color: white; border: 1px solid white; } -.c39 { +.c42 { display: grid; grid-auto-rows: auto; grid-row-gap: 4px; } -.c36 { +.c39 { -webkit-filter: none; filter: none; opacity: 1; @@ -3220,7 +3311,12 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transition: opacity 250ms ease-in-out; } -.c31 { +.c13 { + display: inline-block; + height: inherit; +} + +.c34 { opacity: 0; -webkit-transition: opacity 250ms ease-in; transition: opacity 250ms ease-in; @@ -3229,7 +3325,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` border-radius: 50%; } -.c30 { +.c33 { width: 24px; height: 24px; background: #22222212; @@ -3239,7 +3335,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` border-radius: 50%; } -.c29 { +.c32 { position: relative; display: -webkit-box; display: -webkit-flex; @@ -3247,7 +3343,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` display: flex; } -.c22 { +.c27 { color: #222222; width: 0; position: relative; @@ -3267,36 +3363,36 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` text-align: right; } -.c22::-webkit-search-decoration { +.c27::-webkit-search-decoration { -webkit-appearance: none; } -.c22 [type='number'] { +.c27 [type='number'] { -moz-appearance: textfield; } -.c22::-webkit-outer-spin-button, -.c22::-webkit-inner-spin-button { +.c27::-webkit-outer-spin-button, +.c27::-webkit-inner-spin-button { -webkit-appearance: none; } -.c22::-webkit-input-placeholder { +.c27::-webkit-input-placeholder { color: #CECECE; } -.c22::-moz-placeholder { +.c27::-moz-placeholder { color: #CECECE; } -.c22:-ms-input-placeholder { +.c27:-ms-input-placeholder { color: #CECECE; } -.c22::placeholder { +.c27::placeholder { color: #CECECE; } -.c18 { +.c23 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3313,13 +3409,13 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` will-change: height; } -.c19 { +.c24 { min-height: 44px; border-radius: 20px; width: initial; } -.c27 { +.c30 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -3350,12 +3446,12 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` visibility: visible; } -.c27:hover, -.c27:active { +.c30:hover, +.c30:active { background-color: #F9F9F9; } -.c27:before { +.c30:before { background-size: 100%; border-radius: inherit; position: absolute; @@ -3366,15 +3462,15 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` content: ''; } -.c27:hover:before { +.c30:hover:before { background-color: #98A1C014; } -.c27:active:before { +.c30:active:before { background-color: #B8C0DC3d; } -.c41 { +.c44 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -3405,12 +3501,12 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` visibility: visible; } -.c41:hover, -.c41:active { +.c44:hover, +.c44:active { background-color: #FC72FF; } -.c41:before { +.c44:before { background-size: 100%; border-radius: inherit; position: absolute; @@ -3421,15 +3517,15 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` content: ''; } -.c41:hover:before { +.c44:hover:before { background-color: #98A1C014; } -.c41:active:before { +.c44:active:before { background-color: #B8C0DC3d; } -.c21 { +.c26 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3447,7 +3543,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` justify-content: space-between; } -.c34 { +.c37 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3464,12 +3560,12 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` line-height: 1rem; } -.c34 span:hover { +.c37 span:hover { cursor: pointer; color: #4a4a4a; } -.c35 { +.c38 { -webkit-box-pack: end; -webkit-justify-content: flex-end; -ms-flex-pack: end; @@ -3478,7 +3574,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` padding: 8px 0px 0px 0px; } -.c28 { +.c31 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3494,35 +3590,35 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` width: 100%; } -.c33 { +.c36 { margin: 0 0.25rem 0 0.35rem; height: 35%; margin-left: 8px; } -.c33 path { +.c36 path { stroke: #222222; stroke-width: 2px; } -.c42 { +.c45 { margin: 0 0.25rem 0 0.35rem; height: 35%; margin-left: 8px; } -.c42 path { +.c45 path { stroke: #FFFFFF; stroke-width: 2px; } -.c32 { +.c35 { margin: 0 0.25rem 0 0.25rem; font-size: 20px; font-weight: 535; } -.c23 { +.c28 { -webkit-filter: none; filter: none; opacity: 1; @@ -3558,7 +3654,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` border: 1px solid #22222212; } -.c37 { +.c40 { border-radius: 12px; height: 40px; width: 40px; @@ -3573,21 +3669,21 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` z-index: 2; } -.c37:hover { +.c40:hover { cursor: pointer; opacity: 0.8; } -.c16 { +.c21 { height: 24px; width: 24px; } -.c16 > * { +.c21 > * { fill: #7D7D7D; } -.c14 { +.c19 { border: none; background-color: transparent; margin: 0; @@ -3596,19 +3692,35 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` outline: none; } -.c14:not([disabled]):hover { +.c19:not([disabled]):hover { opacity: 0.7; } -.c15 { +.c20 { padding: 6px 12px; border-radius: 16px; } -.c13 { +.c18 { position: relative; } +.c17 { + color: #7D7D7D; + gap: 4px; + font-weight: 485; +} + +.c17:focus { + -webkit-text-decoration: none; + text-decoration: none; +} + +.c17:active { + -webkit-text-decoration: none; + text-decoration: none; +} + .c9 { margin-bottom: 10px; color: #7D7D7D; @@ -3619,7 +3731,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` gap: 16px; } -.c38 { +.c41 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; @@ -3636,7 +3748,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` height: 100%; } -.c17 { +.c22 { background-color: #F9F9F9; border-radius: 16px; color: #7D7D7D; @@ -3648,7 +3760,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` position: relative; } -.c17:before { +.c22:before { box-sizing: border-box; background-size: 100%; border-radius: inherit; @@ -3662,15 +3774,15 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` border: 1px solid #F9F9F9; } -.c17:hover:before { +.c22:hover:before { border-color: #98A1C014; } -.c17:focus-within:before { +.c22:focus-within:before { border-color: #B8C0DC3d; } -.c40 { +.c43 { border-bottom: 1px solid #FFFFFF; } @@ -3697,7 +3809,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` overflow-x: hidden; } -.c47 { +.c50 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -3721,7 +3833,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` height: calc(100vh - 48px); } -.c48 { +.c51 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -3742,7 +3854,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` height: calc(100vh - 48px); } -.c49 { +.c52 { position: absolute; top: 68px; bottom: 0; @@ -3755,7 +3867,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` height: 100%; } -.c50 { +.c53 { position: absolute; display: -webkit-box; display: -webkit-flex; @@ -3783,11 +3895,11 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` pointer-events: none; } -.c50 * { +.c53 * { pointer-events: auto; } -.c51 { +.c54 { color: transparent; font-size: 36px; line-height: 44px; @@ -3799,7 +3911,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` -webkit-background-clip: text; } -.c53 { +.c56 { color: #7D7D7D; font-size: 16px; line-height: 24px; @@ -3809,7 +3921,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` margin: 0 0 32px; } -.c52 { +.c55 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3820,12 +3932,12 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` justify-content: center; } -.c55 { +.c58 { padding: 16px 0px; border-radius: 24px; } -.c56 { +.c59 { background: linear-gradient(93.06deg,#ff00c7 2.66%,#ff9ffb 98.99%); border: none; color: #FFFFFF; @@ -3833,24 +3945,24 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transition: all 250ms ease; } -.c56:hover { +.c59:hover { box-shadow: 0px 0px 16px 0px #ff00c7; } -.c57 { +.c60 { margin: 0px; font-size: 16px; font-weight: 535; white-space: nowrap; } -.c54 { +.c57 { max-width: 300px; width: 100%; pointer-events: auto; } -.c58 { +.c61 { -webkit-align-items: center; -webkit-box-align: center; -ms-flex-align: center; @@ -3870,16 +3982,16 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` transition: 250ms ease opacity; } -.c58:hover { +.c61:hover { opacity: 0.6; } -.c59 { +.c62 { margin-left: 14px; size: 20px; } -.c61 { +.c64 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -3896,7 +4008,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` background: linear-gradient(179.82deg,rgba(255,255,255,0) 0.16%,#eaeaea 99.85%); } -.c62 { +.c65 { display: grid; gap: 12px; width: 100%; @@ -3909,7 +4021,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` grid-template-columns: 1fr; } -.c69 { +.c72 { display: grid; gap: 12px; width: 100%; @@ -3963,7 +4075,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` width: 100%; } -.c60 { +.c63 { display: -webkit-inline-box; display: -webkit-inline-flex; display: -ms-inline-flexbox; @@ -3979,12 +4091,12 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` text-align: center; } -.c60:hover { +.c63:hover { color: #CECECE; } @media screen and (min-width:1024px) { - .c81 { + .c84 { -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; @@ -3996,7 +4108,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` } @media screen and (min-width:1024px) { - .c83 { + .c86 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -4005,75 +4117,75 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` } @media screen and (min-width:1024px) { - .c98 { + .c101 { display: none; } } @media screen and (min-width:1024px) { - .c84 { + .c87 { display: block; } } @media screen and (min-width:1280px) { - .c91 { + .c94 { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; } } @media screen and (min-width:1280px) { - .c92 { + .c95 { margin: 0; } } @media screen and (min-width:640px) { - .c63 { + .c66 { height: 360px; } } @media screen and (min-width:1280px) { - .c63 { + .c66 { padding: 32px; } } @media screen and (min-width:640px) { - .c68 { + .c71 { height: 360px; } } @media screen and (min-width:1280px) { - .c68 { + .c71 { padding: 32px; } } @media screen and (min-width:640px) { - .c70 { + .c73 { height: 260px; } } @media screen and (min-width:1280px) { - .c70 { + .c73 { padding: 32px; } } @media screen and (min-width:1024px) { - .c65 { + .c68 { font-size: 28px; line-height: 36px; } } @media screen and (min-width:1280px) { - .c66 { + .c69 { font-size: 20px; line-height: 28px; max-width: 480px; @@ -4081,7 +4193,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` } @media screen and (min-width:1280px) { - .c71 { + .c74 { font-size: 20px; line-height: 28px; max-width: 480px; @@ -4089,7 +4201,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` } @media screen and (min-width:1024px) { - .c73 { + .c76 { height: 140px; -webkit-flex-direction: row; -ms-flex-direction: row; @@ -4098,21 +4210,21 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` } @media screen and (min-width:1280px) { - .c75 { + .c78 { font-size: 28px; line-height: 36px; } } @media screen and (min-width:1280px) { - .c76 { + .c79 { font-size: 20px; line-height: 28px; } } @media screen and (min-width:1024px) { - .c77 { + .c80 { width: auto; } } @@ -4130,79 +4242,79 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` } @media screen and (min-width:768px) { - .c47 { + .c50 { height: 100vh; } } @media screen and (min-width:768px) { - .c48 { + .c51 { height: 100vh; } } @media screen and (min-width:640px) { - .c51 { + .c54 { font-size: 48px; line-height: 56px; } } @media screen and (min-width:768px) { - .c51 { + .c54 { font-size: 64px; line-height: 72px; } } @media screen and (min-width:768px) { - .c53 { + .c56 { font-size: 20px; line-height: 28px; } } @media screen and (min-width:640px) { - .c57 { + .c60 { font-size: 20px; } } @media screen and (min-width:640px) { - .c58 { + .c61 { visibility: visible; } } @media screen and (min-width:768px) { - .c61 { + .c64 { padding: 0 96px 5rem; } } @media screen and (min-width:640px) { - .c62 { + .c65 { grid-template-columns: 1fr 1fr; gap: 32px; } } @media screen and (min-width:1024px) { - .c62 { + .c65 { grid-template-columns: 1fr 1fr; gap: 32px; } } @media screen and (min-width:640px) { - .c69 { + .c72 { grid-template-columns: 1fr; gap: 32px; } } @media screen and (min-width:1024px) { - .c69 { + .c72 { grid-template-columns: 1fr 1fr 1fr; gap: 32px; } @@ -4238,24 +4350,36 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` > Swap + + + + Buy + + + You pay ETH dropdown.svg @@ -4347,13 +4471,13 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` @@ -4362,10 +4486,10 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` @@ -4394,32 +4518,32 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` You receive Select token dropdown.svg @@ -4455,13 +4579,13 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` @@ -4472,11 +4596,11 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Connect Wallet @@ -4487,52 +4611,52 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Trade crypto and NFTs with confidence Buy, sell, and explore tokens and NFTs Get started Learn more Swap tokens Buy, sell, and explore tokens on Ethereum, Polygon, Optimism, and more. Trade Tokens @@ -4610,25 +4734,25 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Trade NFTs Buy and sell NFTs across marketplaces to find more listings at better prices. Explore NFTs @@ -4637,20 +4761,20 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Buy crypto @@ -4677,12 +4801,12 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Buy crypto with your credit card or bank account at the best rates. Buy now @@ -4690,30 +4814,30 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Earn Provide liquidity to pools on Uniswap and earn fees on swaps. Provide liquidity @@ -4721,16 +4845,16 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Build dApps @@ -4757,12 +4881,12 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Build apps and tools on the largest DeFi protocol on Ethereum. Developer docs @@ -4771,27 +4895,27 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` Powered by the Uniswap Protocol The leading decentralized crypto trading protocol, governed by a global community. discord.svg twitter-safe.svg github.svg @@ -4856,7 +4980,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` © 2023 @@ -4864,51 +4988,51 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` App Swap Tokens NFTs Pools Protocol Company Get Help discord.svg twitter-safe.svg github.svg @@ -5035,7 +5159,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = ` © 2023 diff --git a/src/state/routing/slice.ts b/src/state/routing/slice.ts index 123459febf..c39f6cb12a 100644 --- a/src/state/routing/slice.ts +++ b/src/state/routing/slice.ts @@ -128,15 +128,7 @@ export const routingApi = createApi({ if (shouldUseAPIRouter(args)) { fellBack = true try { - const { - tokenInAddress, - tokenInChainId, - tokenOutAddress, - tokenOutChainId, - amount, - tradeType, - forceUniswapXOn, - } = args + const { tokenInAddress, tokenInChainId, tokenOutAddress, tokenOutChainId, amount, tradeType } = args const type = isExactInput(tradeType) ? 'EXACT_INPUT' : 'EXACT_OUTPUT' const requestBody = { @@ -146,8 +138,6 @@ export const routingApi = createApi({ tokenOut: tokenOutAddress, amount, type, - // if forceUniswapXOn is not ON, then use the backend's default value - useUniswapX: forceUniswapXOn || undefined, configs: getRoutingAPIConfig(args), } diff --git a/src/state/routing/types.ts b/src/state/routing/types.ts index 64e724c777..e47f9c892c 100644 --- a/src/state/routing/types.ts +++ b/src/state/routing/types.ts @@ -46,7 +46,6 @@ export interface GetQuoteArgs { uniswapXForceSyntheticQuotes: boolean uniswapXEthOutputEnabled: boolean uniswapXExactOutputEnabled: boolean - forceUniswapXOn: boolean userDisabledUniswapX: boolean fotAdjustmentsEnabled: boolean }
Get started