Hello everyone. What is the best way to count in the contract what has already passed, for example 10 days, for some condition to begin to be fulfilled? Timestemp or by block number? Accuracy is not very important, just understand that the milestone has been passed
May 25, 2021, 10:05 AM
Block number
for example on bsc there are around 29k blocks per day
May 25, 2021, 10:11 AM
Thank you. Did I find the information correctly that each block is mined for about 15 seconds? That is, I need to count the number of blocks, which would be equivalent to 10 days. Right?
May 25, 2021, 10:12 AM
Check the average blocks per day for the chain your deploying to
then you can see the equivalent to days
May 25, 2021, 10:13 AM