You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, I know it's a challenge and it's a proof of concept but we are also trying to learn and teach correct solidity concepts.
From the current Solidity documentation I see
Take care if you perform calendar calculations using these units, because not every year equals 365 days and not even every day has 24 hours because of leap seconds.
Due to the fact that leap seconds cannot be predicted, an exact calendar library has to be updated by an external oracle.
and
The suffix years has been removed in version 0.5.0 due to the reasons above.
Would that be fine to calculate 2 years as uint256 constant lockPeriod = 2 * 365 days; ?
The text was updated successfully, but these errors were encountered:
Hi there, I know it's a challenge and it's a proof of concept but we are also trying to learn and teach correct solidity concepts.
From the current Solidity documentation I see
and
The suffix years has been removed in version 0.5.0 due to the reasons above.
Would that be fine to calculate 2 years as
uint256 constant lockPeriod = 2 * 365 days;
?The text was updated successfully, but these errors were encountered: