From f92279d2aa6fb3ed72a735ca946337f02d228afa Mon Sep 17 00:00:00 2001 From: Nguyen Van Viet Date: Mon, 30 Oct 2023 14:24:39 +0700 Subject: [PATCH] Partner swap (#2335) * feat: partner swap * fix: setting modal * feat: handle show/hide features * fix: fee and remove gas refund * fix: lo tab * fix: network * fix: setting * fix: remove scribe btn * fix: lo filter * remove test domain --- index.html | 15 +- src/components/Header/index.tsx | 94 +++--- .../SwapForm/SlippageSettingGroup.tsx | 4 +- .../SwapForm/SwapModal/SwapDetails/index.tsx | 8 +- src/components/SwapForm/TradeSummary.tsx | 23 +- .../SwapForm/hooks/useBuildRoute.tsx | 6 +- src/components/SwapForm/hooks/useGetRoute.ts | 23 +- src/components/SwapForm/index.tsx | 42 +-- .../swapv2/LimitOrder/ListOrder/index.tsx | 7 +- src/components/swapv2/LimitOrder/index.tsx | 5 +- .../swapv2/SwapSettingsPanel/index.tsx | 47 +-- src/constants/index.ts | 1 + src/pages/App.tsx | 5 +- .../CrossChain/TransfersHistory/index.tsx | 11 +- src/pages/PartnerSwap/index.tsx | 298 ++++++++++++++++++ src/pages/SwapV3/Header.tsx | 10 +- src/pages/SwapV3/HeaderRightMenu.tsx | 4 +- src/pages/SwapV3/PopulatedSwapForm.tsx | 30 +- src/pages/SwapV3/Tabs/LimitTab.tsx | 5 +- src/pages/SwapV3/Tabs/index.tsx | 45 ++- src/pages/SwapV3/index.tsx | 3 + src/pages/SwapV3/useCurrenciesByPage.ts | 2 +- src/services/route/index.ts | 7 +- src/services/route/types/buildRoute.ts | 2 +- src/services/route/utils.ts | 4 +- src/state/swap/hooks.ts | 6 +- src/utils/fee.ts | 5 +- 27 files changed, 575 insertions(+), 137 deletions(-) create mode 100644 src/pages/PartnerSwap/index.tsx diff --git a/index.html b/index.html index 375040fd08..745dafecb9 100644 --- a/index.html +++ b/index.html @@ -196,7 +196,20 @@ }, } - + +