View Source: openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol
↗ Extends: Context, ERC20 ↘ Derived Contracts: DownDai, UpDai
ERC20Burnable
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).
Destroys amount
tokens from the caller.
* See {ERC20-_burn}.
function burn(uint256 amount) public nonpayable
Arguments
Name | Type | Description |
---|---|---|
amount | uint256 |
See {ERC20-_burnFrom}.
function burnFrom(address account, uint256 amount) public nonpayable
Arguments
Name | Type | Description |
---|---|---|
account | address | |
amount | uint256 |