Inspiration

This project was inspired by seeing that customers do not have control of their loyalty point. I felt that I do not really own the points. I wished that I could donate my loyalty points to the less fortunate and they could use the points to achieve their objectives.

What it does

The purpose of this project is to develop a platform where customers can earn ETH when they purchase from partners. When making a purchase the partner will reward the customer with ETH based on the total value that the customer spent. The customer can then swap the ETH for DAI or other ERC20 tokens allowing customers to be in total control of how they move and preserve their value.

The customers that have made a purchase from any of the partners within the last 7 days will be eligible for a weekly lottery. The lottery winner gets a percentage of the total pool amount for the partner.

  1. As a customer I want to earn ETH based on my purchases with partners so that I can be financially rewarded for my loyalty.
  2. As a customer I want to swap ETH for DAI so that I can use it to fit my needs when the time comes.
  3. As a customer I want to take part in weekly lottery so that I can get more value for shopping at partner stores or websites.
  4. As a partner I want to sponsor a weekly lottery amount so that I can make customers come to my store or website.

How we built it

This was built using truffle an ganache for the smart contract development. The user interface uses pure HTML and Javascript.

I used chainlink VRF to generate a random number for the raffle and keeper was used to initiate the rafflle.

Challenges we ran into

I had a hard time deciding whether to use hardhat or truffle.

Accomplishments that we're proud of

I am proud that I managed to commit all the way through and submit.

What we learned

I learned that there is a lot more supporting material for truffle online that for hardhat.

What's next for Nebula

Looking at interesting ways in which customers can earn points and keep them engaged.

Built With

Share this project:

Updates