How can I implement a price structure into a crowdsale smart contract so that a price per token would be increased after a certain time?
I want to use best practices for this but cannot find information on this.
Would it be safe to use this kind of implementation?
if(now >= phase1Start){
rate = 200;
}
else if(now >= phase2Start){
rate = 100;
}
I would use the unix timestamp for the phase1Start and phase2Start variables, is this how it is done in crowdsales usually?