add burn function to TBTCtoken
We can now burn instead of transfering to address(0).
This reduces the supply count
@@ -34,4 +34,11 @@ contract TBTCToken is ERC20Detailed, ERC20, VendingMachineAuthority {
function burnFrom(address _account, uint256 _amount) public {
_burnFrom(_account, _amount);
}
+
+ /// @dev Destoys `amount` tokens from `msg.sender`, reducing the
+ /// total supply.
+ /// @param _amount The amount of tokens that will be burnt.
+ function burn(uint256 _amount) public {
+ _burn(msg.sender, _amount);
+ }
}
