Skip to content

Commit

Permalink
Meme nft6 (#612)
Browse files Browse the repository at this point in the history
* feat: add nft6 data

* feat: update meme 5 to meme 6

* fix: text

* update mainnet contract

* Fix meme chart

* feat: update xref data

* feat: update meme6 link

---------

Co-authored-by: naturexie <[email protected]>
Co-authored-by: lq0-github <[email protected]>
  • Loading branch information
3 people authored Oct 1, 2024
1 parent 0eb0144 commit 3dfbb2d
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 34 deletions.
4 changes: 2 additions & 2 deletions src/components/meme/CheckInModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ const CheckInModal = (props: any) => {
</div>
<div class="flex items-start gap-1.5">
<span class="relative top-1.5 w-1 h-1 rounded-full bg-white flex-shrink-0"></span>
<span>Unlock MEME Honorary NFT 5 for all users in MEME Season 5 by completing tasks.</span>
<span>Unlock MEME Honorary NFT 6 for all users in MEME Season 6 by completing tasks.</span>
</div>
<div class="flex items-start gap-1.5">
<span class="relative top-1.5 w-1 h-1 rounded-full bg-white flex-shrink-0"></span>
<span>All NFTs boost the luck in Daily Check-in draws.</span>
</div>
<div class="flex items-start gap-1.5">
<span class="relative top-1.5 w-1 h-1 rounded-full bg-white flex-shrink-0"></span>
<span>Holders of MEME Honorary NFT can accelerate MEME token acquisition and participate in Season 5 staking.</span>
<span>Holders of MEME Honorary NFT can accelerate MEME token acquisition and participate in Season 6 staking.</span>
</div>
<div class="flex items-start gap-1.5">
<span class="relative top-1.5 w-1 h-1 rounded-full bg-white flex-shrink-0"></span>
Expand Down
4 changes: 2 additions & 2 deletions src/components/meme/MemeVoteModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ function MemeVoteModal(props: any) {
<OprationButton
minWidth="7rem"
disabled={disabled}
onClick={openMemeVoteConfirmModal}
// onClick={stakeToken}
// onClick={openMemeVoteConfirmModal}
onClick={stakeToken}
className={`flex flex-grow items-center justify-center bg-greenLight text-boxBorder mt-6 rounded-xl h-12 text-base gotham_bold focus:outline-none ${
disabled || memeVoteLoading ? 'opacity-40' : ''
}`}
Expand Down
6 changes: 3 additions & 3 deletions src/components/meme/NFTTaskModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const NFTTaskModal = (props: any) => {
function share() {
setShareButtonClicked('1');
onRequestClose();
window.open('https://x.com/intent/retweet?tweet_id=1831519988601254119');
window.open('https://x.com/intent/retweet?tweet_id=1840935987545063790');
}
return (
<Modal
Expand All @@ -33,14 +33,14 @@ const NFTTaskModal = (props: any) => {
>
<div className="flex items-center justify-between">
<span className="text-white text-base gotham_bold">
MEME Honorary NFT5
MEME Honorary NFT6
</span>
<ModalCloseIcon className="cursor-pointer" onClick={onRequestClose} />
</div>
<div className="flex flex-col items-center mt-3 text-white text-sm gap-2">
<p className="text-left">
Unlock endless rewards from the MEME world, exclusive to MEME Season
5! Complete the following tasks to claim:
6! Complete the following tasks to claim:
</p>
<div className="flex items-start justify-start w-full gap-1.5 text-left">
<span className="relative top-1.5 w-1 h-1 rounded-full bg-white flex-shrink-0"></span>
Expand Down
21 changes: 12 additions & 9 deletions src/components/meme/StakingChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,22 @@ const StakingChart = ({ chartType }) => {
const [activeIndex, setActiveIndex] = useState(0);
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 seeds;
return meme_winner_tokens.reduce(
(acc, memeTokenId) => ({
...acc,
...{ [memeTokenId]: seeds[memeTokenId] },
}),
{}
) as Record<string, Seed>;
}, [seeds]);
return Object.entries(MEME_TOKEN_XREF_MAP).reduce((acc, [memeTokenId]) => {
const seed = seeds[memeTokenId];
if (seed && !coming_offline_soon_token.includes(memeTokenId)) {
return {
...acc,
[memeTokenId]: seed,
};
}
return acc;
}, {} as Record<string, Seed>);
}, [seeds, MEME_TOKEN_XREF_MAP]);

useEffect(() => {
if (!seeds) {
Expand Down
12 changes: 6 additions & 6 deletions src/components/meme/memeConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -637,8 +637,8 @@ export function getMemeCheckInConfig(): any {
return {
token_id_list: ['ref.fakes.testnet', 'usdt.fakes.testnet'],
nftMetaData: {
title: 'MEME Honorary NFT 5',
description: 'REF MemeSeason5 NFT',
title: 'MEME Honorary NFT 6',
description: 'REF MemeSeason6 NFT',
},
level: {
0: {
Expand All @@ -662,8 +662,8 @@ export function getMemeCheckInConfig(): any {
return {
token_id_list: ['ref.fakes.testnet', 'usdt.fakes.testnet'],
nftMetaData: {
title: 'MEME Honorary NFT 5',
description: 'REF MemeSeason5 NFT',
title: 'MEME Honorary NFT 6',
description: 'REF MemeSeason6 NFT',
},
level: {
0: {
Expand Down Expand Up @@ -691,8 +691,8 @@ export function getMemeCheckInConfig(): any {
'gear.enleap.near',
],
nftMetaData: {
title: 'MEME Honorary NFT 5',
description: 'REF MemeSeason5 NFT',
title: 'MEME Honorary NFT 6',
description: 'REF MemeSeason6 NFT',
},
level: {
0: {
Expand Down
24 changes: 12 additions & 12 deletions src/services/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ export default function getConfig(
},
USN_ID: 'usn',
TOTAL_PLATFORM_FEE_REVENUE:
process.env.TOTAL_PLATFORM_FEE_REVENUE || '2968234.25',
process.env.TOTAL_PLATFORM_FEE_REVENUE || '3241971.25',
CUMULATIVE_REF_BUYBACK:
process.env.CUMULATIVE_REF_BUYBACK || '3948907.03',
process.env.CUMULATIVE_REF_BUYBACK || '4313890.03',

BLACKLIST_POOL_IDS: [
'3699',
Expand Down Expand Up @@ -271,7 +271,7 @@ export default function getConfig(
'17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1',
],
MEME_CHECK_IN_CONTRACT_ID: 'checkin.refnft.near',
MEME_NFT_CONTRACT_ID: 'ms5.refnft.near',
MEME_NFT_CONTRACT_ID: 'ms6.refnft.near',
Frax_SFrax_POOL_ID: 5029,
Frax_SFrax_TOKEN_IDS: [
'853d955acef822db058eb8505911ed77f175b99e.factory.bridge.near',
Expand Down Expand Up @@ -341,9 +341,9 @@ export default function getConfig(
},

TOTAL_PLATFORM_FEE_REVENUE:
process.env.TOTAL_PLATFORM_FEE_REVENUE || '2968234.25',
process.env.TOTAL_PLATFORM_FEE_REVENUE || '3241971.25',
CUMULATIVE_REF_BUYBACK:
process.env.CUMULATIVE_REF_BUYBACK || '3948907.03',
process.env.CUMULATIVE_REF_BUYBACK || '4313890.03',
BLACKLIST_POOL_IDS: ['1752', '1760'],
REF_FARM_BOOST_CONTRACT_ID:
process.env.REF_FARM_BOOST_CONTRACT_ID ||
Expand Down Expand Up @@ -382,7 +382,7 @@ export default function getConfig(
'memefarm-dev2.ref-dev.testnet',
REF_TOKEN_LOCKER_CONTRACT_ID: 'token-locker.ref-labs.testnet',
MEME_CHECK_IN_CONTRACT_ID: 'check-in.testnet',
MEME_NFT_CONTRACT_ID: 'ms_5.refnft.testnet',
MEME_NFT_CONTRACT_ID: 'ms_6.refnft.testnet',
};
case 'testnet':
return {
Expand Down Expand Up @@ -448,9 +448,9 @@ export default function getConfig(
DCL_POOL_BLACK_LIST: ['usdt.fakes.testnet|wrap.testnet|100'],

TOTAL_PLATFORM_FEE_REVENUE:
process.env.TOTAL_PLATFORM_FEE_REVENUE || '2968234.25',
process.env.TOTAL_PLATFORM_FEE_REVENUE || '3241971.25',
CUMULATIVE_REF_BUYBACK:
process.env.CUMULATIVE_REF_BUYBACK || '3948907.03',
process.env.CUMULATIVE_REF_BUYBACK || '4313890.03',
BLACKLIST_POOL_IDS: ['686'],
REF_FARM_BOOST_CONTRACT_ID:
process.env.REF_FARM_BOOST_CONTRACT_ID ||
Expand Down Expand Up @@ -485,7 +485,7 @@ export default function getConfig(
'memefarm-dev2.ref-dev.testnet',
REF_TOKEN_LOCKER_CONTRACT_ID: 'token-locker.testnet',
MEME_CHECK_IN_CONTRACT_ID: 'check-in.testnet',
MEME_NFT_CONTRACT_ID: 'ms_5.refnft.testnet',
MEME_NFT_CONTRACT_ID: 'ms_6.refnft.testnet',
};
default:
return {
Expand Down Expand Up @@ -566,9 +566,9 @@ export default function getConfig(
},
USN_ID: 'usn',
TOTAL_PLATFORM_FEE_REVENUE:
process.env.TOTAL_PLATFORM_FEE_REVENUE || '2968234.25',
process.env.TOTAL_PLATFORM_FEE_REVENUE || '3241971.25',
CUMULATIVE_REF_BUYBACK:
process.env.CUMULATIVE_REF_BUYBACK || '3948907.03',
process.env.CUMULATIVE_REF_BUYBACK || '4313890.03',

BLACKLIST_POOL_IDS: [
'3699',
Expand Down Expand Up @@ -621,7 +621,7 @@ export default function getConfig(
'meme-farming_011.ref-labs.near',
REF_TOKEN_LOCKER_CONTRACT_ID: 'token-locker.ref-labs.near',
MEME_CHECK_IN_CONTRACT_ID: 'checkin.refnft.near',
MEME_NFT_CONTRACT_ID: 'ms5.refnft.near',
MEME_NFT_CONTRACT_ID: 'ms6.refnft.near',
Frax_SFrax_POOL_ID: 5029,
Frax_SFrax_TOKEN_IDS: [
'853d955acef822db058eb8505911ed77f175b99e.factory.bridge.near',
Expand Down

0 comments on commit 3dfbb2d

Please sign in to comment.