LuckyDapp by LuckyDappTeam - Your luck starts here

LuckyDappLogo

Project Name: LuckyDapp

Project Track: DeFi

Team Name: LuckyDappTeam

Team Member(s): @WALLY

DevPost Project Link: LuckyDapp - Your luck starts here | Devpost


:dart:Project Goal:

To create a secure decentralized app that introduces a new level of trust and transparency in the DeFi and gaming spaces on the TRON ecosystem through reliable price data from oracles and verifiable randomness.

By leveraging ChainLink VRF and ChainLink Price Oracle, we aim to establish a platform where users can engage in a Prediction Market and a variety of exciting games & modes, all using real-time price data (DeFi) and providing provably fair outcomes ā€” an innovation currently lacking in the TRON space.

This project will empower users to participate with confidence, knowing that:

  • all outcomes of the Prediction Market are reliable & the price data is real and trustworthy;
  • all game results are generated in a trustless manner.

All of this fosters a vibrant community centered around fairness and transparency in both DeFi and gaming.

:link:Project Value:

This project utilizes cutting-edge blockchain technologies to create a transparent, secure, and trustless environment for users to engage in a Prediction Market (DeFi) and a variety of games where they can try their luck.

Integrations:

  • Chainlink Data (Oracle):
    This integration enables accesing real-time data directly from multiple trusted sources. By utilizing Chainlinkā€™s decentralized oracles, we can ensure that users receive the most up-to-date and trustworthy critical information ā€” such as prices, statistics, etc. This creates a robust environment for delivering fair and engaging experiences.

  • ChainLink VRF:
    This integration provides verifiable randomness, ensuring that game outcomes are fair and trustworthy. By utilizing ChainLinkā€™s VRF, we can guarantee that results are generated in a secure and tamper-proof manner.

  • LayerZero:
    A protocol designed to facilitate communication between different blockchains, aiming to enhance interoperability. Its main purpose is to enable seamless cross-chain transactions and interactions, allowing decentralized applications (dApps) to operate across multiple networks without friction.
    In this project, LayerZero is used to bring Oracle Prices & VRF responses to the TRON chain from the chains where the ChainLink Oracle & VRF coordinator are deployed.
    By utilizing LayerZero, the project demonstrates the valuable cross-chain interoperability between EVM-compatible networks and TRON, creating numerous opportunities for innovation within the TRON ecosystem.

  • TronGrid API:
    This powerful API is utilized to access blockchain data from the TRON network, including both mainnet and testnets. It facilitates the retrieval of smart contract historical data and real-time event listening, ensuring access to the most accurate and up-to-date information available from the blockchain for project development.

Through these strategic integrations, the project aims to create a robust and engaging environment for users in the TRON network, setting a new standard for trust and transparency in DeFi and gaming.


:star2: Project Info:

Features of LuckyDapp:

  • Cross-platform design: A responsive interface for easy access on both mobile devices and PCs.

  • Wallet integration: Connect your TronLink wallet easily for secure transactions and a smooth user experience.

  • $LUCKY Coin (TRC20): The token for participating in the Prediction Market (Bull or Bear), as well as in various games. It will offer utilities like staking and will be listed on DEXes following the mainnet launch.

  • Faucet: Claim $LUCKY tokens during the testnet phase to start using the platform, ensuring accessibility for everyone.

  • Price Oracles: The outcomes in the Bull or Bear prediction market are ensured by Chainlink Data Feeds, which aggregate data from multiple sources through a decentralized network of independent node operators. This decentralized approach guarantees that asset prices are fair and trustworthy for participants, providing a reliable foundation for all predictions.

  • Provable fairness with VRF: All relevant game outcomes are generated securely using ChainLinkā€™s Verifiable Random Function (VRF), ensuring trust in results.

  • Variety of offerings: Engage in multiple exciting options designed for fairness:

    • DeFi Prediction Market: Participate in ā€œBull or Bearā€ to bet on the future price movement of an asset ā€” will it go up (Bull) or down (Bear)? Correct predictions double your bet, with outcomes guaranteed by Price Oracles.

    • Games with VRF Outcomes: Enjoy games such as Ticket Lottery, Coin Flip, Roll Dice, and Wheel of Fortune, all with outcomes determined by ChainLink VRF to ensure fairness;

      • Ticket Lottery: Buy tickets for a chance to win a prize pool;
      • Coin Flip: Bet on a virtual coin toss; correct guesses double your wager;
      • Roll Dice: Bet on the outcome of a virtual dice roll for a chance to win six times your bet;
      • Wheel of Fortune: Spin the wheel for a chance to win various prizes;
    • 1v1 Games: Challenge opponents in strategic games like ā€œTic Tac Toeā€, ensuring a competitive atmosphere.

  • Cross-chain capabilities with LayerZero: Facilitate seamless communication between the TRON network and other EVM-compatible chains, enhancing user experience and expanding possibilities.

  • Blockchain data access via TronGrid API: Utilize real-time data for smart contract interactions, ensuring accurate and up-to-date information.

  • User Experience:
    Users can engage with LuckyDapp with confidence, participating in a fair and transparent environment that combines DeFi and gaming. The platform emphasizes community building around trust and accountability, allowing participants to enjoy the Bull or Bear prediction market alongside various games.

Each feature is designed to be intuitive, making it easy for newcomers to join while providing depth for experienced users. With real-time updates, comprehensive game histories, and an informative FAQ section, participants are supported every step of the way.

Join the LuckyDapp community and explore a unique blend of DeFi and gaming like never before!

:globe_with_meridians: Project Website: https://luckydapp.netlify.app

:orange_book:Project Test Instructions:

  • Open the website.

  • Connect your TronLink wallet

  • Switch to Shasta Testnet Chain

  • Go to the Faucet page to claim some $LUCKY tokens, which are used for participating in prediction market and games. On this page you can also find a link to obtain TRX coins on the TRON Shasta Testnet, which are necessary for paying transaction fees.

  • Bull or Bear: :ox: / :bear:

    1. Navigate to the DeFi page and select ā€œBull or Bearā€;
    2. Select a market from the available list [BTC, ETH, etc] to specify which asset you want to bet on;
    3. The round page will show a progress timeline, allowing you to see the current stage of the round and the steps that have been completed;
    4. You can bet only during the prediction window (after the round has started and the initial price has been set). During this time, youā€™ll see a countdown timer and the settlement time, which indicates when the final price will be fetched. You will be presented with a question asking where the price will be at the settlement date compared to the initial price. You need to input your bet amount and make a prediction of either ā€œBullā€ or ā€œBear.ā€
    5. Once the prediction window closes, the round enters the phase of awaiting settlement. During this period, you cannot make any further predictions. When the settlement time arrives, the final price will be determined. At this point, you will be able to see the outcome of your prediction and check if you were correct.
    6. If your prediction was right, you can claim your rewards.
    7. Additionally, there is a ā€œRounds Historyā€ page that contains all past rounds, where users can open and view round details.
    8. An FAQ section is also included, providing helpful information about the game and its mechanics.
  • Ticket Lottery Game: :ticket:

    1. Navigate to the Games page and select ā€œTicket Lotteryā€;
    2. When you open the Ticket Lottery page, it will load the details of the last round, which may be active (running) or in another status, such as ended and waiting for the VRF response.
    3. The round page will also show a progress timeline, allowing you to see the current stage of the round and the steps that have been completed;
    4. You can only buy tickets for an active round, and a countdown timer will indicate how much time is left to participate.
    5. Select the number of tickets you wish to purchase (note that a maximum number of tickets allowed for each round will be specified on the page) and complete your purchase using $LUCKY tokens.
    6. After buying your tickets, wait for the timer to expire.
    7. Once the timer expires, the round will move to the next stage. If no one joined the round, it will simply close, and a new round will start. If you are the only participant, the round will finalize, and you will automatically receive your funds back in $LUCKY tokens. However, if there are multiple participants, the round will enter the VRF requesting phase, which may take some time. After the random number is obtained, the winner will be chosen, and they will receive 100% of the round pool automatically. Rest assured that if there is a significant delay in receiving the VRF response, participants will be able to claim back their funds.
    8. Additionally, there is a ā€œRounds Historyā€ page that contains all past rounds, where users can open and view round details.
    9. An FAQ section is also included, providing helpful information about the game and its mechanics.
  • Coin FlipšŸ„®:

    1. Navigate to the Games page and select ā€œCoin Flipā€.
    2. Choose the amount of $LUCKY tokens you wish to wager.
    3. Pick either ā€œHeadsā€ or ā€œTailsā€ as your prediction for the coin flip outcome.
    4. After confirming the transaction, you will be redirected to the game page where you can see the status of the game. You will need to wait for some time to receive a response to the VRF request and see the result. Rest assured that if there is a significant delay in receiving the VRF response, you will be able to claim back your funds.
    5. If your prediction matches the outcome (ā€œHeadsā€ or ā€œTailsā€), you will receive x2 amount of your bet to your wallet. If your prediction doesnā€™t match, you lose the amount wagered for that game.
    6. Additionally, there is a ā€œMy gamesā€ page that contains all your past games.
  • Roll Dice :game_die:: soon

  • Wheel of Fortune :ferris_wheel:: soon

  • Tic Tac Toe :x::o:: soon


:page_facing_up: Project Details:

___________ CLICK TO SHOW IMAGES ___________









:gear: Smart Contract links:

1. LuckyCoin ($LUCKY) TRC-20 token:

2. BullOrBear Prediction Market [DeFi]:

3. Ticket Lottery:


:gear: Milestone 2 - Deploy to TRON Mainnet:

1. LuckyCoin ($LUCKY) TRC-20 token:

2. BullOrBear Prediction Market [DeFi]:

3. Ticket Lottery:

4. CoinFlip:


:golf: Project Milestones:

  • :white_check_mark: Phase 1 (p.1): Research and analysis | Timeframe: August 12 ā”€ August 18

    • :heavy_check_mark: Formulate the concept of the Dapp
    • :heavy_check_mark: Analyze and study VRF/random numbers in Web3, focusing on available providers like ChainLink, Gelato, and Supra.
    • :heavy_check_mark: Select ChainLink as the best fit for our requirements and conduct tests on ChainLink VRF.
  • :white_check_mark: Phase 1 (p.2): Research and analysis | Timeframe: August 19 ā”€ August 24

    • :heavy_check_mark: Analyze and study Price Oracles in Web3, focusing on available providers;
    • :heavy_check_mark: Select ChainLink Data Oracle as the most suitable data oracle for our requirements. Learn how to integrate and test.
  • :white_check_mark: Phase 2: Cross-Chain messaging research | Timeframe: August 25 ā”€ September 1

    • :heavy_check_mark: Research cross-chain messaging to integrate ChainLink Price Oracle & VRF into the TRON network, examining protocols like LayerZero and Wormhole.
    • :heavy_check_mark: Choose LayerZero as the optimal protocol for our project, ensuring it supports TRON as both a source and destination chain.
    • :heavy_check_mark: Study LayerZero documentation and test interoperability between the TRON testnet and other EVM testnets by sending test messages.
  • :white_check_mark: Phase 3: Development of core logic | Timeframe: September 2 ā”€ September 7

    • :heavy_check_mark: Develop logic for sending Price Oracle & VRF requests from TRON to the EVM chain where the ChainLink Oracle & VRF coordinator are deployed, using LayerZero.
    • :heavy_check_mark: Create logic for returning the generated number from the EVM chain back to the TRON chain via LayerZero.
    • :heavy_check_mark: Test and verify the smooth operation of Price Oracle & VRF request processing before integrating it into our project.
  • :white_check_mark: Phase 4: Token deployment and frontend development | Timeframe: September 8 ā”€ September 15

    • :heavy_check_mark: Create and deploy the TRC20 token, $LUCKY, for participating in various activities and making price predictions.
    • :heavy_check_mark: Build the app frontend and integrate TronLink wallet connection.
    • :heavy_check_mark: Create a Faucet page for users to claim free $LUCKY tokens for testing.
  • :white_check_mark: Phase 5: Prepare first version of ā€œBull or Bearā€ prediction market [DeFi mode] | Timeframe: September 16 ā”€ September 25

    • :heavy_check_mark: Introduce Bull or Bear, a DeFi product that allows participants to predict price movements of specific assets.
    • :heavy_check_mark: Create the logic for the first version of the Bull or Bear contract, implementing the core functionalities and integrating a ChainLink oracle to ensure the accuracy and reliability of predictions.
    • :heavy_check_mark: Integrate $LUCKY token for making predictions.
    • :heavy_check_mark: Create a progress timeline on the rounds page to track the current stage of each round.
    • :heavy_check_mark: Develop a rounds history page to view all past rounds.
  • :white_check_mark: Phase 6: Ticket Lottery development | Timeframe: September 26 ā”€ October 5

    • :heavy_check_mark: Develop the Ticket Lottery as the first game mode, including interaction with the lottery contract (approve $LUCKY, buy tickets, etc.).
    • :heavy_check_mark: Update Lottery contract to allow users to claim back $LUCKY tokens if the Price Oracle & VRF response exceeds the timeout.
    • :heavy_check_mark: Create a progress timeline on the rounds page to track the current stage of each round.
    • :heavy_check_mark: Develop a rounds history page to view all past rounds.
  • :white_check_mark: Phase 7: Backend integration and testing | Timeframe: October 6 ā”€ October 9

    • :heavy_check_mark: Run backend cron processes with wallet operators to manage round expirations, including Oracle Price & VRF requests, closing rounds without participants, finalizing rounds due to timeout, etc.
  • :hammer_and_wrench: Phase 8: Add new VRF Games (In Progress) | Timeframe: October 9 ā”€ Ongoing

    • Develop additional games:
      • :white_check_mark: Coin Flip;
      • :gear:Roll Dice;
      • :gear:Wheel of Fortune;
  • :white_check_mark: Phase 9: Improve Prediction Market mode ā€œBull or Bearā€ (In Progress) | Timeframe: October 9 ā”€ Ongoing

    • :heavy_check_mark: Introduce new types of markets for predictions, including fiat currencies :euro: .
    • :heavy_check_mark: Continuously add more assets (crypto, fiat, etc.) for predictions by integrating more price feeds from Chainlink or integrating different oracles.
  • :hammer_and_wrench: Phase 10: Allow users to play games and make predictions using tokens other than $LUCKY. (In Progress) | Timeframe: October 25 ā”€ Ongoing

    • :gear:TRC20 tokens:
      • USDT;
      • USDD;
      • and more
    • :gear:TRX (native token):
  • :soon: Next steps: | Timeframe: October 9 ā”€ Ongoing

    • :heavy_check_mark: Update UI for improved user experience, ensuring seamless navigation across all features.
    • :arrow_right: Optimize smart contracts for efficiency.
    • :arrow_right: Introduce a leaderboard for top participants in each game / mode.
    • :heavy_check_mark: Create a comprehensive statistics page to track various metrics, includind unique players across all modes and games etc.
    • :heavy_check_mark: Create a ā€œMy historyā€ section to allow users to view rounds they participated in for both the Prediction Market and VRF games.
    • :arrow_right: Transform the app and make the $LUCKY token cross-chain, allowing users from EVM chains to participate alongside users from TRON.
  • :soon: After mainnet launch:

    • :arrow_right: Collaborate with other projects to enhance ecosystem partnerships and expand user reach.
    • etc.
37 Likes

New information will appear here soon ā€¦

2 Likes

trying to understand, and no website

3 Likes

This is mixing up to my understanding, so we should call this a betting or gambling platform?

2 Likes

Welcome to the Hackathon of season 7, this is very interesting, please tell me are you going to apply any marketing strategies to get users to your platform, thank you

1 Like

Welcome to Hackathon Season 7, after a thorough read I see this aims to create a secure and transparent decentralized application that combines the realms of DeFi and gaming within the TRON ecosystem. What specific security protocols will be implemented to safeguard user funds and data?

1 Like

Welcome to the hackathon season 7, please can you simplifier what your project is about for a clear understanding

1 Like

Hi @Prince-Onscolo
I apologize for the delay in my response; Iā€™ve been busy finalizing the project. Thank you for your patience!

Iā€™ve updated the project info for LuckyDapp - a decentralized app that combines DeFi and gaming. You can find all the updated details above, including website and demo video.

In short:

LuckyDapp aims to create a secure platform on the TRON ecosystem, leveraging ChainLinkā€™s VRF and Price Oracle for reliable price data and provably fair outcomes in the Prediction Market and various games.
The goal is to foster a transparent and trustworthy environment for users, ensuring all outcomes are reliable and generated in a trustless manner.

If you have any questions, feel free to ask! Thank you for your interest!

Best,
LuckyDappTeam

3 Likes

Here are two questions about the ā€œBull or Bearā€ betting process on the DeFi page:

  1. What factors should a user consider when deciding whether to predict ā€œBullā€ or ā€œBearā€ for a specific asset during the betting window?

  2. How does the countdown timer and settlement time affect the userā€™s betting strategy and decision-making process?

2 Likes

alright thank you, will check

1 Like

Hi @Nweke-nature1.com.

Itā€™s important to clarify that LuckyDapp is not a betting or gambling platform.
Actually, LuckyDapp is designed specifically within the DeFi space and currently features a Prediction Market called ā€œBull or Bearā€, where users can predict price movements of crypto assets like BTC, ETH, TRX, MATIC, etc. (with plans to expand to fiat currencies, stock markets, and more).

It also includes various VRF games with outcomes determined by verifiable randomness.

This unique combination emphasizes trust, transparency, and community engagement within the decentralized finance ecosystem, positively impacting the TRON ecosystem.

Best,
LuckyDappTeam

LuckyDappLogo

3 Likes

Hi @ines_valerie .

Thank you for this question. In future plans, several strategies are outlined to enhance ecosystem partnerships and expand user reach. Here are some specific initiatives being considered:

  • Collaborations with existing projects on TRON:
    To enhance user reach and create valuable partnerships, there are several potential collaboration opportunities. [If any project wants to collaborate, letā€™s talk].
    Here are a few examples:

    • Listing on JustMoney Explorer: Collaborating with JustMoney Explorer - the best dApp explorer found in the TRON ecosystem, could significantly increase visibility. Kudos to the team for their great job!
      There may also be opportunities to integrate their token, $JM, as an option for participation in LuckyDapp future features;

    • Partnerships with TRON Energy markets / Tools: Analyzing the forum revealed several awesome projects that could be potential collaboration partners to reduce transaction costs for users;

  • Social media engagement: Actively participating in AMAs and Twitter Spaces will help highlight the project and its unique features. Showcasing integration with the LayerZero team will demonstrate the smooth cross-chain interoperability between EVM chains and TRON, positioning the project as a pioneer in this area and boosting social media presence;

  • Highlighting ChainLink integrations: With the integration of ChainLinkā€™s Price Feeds and VRF, seeking listings on ecosystem dApps directories will enhance credibility and attract users interested in reliable and innovative DeFi solutions.

Implementing these strategies aims to create a strong user base and establish LuckyDapp as a significant player in the TRON ecosystem.

Best,
LuckyDappTeam

LuckyDappLogo

4 Likes

Hi @manfred_jr .

Yes, you understand totally correctly the goal of LuckyDapp.
Iā€™ll briefly discuss the security protocols to safeguard user funds and data for both the DeFi Prediction Market and the gaming features to give you a comprehensive overview:

  • DeFi Prediction Market:

    In the Prediction Market, users can make ā€œBull or Bearā€ predictions based on real-time data. The platform leverages ChainLink Data Feeds, which are trusted oracles ensuring that all price data is accurate and tamper-proof. The outcomes of predictions are fully verifiable on-chain, allowing users to confirm the results independently. This integration provides transparency and reliability.

  • VRF Games features:

    Regarding the gaming aspect, LuckyDapp utilizes ChainLinkā€™s Verifiable Random Function (VRF), a leading provider of verifiable randomness in Web3. This means that winners in games, such as the Ticket Lottery, are selected in a completely random manner, which users can also verify on-chain. This guarantees fairness and ensures that all outcomes are determined without bias.

  • Cross-Chain security & User protection:

    In both cases, ChainLink features are integrated into TRON using LayerZero, a cross-chain messaging protocol. This not only enhances interoperability but also ensures security. Users can be assured that if there are any issues with the delivery of cross-messages to or from TRON, or if there is a timeout in response, the smart contract logic is designed to refund their funds, thereby safeguarding their investments.

Overall, these security measures aim to create a robust and trustworthy environment for all users on the LuckyDapp platform.

Best,
LuckyDappTeam

LuckyDappLogo

4 Likes

Hi @Chukseucharia .

Thank you for your question. At the time you wrote this, the project details were still being finalized, but now all the information is available.
For a better understanding, you can read the "Project Test Instructions" section or watch the video demo: https://www.youtube.com/watch?v=2ztfrP1ZVBc

In simpler terms:

LuckyDapp is a decentralized platform within the TRON ecosystem that combines elements of DeFi and gaming.

  • DeFi (Prediction Market): Users can predict the price movements (Bullish or Bearish) of cryptocurrencies like BTC, ETH, TRX, MATIC, etc. If their predictions are correct, they can claim the reward based on their stakes.

  • VRF Games: The platform also includes games, where outcomes are determined through verifiable randomness, ensuring fair play.
    For example, thereā€™s a Ticket lottery game where participants buy tickets during the buying period. At the end of the round, one winner is selected in a random manner, generated with VRF, and receives the entire prize pool.

If you try it, feedback would be appreciated. :pray:

More updates coming soon.

Best,
LuckyDappTeam

LuckyDappLogo

3 Likes

Hi @Smart1 .

  1. Deciding between ā€œBullā€ or ā€œBearā€ is ultimately up to the user. One important factor to consider is market trends: understanding whether the market is bullish or bearish overall can guide their decision.
    Additionally, personal risk tolerance is crucial: users should consider their own risk appetite and investment strategy when making their predictions.

  2. Iā€™m not quite sure what you meant by this question. The countdown timer simply shows how much time is left until the prediction period closes or the settlement time arrives.
    I donā€™t know if you checked the website, but below, Iā€™ve attached an image of how the countdown timer looks on the platform.

Best,
LuckyDappTeam

LuckyDappLogo

Welcome to hackathon S7. I understand that users can participate in the prediction market to predict price movements of all those crypto you mentioned. Will your platform available on mobile devices? If not, Are they any plan for mobile App, because I believe new users can quickly come in to predict in other to try luck.

1 Like

Thanks for the clarity, keeping fingers crossed :crossed_fingers:t2: as to how this fares as Hackathon progresses, goodluck on everything!

1 Like

Hi @Relate101

LuckyDapp is fully responsive, allowing access from any device, including mobile devices. Users can enjoy the platform seamlessly on their smartphones or tablets.

If youā€™re asking about a native mobile application for Android or iOS, there are currently no plans for that, but it could be considered in the future. At this stage, the responsive web app is believed to provide the necessary functionality and user experience without the need for a separate native app.

Iā€™ve attached few images of how the web app looks on a mobile device for your reference.

==============================================

Best,
LuckyDappTeam

LuckyDappLogo

5 Likes

Thank you for the kind words @manfred_jr ! Support means a lot. Best of luck with everything on your end too!

Best,
LuckyDappTeam

LuckyDappLogo

2 Likes

Alright thanks for this clarification sir. I wish you good luck

3 Likes