An ERC20 token backed by ETH with daily lotteries and auctions.
Etherium is a collectible ERC20 token where:
- 1 ETH mints 1000 ETHERIUM (minus 1% fee)
- All operations have a 1% fee that funds daily lotteries and auctions
- Random holders win lottery prizes proportional to their holdings
- After day 7, supply becomes fixed at the total minted
- Days 0-6: Unlimited minting at 1:1000 ratio
- Day 7+: Can only mint if someone redeems (burns) tokens first
- Redeem ETHERIUM for ETH anytime at contract's ETH balance / total supply ratio (1% fee applies)
- Redemption value increases as auctions bring in ETH at market prices
- Fees collected each day are distributed the next day
- After minting period: 50% of fees go to lottery, 50% to auction (both run daily)
- Smart contracts cannot win lotteries (excluded from holder tracking)
- Use WETH for bidding (prevents DoS attacks)
- 10% minimum bid increment
- Winners receive ETHERIUM tokens
- Built on OpenZeppelin ERC20
- Uses Fenwick tree for efficient weighted random selection
- 25-hour days ensure events rotate through different times
- Fully immutable - no admin functions
# Install dependencies
forge install
# Run tests
forge test
# Deploy
forge script script/Deploy.s.sol --rpc-url <RPC_URL> --broadcastMIT