OpenZeppelin / Burnable ERC20 Token
Share
Downloads2072
NFT icon

Hey, I'm Richard. I can help answer any question about Burnable ERC20 Token you might have. Ask away!

burnable-token.sol
ERC20Burnable.sol
ERC20.sol
Context.sol
IERC20.sol
IERC20Metadata.sol
burnable-token.sol
burnable-token.sol
burnable-token.sol
ABI:
Bytecode:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: UNLICENSED

pragma solidity ^0.8.10;

import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";

/**
 * @title Burnable Token
 * @author Breakthrough Labs Inc.
 * @notice Token, ERC20, Burnable
 * @custom:version 1.0.7
 * @custom:address 2
 * @custom:default-precision 18
 * @custom:simple-description Token that allows token holders to destroy tokens
 * in a way that can be recognized on-chain and off-chain. 
 * @dev ERC20 token with the following features:
 *
 *  - Premint your total supply.
 *  - No minting function. This allows users to comfortably know the future supply of the token.
 *  - Methods that allow users to burn their tokens. This directly decreases total supply.
 *
 * Used to burn tokens from the supply.
 *
 */

contract BurnableToken is ERC20Burnable {
    /**
     * @param name Token Name
     * @param symbol Token Symbol
     * @param totalSupply Token Supply
     */
    constructor(
        string memory name,
        string memory symbol,
        uint256 totalSupply
    ) payable ERC20(name, symbol) {
        _mint(msg.sender, totalSupply);
    }
}

Deploy
Open In
Download