0x00000002 / rootcore

Apache License 2.0
0 stars 1 forks source link

avoid time based decisions #7

Open gabriel-canaan opened 6 years ago

gabriel-canaan commented 6 years ago

rootcore/blob/master/contracts/CrowdsaleController.sol Line 76,82,89

assert(now < _time);
 assert(now >= _startTime && now < _endTime);
endTime = now + SOFTCAP_GRACE_DURATION;
gabriel-canaan commented 6 years ago

Be aware that the timestamp of the block can be manipulated by a miner

ryu9827 commented 6 years ago

So it should switch to block number based decision?