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.
26 lines
637 B
26 lines
637 B
pragma solidity ^0.5.0;
|
|
|
|
import "./ERC20.sol";
|
|
|
|
/**
|
|
* @dev Extension of `ERC20` that allows token holders to destroy both their own
|
|
* tokens and those that they have an allowance for, in a way that can be
|
|
* recognized off-chain (via event analysis).
|
|
*/
|
|
contract ERC20Burnable is ERC20 {
|
|
/**
|
|
* @dev Destoys `amount` tokens from the caller.
|
|
*
|
|
* See `ERC20._burn`.
|
|
*/
|
|
function burn(uint256 amount) public {
|
|
_burn(msg.sender, amount);
|
|
}
|
|
|
|
/**
|
|
* @dev See `ERC20._burnFrom`.
|
|
*/
|
|
function burnFrom(address account, uint256 amount) public {
|
|
_burnFrom(account, amount);
|
|
}
|
|
}
|
|
|