project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5

MayBee🐝

MayBee is a Telegram Mini App that lets you make fun wagers with friends or strangers. Using Telegram provides a simple and intuitive experience, so you can place your bets quickly and easily. Join the buzz and start betting in your favorite hive! 🐝✨

MayBee🐝

Created At

ETHGlobal Singapore

Winner of

Flow - Most Killer App Potential 1st place

Project Description

MayBee is a Telegram Mini App that brings a seamless betting experience to users. By integrating with Telegram and utilizing the Flow network, MayBee provides a quick and intuitive way to place wagers on trending topics.

Users can engage with the app either through the Telegram Bot @maybee01_bot or directly via the MayBee App. Within the app, users can explore all active wagers and place bets using Flow tokens.

To help users stay up-to-date with the most popular wagers, we've created two dedicated channels highlighting the hottest topics over the last hour and 24 hours. MayBee aims to make betting more accessible and engaging by leveraging the power of decentralized technology and the convenience of Telegram.

How it's Made

MayBee is a decentralized prediction market platform built on the Flow blockchain, leveraging modern web technologies and blockchain integration for a seamless user experience.

Frontend Architecture: The application is built using Next.js, with TypeScript for enhanced type safety and code reliability. The UI is styled using Tailwind CSS, ensuring responsive and consistent design across devices. State management is handled efficiently through React hooks, providing a smooth and reactive user interface.

Key components like Button, Card, and Spinner are designed for reusability, promoting a consistent look and feel throughout the application. Client-side navigation is implemented using Next.js routing, ensuring fast and fluid transitions between pages.

Authentication and Blockchain Integration: User authentication and wallet integration are managed by Dynamic, offering a secure and user-friendly sign-in process that includes Telegram login. For Ethereum wallet interactions, the app utilizes WagmiProvider, enabling seamless connection with various Ethereum-based wallets.

Telegram Bot Integration: A custom Telegram bot, built with the Telegraf library, serves as a bridge between the platform and users. The bot initializes with a Telegram token and uses JWT for secure authentication. It offers interactive features such as welcome messages with inline buttons for easy navigation to the web app, allowing users to create or join markets directly from Telegram.

The bot maintains user engagement by periodically updating channel topics with the latest "Hottest 1H" and "Hottest 24H" markets, complete with clickable links. For testing and manual updates, a 'testmessage' command is available. Security is ensured through custom Telegram hash generation.

Smart Contract: The core functionality of MayBee is powered by a smart contract deployed on the Flow network. This contract, written in Solidity, manages the creation and resolution of prediction markets, as well as user bets and reward distribution. Key features of the smart contract include:

  1. Market creation and management
  2. Bet placement and tracking
  3. Market resolution by authorized admins
  4. Reward calculation and distribution Comprehensive data retrieval functions for market information and user bets The contract implements several security measures, including role-based access control for market administration and resolution, and checks to ensure markets are open when bets are placed.
background image mobile

Join the mailing list

Get the latest news and updates