Skip to content

FerCamposDev/challenge-ratherlabs

Repository files navigation

This is a Next.js project bootstrapped with create-next-app.

Challenge

  • Connect Metamask wallet
  • Ensure user is connected to ropsten, if not show a button to switch networks automatically.
  • Show balance of $QUIZ token (address below).
  • Once the page is loaded, present the title of the daily trivia with its picture and a button that allows you to begin answering.
  • Once the survey starts, display the current question, which will be available for the amount of seconds in the lifetimeSeconds property.
  • Answered or not it should move onto the next question.
  • Once all the questions are finished, show an overview with all the answers.
  • Show a button to submit the questions to the validator contract
  • Refresh the balance of $QUIZ

Extra

  • Native balance.
  • Calculate cooldown time.

Deploy on Vercel

https://challenge-ratherlabs.vercel.app/ (Not working the server is down)