import React, { useState, useEffect } from 'react'; import { PieChart, ArrowRightLeft } from 'lucide-react'; const TokenomicsSection: React.FC = () => { const [selectedToken, setSelectedToken] = useState<'PEZ' | 'HEZ'>('PEZ'); const [monthsPassed] = useState(0); const halvingPeriod = Math.floor(monthsPassed / 48); //const _monthsUntilNextHalving = 48 - (monthsPassed % 48); useEffect(() => { const baseAmount = selectedToken === 'PEZ' ? 74218750 : 37109375; // Calculate release amount for future use const releaseAmount = baseAmount / Math.pow(2, halvingPeriod); if (import.meta.env.DEV) console.log('Release amount:', releaseAmount); }, [monthsPassed, halvingPeriod, selectedToken]); const pezDistribution = [ { name: 'Treasury', percentage: 96.25, amount: 4812500000, color: 'from-purple-500 to-purple-600' }, { name: 'Presale', percentage: 1.875, amount: 93750000, color: 'from-cyan-500 to-cyan-600' }, { name: 'Founder', percentage: 1.875, amount: 93750000, color: 'from-teal-500 to-teal-600' } ]; const hezDistribution = [ { name: 'Staking Rewards', percentage: 40, amount: 1000000000, color: 'from-yellow-500 to-orange-600' }, { name: 'Governance', percentage: 30, amount: 750000000, color: 'from-green-500 to-emerald-600' }, { name: 'Ecosystem', percentage: 20, amount: 500000000, color: 'from-blue-500 to-indigo-600' }, { name: 'Team', percentage: 10, amount: 250000000, color: 'from-red-500 to-pink-600' } ]; const distribution = selectedToken === 'PEZ' ? pezDistribution : hezDistribution; const totalSupply = selectedToken === 'PEZ' ? 5000000000 : 2500000000; const tokenColor = selectedToken === 'PEZ' ? 'purple' : 'yellow'; return (

Dual Token Ecosystem

PEZ & HEZ tokens working together for governance and utility

{/* Token Selector */}
{/* Distribution Chart */}

{selectedToken} Distribution

{selectedToken}
{distribution.map((item) => (
{item.name}
{item.percentage}%
{item.amount.toLocaleString()} {selectedToken}
))}
Total Supply {totalSupply.toLocaleString()} {selectedToken}
{/* Token Features */}

{selectedToken} Features

{selectedToken === 'PEZ' ? (

Governance Token

Vote on proposals and participate in DAO decisions

Staking Rewards

Earn HEZ tokens by staking PEZ

Treasury Access

Propose and vote on treasury fund allocation

Deflationary

Synthetic halving every 48 months

) : (

Utility Token

Used for platform transactions and services

P2P Trading

Primary currency for peer-to-peer marketplace

Fee Discounts

Reduced platform fees when using HEZ

Reward Distribution

Earned through staking and participation

)}

Token Synergy

Stake PEZ → Earn HEZ rewards
Use HEZ → Boost governance power
Hold both → Maximum platform benefits
); }; export default TokenomicsSection;