Partnering With Grape Protocol For Token-Gated IDO Lotteries

Team SolLotto
2 min readJul 21, 2021

Last week SolLotto worked with two of the most interesting projects being built on Solana, Grape Protocol and Parrot to experiment with spl-gated ido raffles!

Grape Protocol is focused on Decentralizing Social Networking. Their first product, token-gated discord communities allows projects and creators to create, reward & secure any online community by harnessing the power of Solana through custom SPL tokens.

(grapes.network | twitter.com/grapeprotocol)

Parrot is a DeFi network built on Solana that will introduce the stablecoin PAI, a non-custodial lending market, and a margin trading vAMM to the Solana ecosystem.

(parrot.fi | twitter.com/gopartyparrot)

Facing an incredibly large demand from the Solana community, Parrot turned to Grape to find a fair and equitable way to allow a handful of community members to participate in their limited-spot IDO. After creating a spl-token gated community in their discord (discord.gg/greatape) that requires having at least 50 PAI (Parrot’s stable coin) held in your wallet, Grape asked Team SolLotto to find a way to distribute 5 tickets to participate in the Parrot IDO to members of the PAI-token holders gated community.

While we are still working with community oracles to deploy our on-chain random number generator, we used a traditional random number generating javascript package to choose the winning names in the list. Each of the numbers chosen represents a place in the list of members in the PAI-token gated community. The list of members was generated by Grape through a snapshot of the community members just before the drawing and was never shared with Team SolLotto, ensuring that a fair drawing could take place (we don’t know who is on the list and what position they are in; Grape does not know which numbers the random number generator will choose).

We packaged our random number generator into a front-end user interface that allows Grape to stream or create a video of the drawing of the random numbers taking place. Additionally, we introduced a nominal fee to utilize our random number generator and publish the wallet address where that fee is sent so that any community member can verify that the random numbers were only generated for this event one time.

This was a fantastic opportunity for Team SolLotto to give back to the Solana community and we are extremely grateful for the opportunity from Grape and Parrot. We will continue to develop this tool and hope to work with more Solana projects on fairly distributing their IDO tickets in a lottery-like manner in the future!

--

--

Team SolLotto

Solana's Lottery! SolLotto is the first decentralized, peer-to-peer giveaway system built on the Solana blockchain. Learn more at https://sollotto.io