Skip to content

Commit 9897803

Browse files
authored
1 update dfi exchange section (DeFiCh#748)
* remove old exchanges (Swyftx and Bitmart) remove kucoin from list of staking services * add bake to list of exchanges * add CoinEx to list of exchanges * fix bitrue link * fix kucoin url * fix prettier formatting
1 parent 69965ec commit 9897803

6 files changed

Lines changed: 86 additions & 20 deletions

File tree

Lines changed: 15 additions & 0 deletions
Loading
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
export default function CoinEx(): JSX.Element {
2+
return (
3+
<svg
4+
width="118"
5+
viewBox="0 0 324 92"
6+
fill="none"
7+
xmlns="http://www.w3.org/2000/svg"
8+
>
9+
<path
10+
d="M50.5044 36.5652C44.4386 30.5229 34.7976 30.5229 28.7957 36.5652C22.7939 42.6726 22.8578 52.613 28.8597 58.7204C34.8613 64.8275 44.6302 64.8925 50.632 58.7854C50.7341 58.6814 51.156 58.2095 51.8973 57.3699L44.6597 49.9965C43.9157 50.8755 43.5228 51.3362 43.481 51.3786C41.4378 53.4576 38.1177 53.4576 36.0744 51.3786C34.0314 49.2996 34.0314 45.921 36.0107 43.907C37.99 41.8928 41.3101 41.8928 43.3531 43.9718C43.3531 43.9718 49.8045 50.5317 62.7068 63.6512C57.4074 71.4476 48.5251 76.3925 38.9476 76.3925C23.1131 76.3925 10.2158 63.2034 10.2158 46.9606C10.2158 30.7177 23.1131 17.5287 38.9476 17.5287C48.2058 17.5287 56.6976 22.0767 61.997 29.4185C61.1432 30.4273 58.962 32.9584 55.4531 37.0115L62.5942 44.2571L74.4474 30.6529C68.3181 16.4892 54.463 7.13333 38.9476 7.13333C17.4307 7.13333 0 25.0004 0 46.9606C0 68.9209 17.4307 86.7878 38.9476 86.7878C48.7165 86.7878 56.8253 83.6692 64.7425 76.7823C71.9575 70.545 75.3488 61.8969 75.3488 61.8969L50.5044 36.5652Z"
11+
fill="url(#paint0_linear_36_133)"
12+
/>
13+
<path
14+
d="M240.124 52.0192V73.7768H231.245V51.5441C230.344 46.435 225.842 42.5513 220.424 42.5513C214.925 42.5513 210.369 46.5547 209.566 51.7795V73.7768H200.686V34.2922L207.497 38.6138C210.963 35.6445 215.483 33.8485 220.424 33.8485C230.865 33.8485 239.416 41.863 240.145 52.0192H240.124ZM146.918 29.2794C143.968 30.8163 141.334 32.8732 139.136 35.3284C135.855 30.7873 130.511 27.8317 124.477 27.8317C114.498 27.8317 106.409 35.9129 106.409 45.8816C106.409 55.8503 114.498 63.9315 124.477 63.9315C127.716 63.9315 130.756 63.0801 133.384 61.589C134.371 64.7909 135.931 67.7422 137.944 70.3236C133.951 72.5245 129.36 73.7768 124.477 73.7768C109.056 73.7768 96.5541 61.2877 96.5541 45.8816C96.5541 30.4755 109.056 17.9864 124.477 17.9864C133.673 17.9864 141.83 22.4273 146.918 29.2794ZM160.129 73.7768C149.233 73.7768 140.399 64.9611 140.399 54.086C140.399 43.2112 149.233 34.3954 160.129 34.3954C171.026 34.3954 179.86 43.2112 179.86 54.086C179.86 64.9611 171.026 73.7768 160.129 73.7768ZM160.129 65.0254C166.183 65.0254 171.091 60.1277 171.091 54.086C171.091 48.0446 166.183 43.1468 160.129 43.1468C154.076 43.1468 149.168 48.0446 149.168 54.086C149.168 60.1277 154.076 65.0254 160.129 65.0254ZM185.34 34.3954H194.109V73.7768H185.34V34.3954ZM280.704 27.4217H255.618V41.737H279.974V50.6253H255.618V64.8885H280.704V73.7768H246.175V18.5333H280.704V27.4217ZM299.142 54.0023L285.641 34.3954H296.807C297.136 34.9443 297.616 35.6977 298.249 36.6582C298.99 37.7838 299.758 38.9505 300.552 40.1586C301.346 41.3667 302.114 42.5337 302.854 43.6594C303.59 44.7767 304.113 45.6061 304.425 46.1434L304.873 46.92L312.896 34.3954H323.519L310.257 53.6732L324 73.7768H312.971L304.506 60.9049L304.049 61.5832C303.676 62.1366 303.118 62.9908 302.373 64.1472C301.633 65.2988 300.841 66.5191 299.996 67.8081C299.146 69.1001 298.352 70.3234 297.61 71.478C296.979 72.4606 296.498 73.226 296.17 73.7768H285.635L299.142 54.0023Z"
15+
fill="#F9FBFE"
16+
/>
17+
<path
18+
d="M183.528 24.4056C183.528 22.6716 184.16 21.1727 185.424 19.909C186.688 18.6452 188.201 18.0133 189.965 18.0133C191.757 18.0133 193.286 18.6452 194.55 19.909C195.813 21.1434 196.445 22.6569 196.445 24.4497C196.445 26.2425 195.813 27.7708 194.55 29.0347C193.315 30.2984 191.802 30.9302 190.009 30.9302C188.216 30.9302 186.688 30.2984 185.424 29.0347C184.16 27.7708 183.528 26.2278 183.528 24.4056Z"
19+
fill="url(#paint1_linear_36_133)"
20+
/>
21+
<defs>
22+
<linearGradient
23+
id="paint0_linear_36_133"
24+
x1="75.3488"
25+
y1="46.9606"
26+
x2="0"
27+
y2="46.9606"
28+
gradientUnits="userSpaceOnUse"
29+
>
30+
<stop stopColor="#22E6B8" />
31+
<stop offset="1" stopColor="#00C1CE" />
32+
</linearGradient>
33+
<linearGradient
34+
id="paint1_linear_36_133"
35+
x1="196.445"
36+
y1="24.4718"
37+
x2="183.528"
38+
y2="24.4718"
39+
gradientUnits="userSpaceOnUse"
40+
>
41+
<stop stopColor="#22E6B8" />
42+
<stop offset="1" stopColor="#00C1CE" />
43+
</linearGradient>
44+
</defs>
45+
</svg>
46+
);
47+
}

src/components/icons/assets/exchanges/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import EasycryptoNz from "./EasycryptoNz";
1414
import Bake from "./Bake";
1515
import Lock from "./Lock";
1616
import ChangeNow from "./ChangeNow";
17+
import CoinEx from "./CoinEx";
1718

1819
const mapping: Record<string, (props: SVGProps<SVGSVGElement>) => JSX.Element> =
1920
{
@@ -32,6 +33,7 @@ const mapping: Record<string, (props: SVGProps<SVGSVGElement>) => JSX.Element> =
3233
Bake,
3334
Lock,
3435
ChangeNow,
36+
CoinEx,
3537
};
3638

3739
export function getExchangeLogo(

src/layouts/components/BuyDFIButton.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function BuyDFIButton({
1818
{
1919
name: "KuCoin",
2020
image: "/assets/svg/exchanges/logo-kucoin.svg",
21-
url: "https://trade.kucoin.com/DFI-BTC",
21+
url: "https://trade.kucoin.com/DFI-USDT",
2222
},
2323
{
2424
name: "Htx",
@@ -38,7 +38,7 @@ export function BuyDFIButton({
3838
{
3939
name: "Bittrue",
4040
image: "/assets/svg/exchanges/logo-bittrue.svg",
41-
url: "https://www.bitrue.com/trade/dfi_btc",
41+
url: "https://www.bitrue.com/trade/dfi_usdt",
4242
},
4343
{
4444
name: "EasyCrypto (AU)",
@@ -75,6 +75,11 @@ export function BuyDFIButton({
7575
image: "/assets/svg/exchanges/logo-bitmart.svg",
7676
url: "https://www.bitmart.com/trade/en?symbol=%24DFI_USDT&layout=basic",
7777
},
78+
{
79+
name: "CoinEx.com",
80+
image: "/assets/img/logo-black.svg",
81+
url: "https://coinex.com/en/exchange/DFI-USDT",
82+
},
7883
];
7984

8085
return (

src/pages/explore/dfi/_components/GetDFISectionExchanges.tsx

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ export default function GetDFISectionExchanges() {
1414
{
1515
id: "GetDFISection.Exchange.Bitrue",
1616
name: "Bitrue",
17-
url: "https://www.bitrue.com/trade/dfi_btc",
17+
url: "https://www.bitrue.com/trade/dfi_usdt",
1818
},
1919
{
2020
id: "GetDFISection.Exchange.Kucoin",
2121
name: "Kucoin",
22-
url: "https://trade.kucoin.com/DFI-BTC",
22+
url: "https://trade.kucoin.com/DFI-USDT",
2323
},
2424
{
2525
id: "GetDFISection.Exchange.Htx",
@@ -41,11 +41,6 @@ export default function GetDFISectionExchanges() {
4141
name: "Bybit",
4242
url: "https://www.bybit.com/en-US/trade/spot/DFI/USDT",
4343
},
44-
{
45-
id: "GetDFISection.Exchange.Swyftx",
46-
name: "Swyftx",
47-
url: "https://swyftx.com/au/buy/defichain",
48-
},
4944
{
5045
id: "GetDFISection.Exchange.Bitdotcom",
5146
name: "Bitdotcom",
@@ -56,11 +51,6 @@ export default function GetDFISectionExchanges() {
5651
name: "Latoken",
5752
url: "https://latoken.com/exchange/DFI_USDT",
5853
},
59-
{
60-
id: "GetDFISection.Exchange.Bitmart",
61-
name: "Bitmart",
62-
url: "https://www.bitmart.com/trade/en?symbol=%24DFI_USDT&layout=basic",
63-
},
6454
{
6555
id: "GetDFISection.Exchange.EasyAu",
6656
name: "EasycryptoAu",
@@ -76,14 +66,19 @@ export default function GetDFISectionExchanges() {
7666
name: "ChangeNow",
7767
url: "https://changenow.io/?_branch_match_id=1164181675870671265&_branch_referrer=H4sIAAAAAAAAAxXHWQqAIBAA0Nv46YK0EEhHiSHHlNyYRrp%2B9P5eZO7PptQZoV5Y2yuhd5lTvRVhQCLI%2B78jeWfXBXAGAxa0mQSUNio7o7UI1IrDQYKb8yF9nHrl9FUAAAA%3D&amount=100&from=eur&to=dfi",
7868
},
69+
{
70+
id: "GetDFISection.Exchange.Bake",
71+
name: "Bake",
72+
url: "https://bake.io/",
73+
},
74+
{
75+
id: "GetDFISection.Exchange.CoinEx",
76+
name: "CoinEx",
77+
url: "https://coinex.com/en/exchange/DFI-USDT",
78+
},
7979
];
8080

8181
const staking: ExchangeItem[] = [
82-
{
83-
id: "GetDFISection.Staking.Kucoin",
84-
name: "Kucoin",
85-
url: "https://www.kucoin.com/earn/finance/list",
86-
},
8782
{
8883
id: "GetDFISection.Staking.Bake",
8984
name: "Bake",

src/pages/metachain/_components/MetaChainFAQ.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ function DropdownItem({
7676
id="faq-link"
7777
data-testid="faq-link"
7878
>
79-
<span className="text-electric underline">{item.value}</span>{" "}
79+
<span className="text-electric underline">
80+
{item.value}
81+
</span>{" "}
8082
</a>
8183
);
8284
}

0 commit comments

Comments
 (0)