CZodiac Integrates Chainlink VRF and Keepers for End-to-End Automated Raffles
On 4/15/2022, we integrated Chainlink Verifiable Random Function (VRF) and Chainlink Keepers into the Lucky Rabbit Token (LRT) in order to create a tokenized, volume-based NFT raffle game. By doing so, we created a fun game where users can trade tokens while having the chance to win our next Rabbit NFT.
Through the combination of Chainlink VRF and Keepers, we were able to generate a positive community response while interacting in a gamified experience. The gathering of the community to participate in LRT in our first week has proven to be successful.
Key Results So Far
- $10,000+ in volume
- 100+ active users
- 4 NFT winners
- Countless hours saved through Keepers automation
The Continued Growth of CZodiac, Supported by Chainlink Services
Lucky Rabbit Token is the next level in automated raffles. The smart contracts are able to detect certain volume-based factors, automatically mint a yield-bearing CZodiac Rabbit NFT, and then airdrop it directly to a random winner. Playing the Lucky Rabbit raffle is as easy as going to https://cz.cash/ and joining the LRT ecosystem!
In short, the CZodiac raffle system tracks the number of CZUSD locked in liquidity due to LRT burns, and when a certain amount is locked, a randomized raffle will occur on-chain and a winner will get airdropped a Lucky Rabbit NFT.
However, in order to create a robust and automated raffle system, we needed the assistance of decentralized and open-source oracle services.
Securing True Randomness With Chainlink VRF
Chainlink VRF is an on-chain random number generator that enables independent users to verify the integrity of the random number given.
Chainlink VRF works by combining block data that is still unknown when the request is made with the oracle node’s pre-committed private key to generate both a random number and a cryptographic proof. The LuckyRabbitToken smart contract will only accept the random number input if it has a valid cryptographic proof, and the cryptographic proof can only be generated if the VRF process is tamper-proof. This helps provide users with automated and publicly verifiable proof directly on-chain that the randomness behind Rabbit NFTs is provably fair and cannot be tampered with or predicted by the oracle, outside entities, or the CZodiac team.
Expanding Automation With Chainlink Keepers
Chainlink Keepers is a secure smart contract automation service that triggers smart contracts based on predefined conditions.
Chainlink Keepers help automate the beginning and end of a given raffle round. There are two unique Keepers jobs that CZodiac is employing. First, Chainlink Keepers monitor the number of CZUSD locked in liquidity, and initiate Chainlink VRF once it reaches a preset threshold (i.e >$250 dollars in liquidity locked via LRT burns). Once the verifiably random number is generated, Chainlink Keepers triggers a transaction to send the lucky winner a Rabbit NFT.
A few critical features that make Chainlink Keepers the best solution on the market:
- High Uptime — Chainlink Keepers are run by the same professional DevOps teams that have an established on-chain performance history of providing high reliability to Chainlink Price Feeds during extreme network congestion and market volatility.
- Low Costs — Chainlink Keepers have several gas-optimizing features that lower the costs of automating maintenance tasks for users, including a rotating node selection process to prevent gas price auction wars and stabilize costs.
- Decentralized Execution — Chainlink leverages a decentralized and transparent pool of Keepers to help provide strong guarantees around secure contract automation, saving teams time and mitigating the risks around manual interventions or centralized servers.
- Expandable Computation — Chainlink Keepers perform off-chain computations and generate calldata verifiable by smart contracts, allowing developers to build advanced, trust-minimized dApps at lower costs.
Looking Ahead: Becoming a DeFi Bank for BSC Investors
The ability to select winners using verifiable randomness through an automated and gamified raffle experience is very unique and actually quite entertaining for everyone involved. However, the integration of Chainlink services into the CZodiac project will not stop with the Lucky Rabbit Token — it’s just a first small step towards a fully automated and trustless CZodiac.
“It’s clear that Web3 users care deeply about transparency and decentralization. By integrating Chainlink VRF and Keepers directly into our novel raffle system, CZodiac is taking steps to building innovative products that have a high standard of trust-minimization.” — xCrypto, CEO of CZodiac
Chainlink is the industry standard for building, accessing, and selling oracle services needed to power hybrid smart contracts on any blockchain. Chainlink oracle networks provide smart contracts with a way to reliably connect to any external API and leverage secure off-chain computations for enabling feature-rich applications. Chainlink currently secures tens of billions of dollars across DeFi, insurance, gaming, and other major industries, and offers global enterprises and leading data providers a universal gateway to all blockchains.
The Global Defi Investment Bank.
Passive income NFTs. Yields from assets backing CZUSD burn CZF, with profits building a rising price floor. See more at czodiac.com or trade CZodiac Official tokens and partner tokens directly on cz.cash.