ChimpySwap Integrates Chainlink VRF to Help Power the Mega Chimpy Game!

ChimpySwap
4 min readDec 8, 2021

We’re excited to announce that ChimpySwap — decentralized exchange (DEX) focused on offering a premier trading experience. — has integrated Chainlink Verifiable Random Function (VRF) on the Binance Smart Chain mainnet. By integrating the industry-leading decentralized oracle network, we now have access to a tamper-proof and auditable source of randomness needed to generate the winning combination of random numbers, that is used to dictate the Mega Chimpy tickets with a prize. Ultimately this creates a more exciting, transparent, and fraud-proof user experience, as users can be sure that no one is manipulating the results of the Mega Chimpy draw and that the prizes are really distributed to the real winners!

By this time you may be wondering what you need to do to win the Mega Chimpy Game and receive it’s massive prize! So let’s move on to details:
Mega Chimpy consists of players buying tickets, with 5 numbers and 2 chimpies (that you need to choose from the 50 available and from the 9 available, respectively), and at the end of the week by Friday, the ticket sale closes and a winning combination is generated with the help of ChainLink VRF, to ensure complete randomness. After that, the players are able to claim their ticket rewards (if they contain any)!

In order to make possible the random number generation for each of the numbers of the winning combination, we need access to a secure random number generator (RNG) that any user could independently audit. However, RNG solutions for smart contracts require several security considerations to prevent manipulation and ensure system integrity. For instance, RNG solutions derived from blockchain data like block hashes can be exploited by miners/validators, while off-chain RNG solutions derived from off-chain APIs are opaque and don’t provide users with definitive proof about the integrity of the process.

After reviewing various solutions, we selected Chainlink VRF because it’s based on cutting-edge academic research, supported by a time-tested oracle network, and secured through the generation and on-chain verification of cryptographic proofs that prove the integrity of each random number supplied to smart contracts.

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 ChimpySwap 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 provides our users with automated and verifiable assurances directly on-chain that Mega Chimpy Game is provably fair and was not tampered with by the oracle, outside entities, or the ChimpySwap team.

In the future, ChimpySwap Team is planning to integrate the ChainLink Keepers in order to make Mega Chimpy completly autonomous!
In a near future ChainLink VRF will be integrated into the NFT Sale smart contract as ChimpySwap will have a sale of the first native ChimpySwap NFT’s and for the ticket purchase, to claim the NFTs, there is the need to ensure that everyone gets a completly random NFT to ensure it’s fair distribution. After that the NFT Marketplace will open so you can trade your NFT’s!
The Mega Chimpy Game will be present in more networks when ChimpySwap Team finishes the bridge & cross chain farms!

“Chainlink VRF is the best solution to get random numbers on any chain that is empowered with solidity smart contracts”- John Costa, Founder

About Chainlink

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.

Learn more about Chainlink by visiting chain.link or read the documentation at docs.chain.link. To discuss an integration, reach out to an expert.

About ChimpySwap

ChimpySwap is a decentralized exchange (DEX) on Binance Smart Chain focused on offering a premier trading experience. Users are incentivized to put liquidity on ChimpySwap through yield farming to earn the native currency, $CHIMPY. Additionally, chimpies can use their earned $CHIMPY to stake and earn other tokens and unlock exclusive features. Built by DeFi chimpies, for DeFi chimpies, we have a dedicated team with years of experience who are committed to the DeFi community and growing the ChimpySwap Project.

Learn more about ChimpySwap by visiting chimpyswap.com or read the documentation docs.chimpyswap.com.

--

--

ChimpySwap

We’re a Decentralized Exchange on Binance Smart Chain. Visit us at https://chimpyswap.com