← Back to home

Lens Giveaway

An Open Action Module that allows Lens users to create giveaway publication on Lens Protocol for their community.

Screenshots

Lens Giveaway screenshot 1
Lens Giveaway screenshot 2
Lens Giveaway screenshot 3

Problem Statement

This project allows Lens users to create ERC-20 giveaways to their followers. Here's the flow:The Giveaway creator set a token and an amount for the bounty and post it through Lens Protocol.All his followers can now participate to the giveaway by registeringThen, when the Giveaway author wants, he can run the draw, and this will choose randomly a winner from the registrants and send him directly the tokens.

Solution

To do this project I used Lens Open Action Module: the giveaway is basically a lens post using the Module I built, the registrations and the draw are functions of this module. To draw randomly a winner I used the ChainlinkVRF solution, it allows me to get a random number directly onchain thanks to an offchain oracle.

Hackathon

LFGHO

2024

Contributors