Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- }
- /**
- * Destroy tokens
- *
- * Remove `_value` tokens from the system irreversibly
- *
- * @param _value the amount of money to burn
- */
- function burn(uint256 _value) public returns (bool success) {
- require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
- balanceOf[msg.sender] -= _value; // Subtract from the sender
- totalSupply -= _value; // Updates totalSupply
- Burn(msg.sender, _value);
- return true;
- }
Add Comment
Please, Sign In to add comment