Aavegotchi is an NFT collectibles game that uses Aave’s interest-bearing aTokens as DeFi collateral to mint NFT avatars. Players aim to increase the value of their Aavegotchi NFTs by “farming rarity” in various gamified ways on-chain.
Aavegotchi needed a provably fair and tamper-proof way to determine the composition of newly minted NFT avatars and distribute rare attributes to existing avatars through on-chain raffles.
Chainlink Verifiable Randomness Function (VRF) is a decentralized, oracle-powered service that provides smart contracts with a secure source of on-chain randomness that all users can independently verify.
Non-Fungible Tokens (NFTs) have generated a massive uptick of interest, both from creators launching NFTs to monetize their one-of-a-kind crypto collectibles and enthusiasts buying NFTs for personal and financial interests. The large majority of first-generation NFTs centered around the idea of using a blockchain’s persistent, immutable ledger to launch and track verifiably unique tokenized assets. While some first-generation NFTs went on to sell for millions of dollars, many others failed to gain traction. Some termed this waning of consumer interest as the NFT “scarcity meme”, where an NFT was only perceived to have value because of its rarity. Users’ interest quickly faded once they realized all they owned was a static digital image.
In January 2021, Aavegotchi launched on the Ethereum mainnet, with the vision of providing users a new blockchain-based “rarity farming metagame” powered by dynamic, DeFi-enabled NFTs. Aavegotchis, inspired by the handheld pet Tamagotchis of yesteryear, are digital avatars with varying rarity that players are incentivized to nurture and level up. They can be minted by staking Aave’s interest-generating aTokens, as well as earned, upgraded, and purchased through various gamified elements and secondary markets.
“We looked at quite a few RNG alternatives. There’s really no other RNG solution that solves for both on-chain miner-related attacks and the opaqueness of off-chain data providers. That’s why we’re really comfortable with Chainlink.”
CEO, Pixelcraft Studios
Chainlink Verifiable Function (VRF) is an RNG service performed by Chainlink oracles using a hybrid on-chain/off-chain architecture. 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 off-chain. The cryptographic proof is generated off-chain in a low-cost manner but verified on-chain to confirm the integrity of the off-chain RNG process.
The Aavegotchi smart contract will only accept the random number if it has an associated cryptographic proof, and the cryptographic proof can only be generated by Chainlink VRF if the process is fully tamper-proof. Thus, Aavegotchi users receive extremely high assurances that every source of entropy supplied by Chainlink VRF is provably fair and unbiased, as neither the oracle node, external entities, nor Aavegotchi developers can predict or influence random outputs to their own advantage.
Importantly, Chainlink is a blockchain agnostic protocol, meaning its oracle solutions can be natively integrated on various blockchain networks. This flexibility of design allowed Chainlink VRF to launch directly on Polygon—a highly scalable, low-cost layer-2 sidechain aggregator. Aavegotchi was able to leverage Chainlink VRF on Polygon without dependencies on any other blockchains, ultimately enabling Aavegotchi to call Chainlink VRF for a thousandth of the cost required on Ethereum’s layer-1 blockchain.
“One of the reasons we decided to build on Polygon was because Chainlink VRF was integrated with Polygon.”
CEO, Pixelcraft Studios
Aavegotchi has already called Chainlink VRF tens of thousands of times to mint 10,000 NFTs. This includes leveraging Chainlink VRF several times for its mainnet raffles, where one lucky user out of 16,000 participants won a god-like LINK-cube NFT, the most powerful item in the game, all without any discrepancies in the raffle's integrity.
By introducing verifiable randomness, Aavegotchi has pioneered a new game design that they dub as a “rarity farming meta-game.” This metagame is a competition between users trying to farm the rarest Aavegotchis, either by minting a new one right out of the portal, leveling up existing NFTs by winning raffles and other games, or buying Aavegotchi NFTs and wearable upgrades sold on secondary markets. Thus, not only are Aavegotchi rare NFTs, but they are “farmable” through a no-loss game that’s backed by real interest-generating assets—combining DeFi, NFTs, decentralized gaming, and real-world inputs to create an unparalleled player experience.
Since its mainnet launch at the beginning of 2021, Aavegotchi has turned into a top 10 NFT project on DappRadar. Running on Polygon’s low-cost layer-2 network has enabled the Aavegotchi platform to securely handle over 500k+ on-chain transactions and save users over $14M in transaction costs, while guaranteeing fair NFT generation and exciting in-game outcomes through Chainlink VRF.
The extensive amount of on-chain activity is a clear testament to the growing user demand for fun gamified experiences mixed with financial incentives. Not only does Aavegotchi’s integration with Chainlink showcase a completely new use case within the NFT economy, but it redefines how gaming experiences in general can be successfully monetized using dynamic NFTs that incentivize users to collect, earn, trade, and interact with their collectibles. “Unlike a lot of NFTs,” explained Founder Jesse Johnson, “this one really rewards you if you take care of it.”
A secure source of randomness is the lynchpin of Aavegotchi’s platform design. Emerging at the nexus of DeFi and blockchain gaming, Aavegotchi must provide users the same security and transparency guarantees that have come to characterize the larger smart contract ecosystem. As the CEO of Pixelcraft Studios, Dan the Coder, made clear, “When you have randomly generated traits that influence the outcome of your game, you’re going to see a lot of value behind these traits. We’re seeing Aavegotchis going for tens of thousands of dollars almost every day on the secondhand market. Imagine if those Aavegotchi were not produced using Chainlink VRF: there would be a lot of questions about their value and whether their traits can be manipulated. Chainlink provides definitive, undisputed answers to these questions.”