SHARE
TWEET

Untitled

a guest Jun 20th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function calcAmountAt(uint256 _value, uint256 at) public constant returns (uint256) {
  2.         uint rate;
  3.  
  4.         if(startTime + 2 days >= at) {
  5.             rate = 140;
  6.         } else if(startTime + 7 days >= at) {
  7.             rate = 130;
  8.         } else if(startTime + 14 days >= at) {
  9.             rate = 120;
  10.         } else if(startTime + 21 days >= at) {
  11.             rate = 110;
  12.         } else {
  13.             rate = 105;
  14.         }
  15.         return ((_value * rate) / weiPerToken) / 100;
  16.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top