Open clesaege opened 6 years ago
@satello Will you store the time at which pass period was called?
We don't know exact times because it takes a variable amount of time for the pass period tx to get mined. What do you need them stored for?
@epiqueras we can just look up the NewPeriod event for a timestamp
@satello To show the timeline. Yeah, that works.
@epiqueras how accurate does it have to be? We could also just estimate backwards and forwards based on timePerPeriod which is much simpler
@satello That could be way off, but I guess the bot is always passing the period so it's fine.
@epiqueras It could be way off on estimating the future period times as well. I think it is safe for now to assume the bot will be passing the periods within a reasonable margin of error of when its supposed to end. Probably long term it is best to get all timestamps so we can be exact but for the pilot estimating seems fine. It would also be more calls to the blockchain to slow down the page render
@satello Yeah, I am fine with estimating.
Currently the bar just show how we are in the current period
It would be way better to show all periods like what we did for the IICO.