From 8b3bb57c1afdde2a80d9acc70f4268f8ec2592eb Mon Sep 17 00:00:00 2001 From: xieqiancaosissi Date: Tue, 1 Oct 2024 23:17:23 +0800 Subject: [PATCH] Update meme token data (#613) * feat: update rule and meme config * feat: update meme token data * feat: add BENDOG token --------- Co-authored-by: naturexie <786281870@qq.com> --- src/components/meme/MarketSeedsBox.tsx | 1 - src/components/meme/RuleModal.tsx | 64 ++++++++++---------------- src/components/meme/StakingChart.tsx | 2 - src/components/meme/memeConfig.tsx | 36 +++++++++------ 4 files changed, 48 insertions(+), 55 deletions(-) diff --git a/src/components/meme/MarketSeedsBox.tsx b/src/components/meme/MarketSeedsBox.tsx index afc0383b7..a991e0abb 100644 --- a/src/components/meme/MarketSeedsBox.tsx +++ b/src/components/meme/MarketSeedsBox.tsx @@ -44,7 +44,6 @@ const MarketSeedsBox = ({ origin == 'intro' ? [memeDataConfig.meme_winner_tokens[0]] : memeDataConfig.meme_winner_tokens; - const { MEME_TOKEN_XREF_MAP } = getMemeContractConfig(); const { coming_offline_soon_token } = getMemeDataConfig(); const displaySeeds = useMemo(() => { if (emptyObject(seeds)) return {}; diff --git a/src/components/meme/RuleModal.tsx b/src/components/meme/RuleModal.tsx index db0bd4826..147c9bcf7 100644 --- a/src/components/meme/RuleModal.tsx +++ b/src/components/meme/RuleModal.tsx @@ -39,13 +39,6 @@ function RuleModal(props: any) { height: cardHeight, }} > - {/*

New campaign start on 1st of May

*/} - {/*

- A new selection of top 5 reward Meme tokens is voted by holders of - xREF, with 25% boosted reward for the overall campaign (NEAR + Ref - reward). -

*/} - {/*

Selection criteria:

*/} -

Some rules:

+

+ Criteria for Existing Tokens Listed on REF MEME Season to be + Eligible for the Next Season** +

+

+ Criteria for New Tokens Launched During August - September** +

+ diff --git a/src/components/meme/StakingChart.tsx b/src/components/meme/StakingChart.tsx index b310b06db..1e6180f99 100644 --- a/src/components/meme/StakingChart.tsx +++ b/src/components/meme/StakingChart.tsx @@ -41,8 +41,6 @@ const StakingChart = ({ chartType }) => { const { seeds, xrefSeeds, allTokenMetadatas } = useContext(MemeContext) || {}; const { MEME_TOKEN_XREF_MAP } = getMemeContractConfig(); const { coming_offline_soon_token } = getMemeDataConfig(); - const memeDataConfig = getMemeDataConfig(); - const meme_winner_tokens = memeDataConfig.meme_winner_tokens; const displaySeeds = useMemo(() => { if (emptyObject(seeds)) return {}; return Object.entries(MEME_TOKEN_XREF_MAP).reduce((acc, [memeTokenId]) => { diff --git a/src/components/meme/memeConfig.tsx b/src/components/meme/memeConfig.tsx index ecf12b4c3..2661f3702 100644 --- a/src/components/meme/memeConfig.tsx +++ b/src/components/meme/memeConfig.tsx @@ -284,6 +284,8 @@ export function getMemeContractConfig( 'memefarm-xref-corgi.ref-labs.near', 'memefarm-xref-gp.ref-labs.near', 'memefarm-xref-kat.ref-labs.near', + 'memefarm-xref-chill.ref-labs.near', + 'memefarm-xref-bd.ref-labs.near', ], MEME_TOKEN_XREF_MAP: { 'blackdragon.tkn.near': 'memefarm-xref-blackdragon.ref-labs.near', @@ -308,6 +310,8 @@ export function getMemeContractConfig( 'corgi.token0.near': 'memefarm-xref-corgi.ref-labs.near', 'gp.token0.near': 'memefarm-xref-gp.ref-labs.near', 'kat.token0.near': 'memefarm-xref-kat.ref-labs.near', + 'chill-129.meme-cooking.near': 'memefarm-xref-chill.ref-labs.near', + 'benthedog.near': 'memefarm-xref-bd.ref-labs.near', }, }; } @@ -442,21 +446,11 @@ export function getMemeDataConfig(): any { 'token.0xshitzu.near', ], meme_nonListed_tokens: [ - 'usmeme.tg', - 'nkok.tkn.near', '438e48ed4ce6beecf503d43b9dbd3c30d516e7fd.factory.bridge.near', - 'nearnvidia.near', - 'bean.tkn.near', - 'ftv2.nekotoken.near', - 'marmaj.tkn.near', - 'babyblackdragon.tkn.near', - 'hat.tkn.near', - 'intel.tkn.near', - 'dd.tg', - 'neiro.token0.near', - 'corgi.token0.near', 'gp.token0.near', 'kat.token0.near', + 'chill-129.meme-cooking.near', + 'benthedog.near', ], pie_color: { 'blackdragon.tkn.near': '#413B41', @@ -480,6 +474,8 @@ export function getMemeDataConfig(): any { 'corgi.token0.near': '#A96538', 'gp.token0.near': '#D1D2C3', 'kat.token0.near': '#FF795D', + 'chill-129.meme-cooking.near': '#5ac8ec', + 'benthedog.near': '#6124d9', }, meme_cap_tokens: [ 'token.lonkingnearbackto2024.near', @@ -488,7 +484,21 @@ export function getMemeDataConfig(): any { 'touched.tkn.near', 'token.0xshitzu.near', ], - coming_offline_soon_token: ['touched.tkn.near'], + coming_offline_soon_token: [ + 'touched.tkn.near', + 'usmeme.tg', + 'nkok.tkn.near', + 'bean.tkn.near', + 'ftv2.nekotoken.near', + 'marmaj.tkn.near', + 'babyblackdragon.tkn.near', + 'hat.tkn.near', + 'intel.tkn.near', + 'dd.tg', + 'neiro.token0.near', + 'corgi.token0.near', + 'nearnvidia.near', + ], }; } }