Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 1.74 KB

ERC20Burnable.md

File metadata and controls

71 lines (53 loc) · 1.74 KB

ERC20Burnable.sol

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).

Functions

burn

Destroys amount tokens from the caller. * See {ERC20-_burn}.

function burn(uint256 amount) public nonpayable

Arguments

Name Type Description
amount uint256

burnFrom

See {ERC20-_burnFrom}.

function burnFrom(address account, uint256 amount) public nonpayable

Arguments

Name Type Description
account address
amount uint256

Contracts