Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. function getBonus(uint256 _tokens) constant returns (uint256 bonus) {
  2. require(_tokens != 0);
  3. if (1 == getCurrentPeriod()) {
  4. if (startFirstStepICO <= now && now < startFirstStepICO + 1 days) {
  5. return _tokens.mul(0.1);
  6. } else if (startFirstStepICO + 1 days <= now && now < startFirstStepICO + 2 days ) {
  7. return _tokens.mul(0.05);
  8. } else if (startFirstStepICO + 2 days <= now && now < startFirstStepICO + 3 days ) {
  9. return _tokens.mul(0.03);
  10. }
  11. }
  12.  
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement