From 315506055e617735f0176797ac193d08870955d3 Mon Sep 17 00:00:00 2001 From: chefjackson <116779127+chefjackson@users.noreply.github.com> Date: Tue, 15 Oct 2024 16:13:31 +0800 Subject: [PATCH] chore: Ramp up experimental trading (#10825) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on renaming instances of `Experimental Trading` to `PancakeSwap X` across multiple files, reflecting a shift in branding or feature naming. ### Detailed summary - In `experimentalFeatures.ts`, `percentage` changed from `0.2` to `1`. - In `ApproveModalContent.tsx`, `Experimental Trading` replaced with `PancakeSwap X`. - In `ApproveModalContentV1.tsx`, `Experimental Trading` replaced with `PancakeSwap X`. - In `RoutesBreakdown.tsx`, `Experimental Trading` replaced with `PancakeSwap X`. - In `XTransaction.tsx`, `title` changed from `Experimental Trading` to `PancakeSwap X`. - In `SettingsModal.tsx`, `Experimental Trading` replaced with `PancakeSwap X`. - In `translations.json`, the entry for `Experimental Trading` removed. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- apps/web/src/components/App/Transactions/XTransaction.tsx | 2 +- apps/web/src/components/Menu/GlobalSettings/SettingsModal.tsx | 2 +- apps/web/src/config/experimentalFeatures.ts | 2 +- apps/web/src/views/Swap/V3Swap/components/RoutesBreakdown.tsx | 2 +- packages/localization/src/config/translations.json | 1 - packages/widgets-internal/swap/ApproveModalContent.tsx | 2 +- packages/widgets-internal/swap/ApproveModalContentV1.tsx | 2 +- 7 files changed, 6 insertions(+), 7 deletions(-) diff --git a/apps/web/src/components/App/Transactions/XTransaction.tsx b/apps/web/src/components/App/Transactions/XTransaction.tsx index c9b7be86a475f..0331fc1c7667c 100644 --- a/apps/web/src/components/App/Transactions/XTransaction.tsx +++ b/apps/web/src/components/App/Transactions/XTransaction.tsx @@ -48,7 +48,7 @@ export function XTransaction({ order }: { order: GetXOrderReceiptResponseOrder } {t('Experimental Trading')}} + title={PancakeSwap X} action={ {status === TransactionStatus.Pending ? : null} diff --git a/apps/web/src/components/Menu/GlobalSettings/SettingsModal.tsx b/apps/web/src/components/Menu/GlobalSettings/SettingsModal.tsx index 7a7ab3b3cf9f1..22771c1f0da49 100644 --- a/apps/web/src/components/Menu/GlobalSettings/SettingsModal.tsx +++ b/apps/web/src/components/Menu/GlobalSettings/SettingsModal.tsx @@ -377,7 +377,7 @@ function RoutingSettings() { {xFeatureEnabled ? ( - {t('Experimental Trading')} + PancakeSwap X When applicable, aggregates liquidity to provide better price, more token options, and gas free swaps. diff --git a/apps/web/src/config/experimentalFeatures.ts b/apps/web/src/config/experimentalFeatures.ts index 931b727e32490..87606f5777ab7 100644 --- a/apps/web/src/config/experimentalFeatures.ts +++ b/apps/web/src/config/experimentalFeatures.ts @@ -37,7 +37,7 @@ export const EXPERIMENTAL_FEATURE_CONFIGS: ExperimentalFeatureConfigs = [ }, { feature: EXPERIMENTAL_FEATURES.PCSX, - percentage: 0.2, + percentage: 1, whitelist: [], }, ] diff --git a/apps/web/src/views/Swap/V3Swap/components/RoutesBreakdown.tsx b/apps/web/src/views/Swap/V3Swap/components/RoutesBreakdown.tsx index ebb1cf95f61ef..14a81822c7729 100644 --- a/apps/web/src/views/Swap/V3Swap/components/RoutesBreakdown.tsx +++ b/apps/web/src/views/Swap/V3Swap/components/RoutesBreakdown.tsx @@ -90,7 +90,7 @@ export const XRoutesBreakdown = memo(function XRoutesBreakdown() { - {t('Experimental Trading')} + PancakeSwap X diff --git a/packages/localization/src/config/translations.json b/packages/localization/src/config/translations.json index 09c3b65ccdb4b..f1238abf2d08e 100644 --- a/packages/localization/src/config/translations.json +++ b/packages/localization/src/config/translations.json @@ -3514,7 +3514,6 @@ "Unfilled orders will automatically expires after the countdown.": "Unfilled orders will automatically expires after the countdown.", "Order has been successfully filled.": "Order has been successfully filled.", "Output tokens have been sent to your wallet.": "Output tokens have been sent to your wallet.", - "Experimental Trading": "Experimental Trading", "Swap order filled": "Swap order filled", "We are having some trouble filling your order. Please retry.": "We are having some trouble filling your order. Please retry.", "No gas cost or fee will be charged on failed orders.": "No gas cost or fee will be charged on failed orders.", diff --git a/packages/widgets-internal/swap/ApproveModalContent.tsx b/packages/widgets-internal/swap/ApproveModalContent.tsx index 190d294e13c0a..80f248e7c2511 100644 --- a/packages/widgets-internal/swap/ApproveModalContent.tsx +++ b/packages/widgets-internal/swap/ApproveModalContent.tsx @@ -104,7 +104,7 @@ export const ApproveModalContent: React.FC = ({ {t("Swapping thru:")} {isX ? ( - {t("Experimental Trading")} + PancakeSwap X ) : isBonus ? ( diff --git a/packages/widgets-internal/swap/ApproveModalContentV1.tsx b/packages/widgets-internal/swap/ApproveModalContentV1.tsx index d4f9de14f2270..e8728e8b83786 100644 --- a/packages/widgets-internal/swap/ApproveModalContentV1.tsx +++ b/packages/widgets-internal/swap/ApproveModalContentV1.tsx @@ -29,7 +29,7 @@ export const ApproveModalContentV1: React.FC = ({ titl {t("Swapping thru:")} {isX ? ( - {t("Experimental Trading")} + PancakeSwap X ) : isBonus ? (