From 78c6e7a607527e9259ae8b8f31277b3f257e361a Mon Sep 17 00:00:00 2001 From: defi2025 Date: Sat, 30 Aug 2025 22:55:52 +0200 Subject: [PATCH 1/5] Issue #14: removed exchanges from cypress testing --- cypress/deprecated/dfi.spec.ts | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/cypress/deprecated/dfi.spec.ts b/cypress/deprecated/dfi.spec.ts index 7869008c7..cd9a7aaae 100644 --- a/cypress/deprecated/dfi.spec.ts +++ b/cypress/deprecated/dfi.spec.ts @@ -62,20 +62,10 @@ context("/dfi page on desktop", () => { .should("have.text", "Exchanges"); cy.findByTestId("ExchangeSection.Text").should("be.visible"); cy.findByTestId("ExchangeSection.Bittrue").should("be.visible"); - cy.findByTestId("ExchangeSection.Kucoin").should("be.visible"); - cy.findByTestId("ExchangeSection.EasyAu").should("be.visible"); - cy.findByTestId("ExchangeSection.EasyNz").should("be.visible"); - cy.findByTestId("ExchangeSection.Htx").should("be.visible"); - cy.findByTestId("ExchangeSection.Transak").should("be.visible"); - cy.findByTestId("ExchangeSection.Bit").should("be.visible"); - cy.findByTestId("ExchangeSection.Bitmart").should("be.visible"); - cy.findByTestId("ExchangeSection.Gateio").should("be.visible"); - cy.findByTestId("DfiPage.Staking.Heading") .should("be.visible") .should("have.text", "Staking"); cy.findByTestId("DfiPage.Staking.Text").should("be.visible"); - cy.findByTestId("DfiPage.Staking.Kucoin").should("be.visible"); cy.findByTestId("DfiPage.Staking.Lock").should("be.visible"); }); }); @@ -145,19 +135,11 @@ context("/dfi page on mobile", () => { .should("have.text", "Exchanges"); cy.findByTestId("ExchangeSection.Text").should("be.visible"); cy.findByTestId("ExchangeSection.Bittrue").should("be.visible"); - cy.findByTestId("ExchangeSection.Kucoin").should("be.visible"); - cy.findByTestId("ExchangeSection.EasyAu").should("be.visible"); - cy.findByTestId("ExchangeSection.EasyNz").should("be.visible"); - cy.findByTestId("ExchangeSection.Htx").should("be.visible"); - cy.findByTestId("ExchangeSection.Transak").should("be.visible"); - cy.findByTestId("ExchangeSection.Bybit").should("be.visible"); - cy.findByTestId("ExchangeSection.Swyftx").should("be.visible"); cy.findByTestId("DfiPage.Staking.Heading") .should("be.visible") .should("have.text", "Staking"); cy.findByTestId("DfiPage.Staking.Text").should("be.visible"); - cy.findByTestId("DfiPage.Staking.Kucoin").should("be.visible"); }); }); }); From b7d53dfd3e95c7b81eb76163b3e21c6c7707fdc7 Mon Sep 17 00:00:00 2001 From: defi2025 Date: Sat, 30 Aug 2025 23:10:36 +0200 Subject: [PATCH 2/5] Issue #14: removed obsolent exchanges --- cypress/fixture/dfi.config.ts | 45 ----------- .../icons/assets/exchanges/Bitdotcom.tsx | 33 -------- .../icons/assets/exchanges/Bitmart.tsx | 80 ------------------ .../icons/assets/exchanges/Bybit.tsx | 44 ---------- .../icons/assets/exchanges/ChangeNow.tsx | 20 ----- .../icons/assets/exchanges/CoinEx.tsx | 47 ----------- src/components/icons/assets/exchanges/Dfx.tsx | 30 ------- .../icons/assets/exchanges/EasycryptoAu.tsx | 37 --------- .../icons/assets/exchanges/EasycryptoNz.tsx | 37 --------- .../icons/assets/exchanges/Gateio.tsx | 81 ------------------- src/components/icons/assets/exchanges/Htx.tsx | 57 ------------- .../icons/assets/exchanges/Swyftx.tsx | 52 ------------ .../icons/assets/exchanges/Transak.tsx | 73 ----------------- .../icons/assets/exchanges/index.ts | 24 ------ src/layouts/components/BuyDFIButton.tsx | 57 +------------ .../_components/GetDFISectionExchanges.tsx | 55 ------------- 16 files changed, 1 insertion(+), 771 deletions(-) delete mode 100644 src/components/icons/assets/exchanges/Bitdotcom.tsx delete mode 100644 src/components/icons/assets/exchanges/Bitmart.tsx delete mode 100644 src/components/icons/assets/exchanges/Bybit.tsx delete mode 100644 src/components/icons/assets/exchanges/ChangeNow.tsx delete mode 100644 src/components/icons/assets/exchanges/CoinEx.tsx delete mode 100644 src/components/icons/assets/exchanges/Dfx.tsx delete mode 100644 src/components/icons/assets/exchanges/EasycryptoAu.tsx delete mode 100644 src/components/icons/assets/exchanges/EasycryptoNz.tsx delete mode 100644 src/components/icons/assets/exchanges/Gateio.tsx delete mode 100644 src/components/icons/assets/exchanges/Htx.tsx delete mode 100644 src/components/icons/assets/exchanges/Swyftx.tsx delete mode 100644 src/components/icons/assets/exchanges/Transak.tsx diff --git a/cypress/fixture/dfi.config.ts b/cypress/fixture/dfi.config.ts index 17aea02de..483e6dff4 100644 --- a/cypress/fixture/dfi.config.ts +++ b/cypress/fixture/dfi.config.ts @@ -5,41 +5,6 @@ export const exchanges = [ name: "Bitrue", url: "https://www.bitrue.com/trade/dfi_btc", }, - { - id: "kucoin", - name: "Kucoin", - url: "https://trade.kucoin.com/DFI-BTC", - }, - { - id: "htx", - name: "Htx", - url: "https://www.htx.com/trade/dfi_usdt", - }, - { - id: "gateio", - name: "Gateio", - url: "https://www.gate.io/trade/DFI_USDT", - }, - { - id: "transak", - name: "Transak", - url: "https://global.transak.com", - }, - { - id: "bybit", - name: "Bybit", - url: "https://www.bybit.com/en-US/trade/spot/DFI/USDT", - }, - { - id: "swyftx", - name: "Swyftx", - url: "https://swyftx.com/au/buy/defichain", - }, - { - id: "bitdotcom", - name: "Bitdotcom", - url: "https://www.bit.com/legacy/spot?pair=DFI-USDT", - }, { id: "latoken", name: "Latoken", @@ -50,16 +15,6 @@ export const exchanges = [ name: "Bitmart", url: "https://www.bitmart.com/trade/en?symbol=%24DFI_USDT&layout=basic", }, - { - id: "easyau", - name: "EasycryptoAu", - url: "https://easycrypto.com/au/buy-sell/dfi-defichain", - }, - { - id: "easynz", - name: "EasycryptoNz", - url: "https://easycrypto.com/nz/buy-sell/dfi-defichain", - }, ]; export const harnessDfi = [ diff --git a/src/components/icons/assets/exchanges/Bitdotcom.tsx b/src/components/icons/assets/exchanges/Bitdotcom.tsx deleted file mode 100644 index eb2648dbd..000000000 --- a/src/components/icons/assets/exchanges/Bitdotcom.tsx +++ /dev/null @@ -1,33 +0,0 @@ -export default function Bitdotcom(): JSX.Element { - return ( - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/Bitmart.tsx b/src/components/icons/assets/exchanges/Bitmart.tsx deleted file mode 100644 index 56d482d08..000000000 --- a/src/components/icons/assets/exchanges/Bitmart.tsx +++ /dev/null @@ -1,80 +0,0 @@ -export default function Bitmart(): JSX.Element { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/Bybit.tsx b/src/components/icons/assets/exchanges/Bybit.tsx deleted file mode 100644 index 1adfc800b..000000000 --- a/src/components/icons/assets/exchanges/Bybit.tsx +++ /dev/null @@ -1,44 +0,0 @@ -export default function Bybit(): JSX.Element { - return ( - - - - - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/ChangeNow.tsx b/src/components/icons/assets/exchanges/ChangeNow.tsx deleted file mode 100644 index 17eb884f7..000000000 --- a/src/components/icons/assets/exchanges/ChangeNow.tsx +++ /dev/null @@ -1,20 +0,0 @@ -export default function ChangeNow(): JSX.Element { - return ( - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/CoinEx.tsx b/src/components/icons/assets/exchanges/CoinEx.tsx deleted file mode 100644 index 94c2315cc..000000000 --- a/src/components/icons/assets/exchanges/CoinEx.tsx +++ /dev/null @@ -1,47 +0,0 @@ -export default function CoinEx(): JSX.Element { - return ( - - - - - - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/Dfx.tsx b/src/components/icons/assets/exchanges/Dfx.tsx deleted file mode 100644 index bc5061f37..000000000 --- a/src/components/icons/assets/exchanges/Dfx.tsx +++ /dev/null @@ -1,30 +0,0 @@ -export default function Dfx(): JSX.Element { - return ( - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/EasycryptoAu.tsx b/src/components/icons/assets/exchanges/EasycryptoAu.tsx deleted file mode 100644 index 581d045a0..000000000 --- a/src/components/icons/assets/exchanges/EasycryptoAu.tsx +++ /dev/null @@ -1,37 +0,0 @@ -export default function EasycryptoAu(): JSX.Element { - return ( - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/EasycryptoNz.tsx b/src/components/icons/assets/exchanges/EasycryptoNz.tsx deleted file mode 100644 index bed4e45a7..000000000 --- a/src/components/icons/assets/exchanges/EasycryptoNz.tsx +++ /dev/null @@ -1,37 +0,0 @@ -export default function EasycryptoNz(): JSX.Element { - return ( - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/Gateio.tsx b/src/components/icons/assets/exchanges/Gateio.tsx deleted file mode 100644 index 7a8c2830f..000000000 --- a/src/components/icons/assets/exchanges/Gateio.tsx +++ /dev/null @@ -1,81 +0,0 @@ -export default function Gateio(): JSX.Element { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/Htx.tsx b/src/components/icons/assets/exchanges/Htx.tsx deleted file mode 100644 index 290e87c8b..000000000 --- a/src/components/icons/assets/exchanges/Htx.tsx +++ /dev/null @@ -1,57 +0,0 @@ -export default function Htx(): JSX.Element { - return ( - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/Swyftx.tsx b/src/components/icons/assets/exchanges/Swyftx.tsx deleted file mode 100644 index 430a583e7..000000000 --- a/src/components/icons/assets/exchanges/Swyftx.tsx +++ /dev/null @@ -1,52 +0,0 @@ -export default function Swyftx(): JSX.Element { - return ( - - - - - - - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/Transak.tsx b/src/components/icons/assets/exchanges/Transak.tsx deleted file mode 100644 index 3b63ccf78..000000000 --- a/src/components/icons/assets/exchanges/Transak.tsx +++ /dev/null @@ -1,73 +0,0 @@ -export default function Transak(): JSX.Element { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - ); -} diff --git a/src/components/icons/assets/exchanges/index.ts b/src/components/icons/assets/exchanges/index.ts index 4482a03ca..3bf349bfa 100644 --- a/src/components/icons/assets/exchanges/index.ts +++ b/src/components/icons/assets/exchanges/index.ts @@ -1,39 +1,15 @@ import { SVGProps } from "react"; import Bitrue from "./Bitrue"; -import Kucoin from "./Kucoin"; -import Htx from "./Htx"; -import Gateio from "./Gateio"; -import Transak from "./Transak"; -import Bybit from "./Bybit"; -import Swyftx from "./Swyftx"; -import Bitdotcom from "./Bitdotcom"; import Latoken from "./Latoken"; -import Bitmart from "./Bitmart"; -import EasycryptoAu from "./EasycryptoAu"; -import EasycryptoNz from "./EasycryptoNz"; import Bake from "./Bake"; import Lock from "./Lock"; -import ChangeNow from "./ChangeNow"; -import CoinEx from "./CoinEx"; const mapping: Record) => JSX.Element> = { Bitrue, - Kucoin, - Htx, - Gateio, - Transak, - Bybit, - Swyftx, - Bitdotcom, Latoken, - Bitmart, - EasycryptoAu, - EasycryptoNz, Bake, Lock, - ChangeNow, - CoinEx, }; export function getExchangeLogo( diff --git a/src/layouts/components/BuyDFIButton.tsx b/src/layouts/components/BuyDFIButton.tsx index 63467ddf1..d086e0bce 100644 --- a/src/layouts/components/BuyDFIButton.tsx +++ b/src/layouts/components/BuyDFIButton.tsx @@ -15,21 +15,6 @@ export function BuyDFIButton({ const { t } = useTranslation("layout"); const exchanges = [ - { - name: "KuCoin", - image: "/assets/svg/exchanges/logo-kucoin.svg", - url: "https://trade.kucoin.com/DFI-USDT", - }, - { - name: "Htx", - image: "/assets/img/exchanges/logo-htx.png", - url: "https://www.htx.com/trade/dfi_usdt", - }, - { - name: "Gate.io", - image: "/assets/svg/exchanges/logo-gateio.svg", - url: "https://www.gate.io/trade/DFI_USDT", - }, { name: "LATOKEN", image: "/assets/svg/exchanges/logo-latoken.svg", @@ -38,47 +23,7 @@ export function BuyDFIButton({ { name: "Bittrue", image: "/assets/svg/exchanges/logo-bittrue.svg", - url: "https://www.bitrue.com/trade/dfi_usdt", - }, - { - name: "EasyCrypto (AU)", - image: "/assets/img/exchanges/logo-easycrypto-au.png", - url: "https://easycrypto.ai/au/buy-sell/dfi-defichain", - }, - { - name: "EasyCrypto (NZ)", - image: "/assets/img/exchanges/logo-easycrypto-nz.png", - url: "https://easycrypto.ai/nz/buy-sell/dfi-defichain", - }, - { - name: "Transak", - image: "/assets/img/exchanges/logo-transak.png", - url: "https://global.transak.com", - }, - { - name: "Bybit", - image: "/assets/svg/exchanges/logo-bybit.svg", - url: "https://www.bybit.com/en-US/trade/spot/DFI/USDT", - }, - { - name: "Swyftx", - image: "/assets/svg/exchanges/logo-swyftx.svg", - url: "https://swyftx.com/au/buy/defichain/", - }, - { - name: "Bit.com", - image: "/assets/img/exchanges/bit.png", - url: "https://www.bit.com/legacy/spot?pair=DFI-USDT", - }, - { - name: "Bitmart.com", - image: "/assets/svg/exchanges/logo-bitmart.svg", - url: "https://www.bitmart.com/trade/en?symbol=%24DFI_USDT&layout=basic", - }, - { - name: "CoinEx.com", - image: "/assets/img/logo-black.svg", - url: "https://coinex.com/en/exchange/DFI-USDT", + url: "https://www.bitrue.com/trade/dfi_btc", }, ]; diff --git a/src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx b/src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx index e5fc2a391..2e430440f 100644 --- a/src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx +++ b/src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx @@ -16,66 +16,11 @@ export default function GetDFISectionExchanges() { name: "Bitrue", url: "https://www.bitrue.com/trade/dfi_usdt", }, - { - id: "GetDFISection.Exchange.Kucoin", - name: "Kucoin", - url: "https://trade.kucoin.com/DFI-USDT", - }, - { - id: "GetDFISection.Exchange.Htx", - name: "Htx", - url: "https://www.htx.com/trade/dfi_usdt", - }, - { - id: "GetDFISection.Exchange.Gateio", - name: "Gateio", - url: "https://www.gate.io/trade/DFI_USDT", - }, - { - id: "GetDFISection.Exchange.Transak", - name: "Transak", - url: "https://global.transak.com", - }, - { - id: "GetDFISection.Exchange.Bybit", - name: "Bybit", - url: "https://www.bybit.com/en-US/trade/spot/DFI/USDT", - }, - { - id: "GetDFISection.Exchange.Bitdotcom", - name: "Bitdotcom", - url: "https://www.bit.com/legacy/spot?pair=DFI-USDT", - }, { id: "GetDFISection.Exchange.Latoken", name: "Latoken", url: "https://latoken.com/exchange/DFI_USDT", }, - { - id: "GetDFISection.Exchange.EasyAu", - name: "EasycryptoAu", - url: "https://easycrypto.com/au/buy-sell/dfi-defichain", - }, - { - id: "GetDFISection.Exchange.EasyNz", - name: "EasycryptoNz", - url: "https://easycrypto.com/nz/buy-sell/dfi-defichain", - }, - { - id: "GetDFISection.Exchange.ChangeNow", - name: "ChangeNow", - url: "https://changenow.io/?_branch_match_id=1164181675870671265&_branch_referrer=H4sIAAAAAAAAAxXHWQqAIBAA0Nv46YK0EEhHiSHHlNyYRrp%2B9P5eZO7PptQZoV5Y2yuhd5lTvRVhQCLI%2B78jeWfXBXAGAxa0mQSUNio7o7UI1IrDQYKb8yF9nHrl9FUAAAA%3D&amount=100&from=eur&to=dfi", - }, - { - id: "GetDFISection.Exchange.Bake", - name: "Bake", - url: "https://bake.io/", - }, - { - id: "GetDFISection.Exchange.CoinEx", - name: "CoinEx", - url: "https://coinex.com/en/exchange/DFI-USDT", - }, ]; const staking: ExchangeItem[] = [ From fe5edaa231dff5c6ef3b4cc0eb811d0e1cb03f06 Mon Sep 17 00:00:00 2001 From: defi2025 Date: Sat, 30 Aug 2025 23:26:24 +0200 Subject: [PATCH 3/5] Issue #14: removed obsolent exchanges --- src/layouts/components/BuyDFIButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/components/BuyDFIButton.tsx b/src/layouts/components/BuyDFIButton.tsx index d086e0bce..874d87333 100644 --- a/src/layouts/components/BuyDFIButton.tsx +++ b/src/layouts/components/BuyDFIButton.tsx @@ -23,7 +23,7 @@ export function BuyDFIButton({ { name: "Bittrue", image: "/assets/svg/exchanges/logo-bittrue.svg", - url: "https://www.bitrue.com/trade/dfi_btc", + url: "https://www.bitrue.com/trade/dfi_usdt", }, ]; From 5ea50aa415a68b5123530141bb3ee544c088386a Mon Sep 17 00:00:00 2001 From: defi2025 Date: Sat, 30 Aug 2025 23:30:27 +0200 Subject: [PATCH 4/5] Issue #14: removed obsolent exchanges --- cypress/fixture/dfi.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/fixture/dfi.config.ts b/cypress/fixture/dfi.config.ts index 483e6dff4..4050c1bef 100644 --- a/cypress/fixture/dfi.config.ts +++ b/cypress/fixture/dfi.config.ts @@ -3,7 +3,7 @@ export const exchanges = [ { id: "bitrue", name: "Bitrue", - url: "https://www.bitrue.com/trade/dfi_btc", + url: "https://www.bitrue.com/trade/dfi_usdt", }, { id: "latoken", From 11dae8cb27dda7ec5c40b9d5b7e01c3547b8a300 Mon Sep 17 00:00:00 2001 From: defi2025 Date: Sat, 30 Aug 2025 23:40:07 +0200 Subject: [PATCH 5/5] revert Bake to ExchangeItem --- src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx b/src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx index 2e430440f..cc0f62a83 100644 --- a/src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx +++ b/src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx @@ -21,6 +21,11 @@ export default function GetDFISectionExchanges() { name: "Latoken", url: "https://latoken.com/exchange/DFI_USDT", }, + { + id: "GetDFISection.Exchange.Bake", + name: "Bake", + url: "https://bake.io/", + }, ]; const staking: ExchangeItem[] = [