Skip to content

Conversation

Fardeen26
Copy link

@Fardeen26 Fardeen26 commented Sep 25, 2025

Deployed link: https://betmon.vercel.app/

BatMon Game - Decentralized Dice Betting on Monad Blockchain

NOTE: I REMOVED THE SWAPPING FUNCTIONALITY

🎲 What is BatMon Game?

BatMon Game is a decentralized dice betting application built on the Monad blockchain. It's a simple yet engaging Web3 game where you bet on dice rolls using cryptocurrency, with complete transparency and fairness guaranteed by blockchain technology.

🚀 How It Works

Simple Gameplay:

  1. Connect Your Wallet - Link your MetaMask wallet to get started
  2. Choose Your Number - Pick any number from 1 to 6
  3. Set Your Bet - Enter how much MON (Monad's native token) you want to bet (between 0.001 and 1.0 MON)
  4. Roll the Dice - Click the roll button and watch the magic happen
  5. Win or Lose - If the dice matches your number, you win double your bet!

💱 Advanced Token Swapping Integration

The Winning Edge: When you win, BatMon Game doesn't just give you more MON tokens. Instead, it offers a sophisticated token swap experience powered by 0x Protocol integration.

Over-Engineered Swap Features:

  • Real-time Price Discovery - Live conversion rates fetched directly from 0x's decentralized exchange network
  • Seamless UX Flow - Beautiful modal dialog appears instantly when you win, showing exact USDC amounts you'll receive
  • Gas-Optimized Transactions - Smart gas estimation and transaction batching for efficient swaps
  • Multi-token Support - Built with extensibility in mind for future token pairs
  • Slippage Protection - Advanced price impact calculations to protect users from market volatility

The swap functionality is designed to feel like magic - you win MON, and with one click, it transforms into stable USDC in your wallet. No complex DeFi interfaces, no confusing steps, just pure Web3 convenience.

💡 Why BatMon Game Stands Out

Fair & Transparent:

  • All dice rolls use on-chain randomness for complete fairness
  • Every transaction recorded on blockchain for full transparency
  • Smart contracts handle everything automatically

User-Friendly:

  • Clean, modern interface that's easy to understand
  • Real-time updates and smooth animations
  • Built-in wallet connection with no complicated setup

Flexible Betting:

  • Choose your own bet amount instead of fixed amounts
  • Win big or play small - it's your choice

🛠️ Technical Excellence

Built on Monad Blockchain:

  • Lightning-fast transactions (10,000 TPS)
  • Low fees and quick confirmations
  • EVM-compatible for familiar development tools

Smart Contract Security:

  • OpenZeppelin's battle-tested security patterns
  • Reentrancy protection and owner controls
  • Comprehensive event logging for transparency

Modern Web3 Stack:

  • RainbowKit for seamless wallet connection
  • Wagmi for reliable blockchain interactions
  • 0x Protocol for enterprise-grade token swapping

Perfect For Hackathon Showcase

BatMon Game demonstrates how to over-engineer the swapping functionality by integrating complex DeFi protocols into a simple, user-friendly interface. The swap feature transforms a basic dice game into a sophisticated Web3 application that showcases advanced token exchange capabilities.

🔒 Safety & Security

  • All funds secured by smart contracts
  • No central authority can manipulate results
  • Open source code for full transparency
  • Testnet environment for safe experimentation

🌟 The Experience

BatMon Game combines the excitement of traditional gambling with cutting-edge blockchain technology. The over-engineered swap functionality makes winning feel even more rewarding - you don't just win tokens, you get a premium DeFi experience that converts your winnings into stable assets seamlessly.

Ready to experience the future of decentralized gaming with advanced token swapping? Connect your wallet and start playing on the Monad testnet today! 🎲💱✨

Copy link

socket-security bot commented Sep 25, 2025

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
[email protected] has Obfuscated code.

Confidence: 0.94

Location: Package overview

From: contracts/package-lock.jsonnpm/[email protected]npm/[email protected]

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant