You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
863 B
25 lines
863 B
pragma solidity ^0.4.24;
|
|
|
|
import "./BurnableToken.sol";
|
|
import "./StandardToken.sol";
|
|
|
|
|
|
/**
|
|
* @title Standard Burnable Token
|
|
* @dev Adds burnFrom method to ERC20 implementations
|
|
*/
|
|
contract StandardBurnableToken is BurnableToken, StandardToken {
|
|
|
|
/**
|
|
* @dev Burns a specific amount of tokens from the target address and decrements allowance
|
|
* @param _from address The address which you want to send tokens from
|
|
* @param _value uint256 The amount of token to be burned
|
|
*/
|
|
function burnFrom(address _from, uint256 _value) public {
|
|
require(_value <= allowed[_from][msg.sender]);
|
|
// Should https://github.com/OpenZeppelin/zeppelin-solidity/issues/707 be accepted,
|
|
// this function needs to emit an event with the updated approval.
|
|
allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
|
|
_burn(_from, _value);
|
|
}
|
|
}
|
|
|