Skip to content

NFT gaming platform: players contribute ETH to compete for NFTs, climbing contribution-based bands to boost winning chances. Creators benefit from increased exposure and potential profits. Fair, transparent, and engaging—transforming NFT sales into thrilling games. https://ethglobal.com/showcase/crypto-spiinz-iavah

Notifications You must be signed in to change notification settings

apeoverflow/nft-roulette-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Description

Our platform revolutionizes NFT gaming and sales by blending excitement, strategy, and fairness. Players compete for top-tier NFTs by contributing ETH, with a unique system that determines minimum contributions based on total funds and the NFT's floor price. Contributions increase dynamically as the game progresses, offering opportunities for everyone—from casual participants to high-stakes players.

How It Works

Minimum Contributions:

Start at just 0.01 ETH and increase non-linearly as the game develops. Contributions cap at 8% of the NFT’s floor price, ensuring accessibility for all budgets.

Band System:

Players are grouped into tiers (Bands) based on their contributions relative to the NFT’s floor price. Higher bands offer better odds of winning, incentivizing strategic play. Leveling Up: Players can boost their chances by contributing more ETH to climb bands, adding an element of progression and competition.

Winner Selection:

Using Chainlink VRF for randomness, the platform ensures a fair and transparent process. A band is chosen, and a random winner is selected from within it.

Game Outcomes Normal Ending:

At the set duration, a winner is chosen, the NFT is transferred, and the creator receives the proceeds. Cancellation: If the game doesn’t attract enough participants, the creator can cancel it, ensuring refunds for contributors.

Player Refunds:

Players can reclaim their contributions if the game is canceled.

Why It Stands Out

Dynamic Gameplay:

Keeps participants engaged and rewards both strategy and chance.

Fair and Transparent:

Blockchain technology ensures trust in every transaction and decision.

Maximized Profits for Creators:

Unique gameplay mechanics often exceed standard marketplace floor prices.

Seamless User Experience:

Easy setup for creators and engaging gameplay for participants. This platform redefines NFT interactions, transforming them into thrilling, fair, and rewarding experiences for gamers and creators alike. Whether you're looking to win coveted NFTs or list your digital assets with a twist, our platform offers a unique and innovative solution.

For Creators

NFT creators can list their assets as part of a thrilling game experience instead of traditional marketplace listings. This format drives buzz and engagement, often leading to contributions exceeding the NFT’s floor price. The process is trustless, secure, and seamless, with automatic payouts at the game’s conclusion.


How it's Made

Technologies Used

Chainlink VRF:

For provably fair random winner selection. Chainlink Data Feeds: For real-time ETH price conversions.

Sepolia Testnet:

Smart contract deployment and testing environment.

Foundry Framework:

For creating and testing smart contracts.

React:

Frontend framework for dynamic and responsive UI.

wagmi:

For seamless smart contract interactions.

Dynamic Wallet:

Web3 wallet integrated with wagmi for smooth user experience.

How We Built It

The project’s smart contracts were developed and tested using Foundry, incorporating Chainlink VRF for randomness in winner selection and Chainlink Data Feeds for dynamic pricing. Contracts are deployed on the Sepolia Testnet, ensuring a realistic and flexible testing environment.

On the frontend, we used React to create an intuitive UI. Dynamic Wallet, integrated with wagmi, provides seamless Web3 wallet functionality, enabling users to connect, contribute ETH, and interact with contracts effortlessly.

Notable Hacks: We implemented a gas-optimized non-linear algorithm for band progression to ensure fairness without heavy on-chain computations. Synchronizing Chainlink VRF and Data Feeds in a single contract was a technical challenge, but precise orchestration ensured smooth gameplay mechanics.

The smart contract has been tested thoroughly to ensure the game play works as expected with mock smart contracts for all scenarios of gameplaya.

I have run game simulation tests to check that the band system works (users that contribute more and end up in higher bands win more) over a large number of games. I have also tested that the minimum contribution increases to a fixed percentage based point as the game's funds increase.



Sepolia Deployed Contract Address: 0x27013320E8e71995609240D61914E2f25437181c


How Our NFT Game Works: From Start to Finish

Hey NFT gamers! Let's dive into how our game really works under the hood. It's pretty clever, and understanding it might just give you an edge!

Getting Started: Minimum Contributions

Entry starts at 0.01 ETH (about $25 at $2500/ETH) for all games, regardless of floor price. This minimum increases as the game progresses, based on total funds and the NFT's floor price. The increase is non-linear, with the most significant jumps happening in the early stages of funding.

Min contribution algorithm

Examples of how the minimum could range in different games:

  1. 0.2 ETH floor price game: 0.01 ETH to 0.016 ETH
  2. 0.8 ETH floor price game: 0.01 ETH to 0.064 ETH
  3. ...
  4. 6.8 ETH floor price game: 0.01 ETH to 0.544 ETH
  5. 7.4 ETH floor price game: 0.01 ETH to 0.592 ETH
  6. 8.0 ETH floor price game: 0.01 ETH to 0.640 ETH

Once the minimum contribution reaches 8% of the floor price it doesn't increase further

So, whether you're dipping your toes in the kiddie pool or diving into the deep end, there's a game for every budget! The bigger the NFT, the bigger the potential minimum buy-in. But hey, no risk, no reward, right?

The Band System: Your Ticket to the Big Leagues

You're not just playing, you're climbing the ladder of success! Your contribution puts you in a "band":

  1. Band 1: 0% - 19% of floor price (Hey, we all start somewhere!)
  2. Band 2: 20% - 29% of floor price (Now we're cooking!)
  3. ...
  4. Band 10: Over 120% of floor price (Whoa there, high roller!)

Higher bands = better winning chances! It's like buying a first-class ticket to Winnersville, population: hopefully you!

Leveling Up: Because Who Doesn't Love a Good Upgrade?

Stuck in Band 3? Feeling like a small fish in a big pond? Fear not! You can beef up your position faster than you can say "to the moon":

  • Started in Band 3? You can climb to Band 7 with a top-up. It's like giving your chances a turbo boost!
  • Feeling lucky? Push into Band 10 and strut your stuff at the top.
  • See others making moves? Don't just sit there - level up and show 'em who's boss!

How Winners Are Chosen: May the Odds Be Ever in Your Favor

  1. We pick a winning band. (Higher bands are like VIP passes - better odds, baby!)
  2. Then we randomly choose a winner from that band. (Even underdogs have their day!)

So if you're in Band 10, you're not just playing the game, you're practically running it. But hey, even the little guys can win big - that's the beauty of chance!

Game Tax: Keeping the Lights On (and Maybe Buying You Dinner Later)

We skim a little off the top, but it's all for a good cause (you!):

  • Treasury Fee: 3% (Think of it as an investment in your future fun)
  • Developer Fee: 2% (Gotta keep those hamsters running in their wheels)

Don't worry, this only happens when the game wraps up. During play, every wei is working hard for you!

How the Game Ends: All Good Things Must Come to an End (But Some End Better Than Others)

Three ways this rollercoaster can stop:

  1. Normal Ending: The creator's set game duration says "time's up!", we consult our crystal ball (aka secure random number generator), and voila! Someone's walking away with a shiny new NFT, and the game creator hopefully gets paid more for their NFT than they would selling it at the floor value!! 🎉

  2. Game Cancellation: Something went sideways? Few players joined the game? 😪 No worries! The creator can pull the plug after the game duration, the NFT goes home, and you get a refund. It's like a fire drill, but for your wallet.

  3. Player Refunds: If the game gets cancelled, don't just sit there - claim your share! It's like getting money back on a sweater you never wore, except it's ETH and you had fun not wearing it.

Why We Do This: Method to Our Madness

  • It's dynamic: Because who doesn't love a plot twist?
  • It's fair: Early bird? Night owl? We love you both!
  • It supports the ecosystem: Small fees today, big fun tomorrow!

Pro Tips: Become the Smarty Pants of NFT Gaming

  1. Start where you're comfy, then ride the wave.
  2. Feeling the heat? Crank it up to 11 (or at least Band 9).
  3. Band 5 and up? You're not just playing, you're competing.
  4. Early bird gets the lower minimum contribution worm.
  5. Game cancelled? Claim that refund like it's the last slice of pizza!

contribution % floor price and bands graph

Remember, in this game you're not climbing a corporate ladder, you're scaling the bands of chance! Where will you land? Only time (and your ETH) will tell!

This isn't just a game, it's a thrill ride with an NFT cherry on top. So insert your ETH, strap in, and let's see if you've got what it takes to win these NFTs! May your contributions be mighty and your bands be high!


Why List Your NFT With Us: Turn Your Digital Art into a Thrilling Game!

why list with us

Hey there, NFT creator extraordinaire! 👋 Got a prized digital asset you're looking to sell? Forget the usual marketplaces – let's turn your NFT sale into an event people will be buzzing about! Here's why you should list your NFT with us:

1. Maximize Your Profits 💰

  • Our unique game format often results in total contributions exceeding the floor price. Ka-ching!
  • The excitement of the game can drive up interest and potentially the final sale price.

2. Generate Buzz and Exposure 🎉

  • Your NFT becomes the star of its own game, attracting attention from our entire user base.
  • Players share games to bring in friends, amplifying your NFT's visibility.

3. Engage with Your Community 🤝

  • Foster a sense of excitement and participation around your work.
  • Build a stronger connection with your audience as they compete for your NFT.

4. Fair and Transparent Process 🔍

  • Our smart contract ensures a trustless, automated sale process.
  • Chainlink VRF integration guarantees provably fair winner selection.

5. Flexible Pricing Strategy 📊

  • Set your floor price, and watch as the game dynamics potentially drive the value higher.
  • The band system encourages higher contributions, possibly exceeding your expectations.

6. Quick and Easy Setup ⚡

  • List your NFT in minutes – we handle all the game mechanics.
  • No need for complex auction setups or long-running sales.

7. Tap into a New Market 🌟

  • Reach gamers and crypto enthusiasts who might not frequent traditional NFT marketplaces.
  • Attract buyers who enjoy the thrill of our unique game format.

8. Security First 🛡️

  • Your NFT is held securely in the smart contract until the game concludes.
  • Automatic transfer to the winner or back to you if the game is cancelled.

9. Instant Payout 💸

  • Receive your earnings immediately when the game ends.

10. Be Part of Innovation 🚀

  • Position yourself at the forefront of NFT sales innovation.
  • Show your audience you're not just creating art, but experiences!

Ready to turn your NFT sale into the hottest ticket in town? List with us and watch the magic happen! Who knows, your NFT might just become the talk of the crypto world. Let's make your digital masterpiece the prize everyone's dying to win! 🏆✨

About

NFT gaming platform: players contribute ETH to compete for NFTs, climbing contribution-based bands to boost winning chances. Creators benefit from increased exposure and potential profits. Fair, transparent, and engaging—transforming NFT sales into thrilling games. https://ethglobal.com/showcase/crypto-spiinz-iavah

Resources

Stars

Watchers

Forks