Guest User

Untitled

a guest
Jan 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. }
  2.  
  3. /**
  4. * Destroy tokens
  5. *
  6. * Remove `_value` tokens from the system irreversibly
  7. *
  8. * @param _value the amount of money to burn
  9. */
  10.  
  11. function burn(uint256 _value) public returns (bool success) {
  12. require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
  13. balanceOf[msg.sender] -= _value; // Subtract from the sender
  14. totalSupply -= _value; // Updates totalSupply
  15. Burn(msg.sender, _value);
  16. return true;
  17. }
Add Comment
Please, Sign In to add comment