A decentralized crash game built on Polygon blockchain with RogueCoin (RGC) token.
Production Site: https://cf-llc.github.io/RogueCoinGame/
- RGC Token:
0x0708a9DD95F191711221D5D0BC8B12B2C5b7bC5e - Airdrop Contract:
0xd2D45bdf0e4C8393E9BC57bAd363b01Eaeb377f9 - Crash Game Contract:
0xf8f6F8f1c656DbD0540C26B3Bfa1969B500AdB5c
- Place bets using RGC tokens
- Watch the multiplier rise in real-time
- Cash out before the crash to win
- Provably fair randomness
- Anti-whale protection
- Claim 1,000 RGC tokens
- Small POL fee (0.001)
- One claim per wallet
- Funded with 1M RGC
- Total Supply: 1 billion RGC
- Team Vesting: 24-month linear release
- Anti-whale limits: 2% max transaction/wallet
- Burnable & Pausable
- Trading controls
- Frontend: Next.js 15, React 19, TypeScript
- Styling: Tailwind CSS, Radix UI
- Blockchain: Polygon (POL), Ethers.js v6
- Smart Contracts: Solidity 0.8.20, OpenZeppelin v5
- Development: Hardhat, GitHub Actions
- Deployment: GitHub Pages (Static Export)
- Node.js 18+
- MetaMask wallet
- POL tokens for gas fees
# Clone the repository
git clone https://github.com/CF-LLC/RogueCoinGame.git
cd RogueCoinGame
# Install dependencies
npm install
# Start development server
npm run devOpen http://localhost:3000 in your browser.
# Build and export static files
npm run build
# The static files will be in the 'out' directory- Connect Wallet: Connect MetaMask to Polygon Mainnet
- Get RGC Tokens: Claim from airdrop or buy on exchanges
- Place Bet: Enter bet amount and click "Place Bet"
- Watch Multiplier: See the rocket fly and multiplier rise
- Cash Out: Click "Cash Out" before the crash to win!
Fully responsive design works on:
- Desktop browsers
- Mobile web browsers
- MetaMask mobile app
- Smart Contract Audited: Professional tokenomics
- ReentrancyGuard: Protection against reentrancy attacks
- Pausable Contracts: Emergency stop functionality
- Access Controls: Owner-only administrative functions
- Rate Limiting: Anti-spam protection
- Chain ID: 137
- RPC URL: https://polygon-rpc.com
- Explorer: https://polygonscan.com
- Currency: POL
The app will automatically prompt you to add Polygon network.
- Team (Vested): 200M RGC (20%) - 24 months
- Liquidity: 300M RGC (30%)
- Community: 250M RGC (25%)
- Airdrop: 150M RGC (15%)
- Game Treasury: 100M RGC (10%)
Create a .env.local file:
# Contract addresses are already configured for mainnet
NEXT_PUBLIC_RGC_TOKEN_ADDRESS=0x0708a9DD95F191711221D5D0BC8B12B2C5b7bC5e
NEXT_PUBLIC_AIRDROP_ADDRESS=0xd2D45bdf0e4C8393E9BC57bAd363b01Eaeb377f9
NEXT_PUBLIC_CRASH_GAME_ADDRESS=0xf8f6F8f1c656DbD0540C26B3Bfa1969B500AdB5c
NEXT_PUBLIC_CHAIN_ID=137npm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run compile # Compile smart contracts
npm run test # Run contract tests
npm run check-config # Check contract configuration
npm run deploy:polygon # Deploy contracts to Polygon mainnet# Compile contracts
npm run compile
# Run tests
npm run test
```bash
# Deploy to Polygon mainnet
npm run deploy:polygon
## ๐ Deployment
### Automatic Deployment
- **GitHub Actions** automatically deploys to GitHub Pages
- **Trigger:** Push to `main` branch
- **URL:** https://cf-llc.github.io/RogueCoinGame/
### Manual Deployment
```bash
# Build static export
npm run build
# Deploy the 'out' directory to your hosting provider
- Live App: https://cf-llc.github.io/RogueCoinGame/
- RGC Token: https://polygonscan.com/address/0x0708a9DD95F191711221D5D0BC8B12B2C5b7bC5e
- Airdrop: https://polygonscan.com/address/0xd2D45bdf0e4C8393E9BC57bAd363b01Eaeb377f9
- Game Contract: https://polygonscan.com/address/0xf8f6F8f1c656DbD0540C26B3Bfa1969B500AdB5c
- Issues: GitHub Issues
- Twitter: @RogueCoinGame
- Telegram: RogueCoin Community
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.