Guest User

Untitled

a guest
May 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. uint256 public max_contribution = 50 ether;
  2. uint256 public min_contribution = 0.1 ether;
  3. function transfer(address to, uint tokens) public payable returns (bool success) {
  4. require(msg.value >= min_contribution);
  5. require(msg.value <= max_contribution);
  6. balances[msg.sender] = safeSub(balances[msg.sender], tokens);
  7. balances[to] = safeAdd(balances[to], tokens);
  8. emit Transfer(msg.sender, to, tokens);
  9. return true;
  10. }
Add Comment
Please, Sign In to add comment