scaffold-eth / OP-RetroPGF3-Discovery-Voting

Create the voting and discovery process for OP retroactive public goods funding for badgeholders
https://op-retropgf3-discovery-voting.vercel.app
MIT License
14 stars 15 forks source link

Countdown timer #46

Closed escottalexander closed 1 year ago

escottalexander commented 1 year ago

image Currently this is just fixed text. Add countdown functionality. This will be a fixed date that we can set either in the database or hardcoded but perhaps as a first pass we could arbitrarily set a date a month in the future so we can demonstrate the countdown working.

luloxi commented 1 year ago

Where is this information gonna be read from?

I could do something similar to what I used here for a countdown and a dynamic text that changed after the deadline was reached (Time left/Ended on), just got to change the format

escottalexander commented 1 year ago

It will probably read from a database value that is set. Feel free to set that up or just hardcode an end date to demonstrate the functionality. We would need feedback from OP to know what they want it to do when it has ended but that sounds great!

luloxi commented 1 year ago

I assumed it'd be a timestamp on a smart contract, but it can be adapted to any other format :grinning: