Hi folks. Want to ask, is there any tutorial or articles of how to read timelock contract (specifically about how much time being set)? An simple explanation would be great. Thanks in advance.
Jan 30, 2021, 8:50 AM
For example if a delay being set 127000. How much time actually is it?
Jan 30, 2021, 9:22 AM
if that's in seconds (as timestamps are, by default) then just calculate how long that is
Jan 30, 2021, 3:09 PM
Alright, so default is in seconds? Thank you so much Lauri☺️
Jan 30, 2021, 3:09 PM
well the block timestamp is in seconds, at least. so most likely yours is also in seconds, but can't be sure without context. https://docs.soliditylang.org/en/latest/units-and-global-variables.html?highlight=block#block-and-transaction-properties
Jan 30, 2021, 3:13 PM
Could you please look at this one for example:
https://bscscan.com/address/0x5E081D6B4BBf753c6cbf75d51c4e48e97c6C0740#code
https://bscscan.com/address/0x5E081D6B4BBf753c6cbf75d51c4e48e97c6C0740#code
Jan 30, 2021, 3:16 PM
well check line 298
Jan 30, 2021, 3:19 PM
Sorry, still a bit confuse😂
But does that mean it's in seconds too?
But does that mean it's in seconds too?
Jan 30, 2021, 3:21 PM
well, with a quick glance that's what everything is compared to, so yes
Jan 30, 2021, 3:22 PM
I remember I followed a challenge few weeks ago. I have to convert the targeted time to unix.
But I didn't really understand if that's an exact 'second'.
Alright thank you once again.
Jan 30, 2021, 3:23 PM