From c955196fbb34d9ede2fe54ec45a6d688437e13d6 Mon Sep 17 00:00:00 2001 From: Thong Yuan Yu Sarah <65583522+sarah-thong@users.noreply.github.com> Date: Fri, 14 Apr 2023 15:59:57 +0800 Subject: [PATCH] Feat/update demex (#111) * Update token svgs * Add YIELDUSD token svg * Update footer links * Remove lint warnings --- package.json | 2 +- src/@demex-info/assets/tokens/ROAR.svg | 18 ++++++++++++++++++ src/@demex-info/assets/tokens/YIELDUSD.svg | 17 +++++++++++++++++ src/@demex-info/assets/tokens/ampKUJI.svg | 12 ++++++++++++ src/@demex-info/assets/tokens/index.ts | 11 +++++++---- .../components/CoinIcon/CoinIcon.tsx | 1 + .../components/Footer/components/NavFooter.tsx | 13 +++++-------- yarn.lock | 8 ++++---- 8 files changed, 65 insertions(+), 17 deletions(-) create mode 100644 src/@demex-info/assets/tokens/ROAR.svg create mode 100644 src/@demex-info/assets/tokens/YIELDUSD.svg create mode 100644 src/@demex-info/assets/tokens/ampKUJI.svg diff --git a/package.json b/package.json index 82df2521..04628497 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@types/redux-logger": "^3.0.8", "animate.css": "^4.1.1", "bignumber.js": "^9.0.1", - "carbon-js-sdk": "^0.3.56", + "carbon-js-sdk": "^0.4.11", "chart.js": "^3.2.0", "dayjs": "^1.11.5", "eslint": "^7.23.0", diff --git a/src/@demex-info/assets/tokens/ROAR.svg b/src/@demex-info/assets/tokens/ROAR.svg new file mode 100644 index 00000000..d29ab096 --- /dev/null +++ b/src/@demex-info/assets/tokens/ROAR.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/@demex-info/assets/tokens/YIELDUSD.svg b/src/@demex-info/assets/tokens/YIELDUSD.svg new file mode 100644 index 00000000..e435a687 --- /dev/null +++ b/src/@demex-info/assets/tokens/YIELDUSD.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/src/@demex-info/assets/tokens/ampKUJI.svg b/src/@demex-info/assets/tokens/ampKUJI.svg new file mode 100644 index 00000000..2692787d --- /dev/null +++ b/src/@demex-info/assets/tokens/ampKUJI.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/@demex-info/assets/tokens/index.ts b/src/@demex-info/assets/tokens/index.ts index 6921a9d8..0fa13e8d 100644 --- a/src/@demex-info/assets/tokens/index.ts +++ b/src/@demex-info/assets/tokens/index.ts @@ -5,7 +5,6 @@ export { ReactComponent as AGI } from "./AGI.svg"; export { ReactComponent as AKRO } from "./AKRO.svg"; export { ReactComponent as ALGO } from "./ALGO.svg"; export { ReactComponent as ALPHA } from "./ALPHA.svg"; -export { ReactComponent as ampLUNA } from "./ampLUNA.svg"; export { ReactComponent as ANKR } from "./ANKR.svg"; export { ReactComponent as ANT } from "./ANT.svg"; export { ReactComponent as APE } from "./APE.svg"; @@ -107,7 +106,6 @@ export { ReactComponent as ICX } from "./ICX.svg"; export { ReactComponent as INJ } from "./INJ.svg"; export { ReactComponent as IOST } from "./IOST.svg"; export { ReactComponent as IOTX } from "./IOTX.svg"; -export { ReactComponent as iUSD } from "./iUSD.svg"; export { ReactComponent as JUNO } from "./JUNO.svg"; export { ReactComponent as KCS } from "./KCS.svg"; export { ReactComponent as KLAY } from "./KLAY.svg"; @@ -160,12 +158,12 @@ export { ReactComponent as PROM } from "./PROM.svg"; export { ReactComponent as QKC } from "./QKC.svg"; export { ReactComponent as QNT } from "./QNT.svg"; export { ReactComponent as QTUM } from "./QTUM.svg"; -export { ReactComponent as RATOM } from "./rATOM.svg"; export { ReactComponent as REEF } from "./REEF.svg"; export { ReactComponent as REN } from "./REN.svg"; export { ReactComponent as REP } from "./REP.svg"; export { ReactComponent as REV } from "./REV.svg"; export { ReactComponent as RLC } from "./RLC.svg"; +export { ReactComponent as ROAR } from "./ROAR.svg"; export { ReactComponent as RSR } from "./RSR.svg"; export { ReactComponent as RUNE } from "./RUNE.svg"; export { ReactComponent as RVN } from "./RVN.svg"; @@ -214,7 +212,6 @@ export { ReactComponent as WAVE } from "./WAVE.svg"; export { ReactComponent as WBNB } from "./WBNB.svg"; export { ReactComponent as WBTC } from "./WBTC.svg"; export { ReactComponent as WRX } from "./WRX.svg"; -export { ReactComponent as WSTETH } from "./wstETH.svg"; export { ReactComponent as XCAD } from "./XCAD.svg"; export { ReactComponent as XDC } from "./XDC.svg"; export { ReactComponent as XEM } from "./XEM.svg"; @@ -227,8 +224,14 @@ export { ReactComponent as XVG } from "./XVG.svg"; export { ReactComponent as XVS } from "./XVS.svg"; export { ReactComponent as YAM } from "./YAM.svg"; export { ReactComponent as YFI } from "./YFI.svg"; +export { ReactComponent as YIELDUSD } from "./YIELDUSD.svg"; export { ReactComponent as ZEC } from "./ZEC.svg"; export { ReactComponent as ZEN } from "./ZEN.svg"; export { ReactComponent as ZIL } from "./ZIL.svg"; export { ReactComponent as ZRX } from "./ZRX.svg"; export { ReactComponent as ZWAP } from "./ZWAP.svg"; +export { ReactComponent as ampKUJI } from "./ampKUJI.svg"; +export { ReactComponent as ampLUNA } from "./ampLUNA.svg"; +export { ReactComponent as iUSD } from "./iUSD.svg"; +export { ReactComponent as RATOM } from "./rATOM.svg"; +export { ReactComponent as WSTETH } from "./wstETH.svg"; diff --git a/src/@demex-info/components/CoinIcon/CoinIcon.tsx b/src/@demex-info/components/CoinIcon/CoinIcon.tsx index 3df93879..98e12875 100644 --- a/src/@demex-info/components/CoinIcon/CoinIcon.tsx +++ b/src/@demex-info/components/CoinIcon/CoinIcon.tsx @@ -20,6 +20,7 @@ const tokenNameMap: { USTC: "UST", USD: "CUSD", AMPLUNA: "ampLUNA", + AMPKUJI: "ampKUJI", }; export interface CoinIconProps extends SvgIconProps { diff --git a/src/@demex-info/layout/MainLayout/components/Footer/components/NavFooter.tsx b/src/@demex-info/layout/MainLayout/components/Footer/components/NavFooter.tsx index 197a5350..348089fc 100644 --- a/src/@demex-info/layout/MainLayout/components/Footer/components/NavFooter.tsx +++ b/src/@demex-info/layout/MainLayout/components/Footer/components/NavFooter.tsx @@ -27,15 +27,12 @@ const NavFooter: React.FC = () => { label: "Pools", href: getDemexLink(Paths.Pools.List, net), }, { - label: "Staking", - href: getDemexLink(Paths.Stake.List, net), - }, /* { - label: "Leaderboard", - href: getDemexLink(Paths.Leaderboard, net) + label: "Nitron", + href: getDemexLink(Paths.Nitron.Main, net), }, { - label: "Insurance Fund", - href: getDemexLink(Paths.InsuranceFund, net), - } */ ], + label: "GLP Compounder", + href: getDemexLink(Paths.Strategy.GLPWrapper, net), + }], }, { title: "Resources", items: [{ diff --git a/yarn.lock b/yarn.lock index b6e96769..3f19e388 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5646,10 +5646,10 @@ capture-exit@^2.0.0: dependencies: rsvp "^4.8.4" -carbon-js-sdk@^0.3.56: - version "0.3.56" - resolved "https://registry.yarnpkg.com/carbon-js-sdk/-/carbon-js-sdk-0.3.56.tgz#0aaa4cf40a67fda9c354742bfaed3176d2795860" - integrity sha512-YxxEPbzgrjAh8Tt1ICxmrPwIUHNsG+nxbHbsKNK9E36fPOWuZ9su0BuCrPy57zTQVNKzOjctycEWSpBAQ2kb4g== +carbon-js-sdk@^0.4.11: + version "0.4.11" + resolved "https://registry.yarnpkg.com/carbon-js-sdk/-/carbon-js-sdk-0.4.11.tgz#2a7115248ddfefbede82a811205af33407da2466" + integrity sha512-XbiQTOJiB7FcWs7VOSQMBTEI+FkEXS2G6eKgYTAAVqnecq5hjdYvtflh4USU76XTrwj9bnFXBBw3GHGxL1xpHw== dependencies: "@cityofzion/neon-api" "^4.9.0" "@cityofzion/neon-core" "^4.9.0"