Skip to content
Permalink
Browse files

Allow TOMOS Can Be Burned

  • Loading branch information...
piavgh committed Mar 18, 2019
1 parent d709adb commit 9da4cfe015115ce011cc2444bdb8e5aded3a24d1
Showing with 12 additions and 0 deletions.
  1. +12 −0 contracts/tokens/TOMOS.sol
@@ -172,4 +172,16 @@ contract TOMOS is Owned {
emit MintFinished();
return true;
}

/**
* @dev Burns a specific amount of tokens.
* @param value The amount of token to be burned.
*/
function burn(uint256 value) public {
require(msg.sender != address(0));

totalSupply_ = totalSupply_.sub(value);
balances[msg.sender] = balances[msg.sender].sub(value);
emit Transfer(msg.sender, address(0), value);
}
}

0 comments on commit 9da4cfe

Please sign in to comment.
You can’t perform that action at this time.