Chance DAO's gameplay has already been introduced, and this article will briefly describe the gameplay from a contractual perspective.
Chance contract covered all rules of play.

📝The chance contract contains four core contracts:
1️⃣Chance
2️⃣ChanceDrop
3️⃣Chance Invite
4️⃣VRFv2Consumer
🧐Details of the rules can be found with How to Play
Based on ERC721 Chance contract be in charge of Minting and withdrawing the winning amount or rebate amount through this contract
Responsible for picking a winner at random, the random numbers are generated by oracles.The winning rule is a 90% probability of being elected in the current round of minted NFTs, 10% probability of being elected in the history round of minted NFTs.
This is an invitation promotion contract.You can set your own unique invitation code, When the invitee mints NFT within 30 days, there will be a 10% minting price awards to you.When you successfully invite 10 people, you can withdraw all your rebate rewards from Chance contract.
A contract that request true random numbers, you can check the details to see how it works: VRFv2Consumer contract.
👇Smart contract code has been uploaded to Github, please check it out!

