PancakeSwap, the automated market (AMM) and yield farm platform built on Binance Smart Chain (BSC), today announced its mainnet integration of the Chainlink Verifiable Random Function (VRF).
Chainlink VRF provides cryptographically secure randomness for blockchain-based gaming applications. It will provide a provably fair source of randomness used to select winners in Pancake Swap’s Lottery V2 application; along with a supporting cryptographic proof that verifies the RNG process as tamper-proof.
Recap of PancakeSwap Lottery
- The PancakeSwap Lottery has two draws every day.
- Users can participate by buying tickets, which each contain 6 digits.
- Prizes are defined by how many digits on a ticket (and match the digits from Chainlink VRF).
The breakdown is as follows:
“The new lottery has already become hugely popular, with the largest prize pool to date totaling around $1.165M (77,687 CAKE) in round 16. Given the value at stake, it was very important to bring transparency and security to the winner selection process so no single party could unfairly influence the results. However, accessing a manipulation-resistant source of randomness on-chain in a verifiable manner isn’t as straightforward as it might seem. On-chain RNG solutions like blockhashes can be subject to miner manipulation; while off-chain RNG solutions are opaque and provide no proof of integrity. Overcoming these hurdles is why we selected Chainlink VRF for the PancakeSwap Lottery V2.”
– The PancakeSwap Team
How It Works
The Lottery V2 smart contract will only accept the random number input if it has valid cryptographic proof and the cryptographic proof can only be generated if the VRF process is tamper-proof. Chainlink VRF provides automated and publicly verifiable assurance that each random number draw is provably fair.