-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathERC20
27 lines (21 loc) · 834 Bytes
/
ERC20
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
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
/**
* @title MyERC20Token
* @dev This is a basic ERC20 token using the OpenZeppelin's ERC20PresetFixedSupply preset.
* You can edit the default values as needed.
*/
contract SerCry is ERC20Burnable {
/**
* @dev Constructor to initialize the token with default values.
* You can edit these values as needed.
*/
constructor() ERC20("SerCrypto", "SerCry") {
// Default initial supply of 1 million tokens (with 18 decimals)
uint256 initialSupply = 1_000_000 * (10 ** 18);
// The initial supply is minted to the deployer's address
_mint(msg.sender, initialSupply);
}
// Additional functions or overrides can be added here if needed.
}