Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Callisto: Cold Staking #77
Cold Staking smart-contract is the core smart-contract of Callisto Network that is intended to allow users to stake their CLO by locking it for a certain period of time.
The contract must allow users to:
Cold Staking values.
2. In scope
In total, 1 issues were reported including:
No critical security issues were found.
|Block id||Block time, sec||
|start value||1539260000||Mike make a stake.|
|...||...||...||...||...||...||An hour has passed|
|1200103||35||25||1539263640||1539262600||1040||Passed 1 hour of real time, but the contract "thinks" that 43 minutes have passed.|
I don't know whether a continuous change in the block generation time by a value greater than 25 seconds is possible. But if it is possible then the time inside the contract will differ from the real time. What will affect the reward.
No critical vulnerabilities were detected.
5. Revealing audit reports
Notes regarding the https://gist.github.com/gorbunovperm/baec3a9b533b922c34a32a6a8d4f579f report.
So when contract "thinks" that passed 1 hour, in real time may be passed more than 1 hour. Therefore a round can go longer by real time. But I do not think that such a situation is possible for a long time. Also, it will not lead to loss of the stakers reward.
Notes regarding the https://gist.github.com/pro100skm/7316153c530f600090a1ac2fb1f79e53 report.
TotalStakingWeight += _seconds.mul(TotalStakingAmount);