RE: writing decentralized history, May 6th
You are viewing a single comment's thread:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/draft-ERC20Permit.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20FlashMint.sol";
contract RandoMemeCoin is ERC20, ERC20Burnable, Pausable, Ownable, ERC20Permit, ERC20FlashMint {
constructor() ERC20("RandoMemeCoin", "DBK") ERC20Permit("RandoMemeCoin") {}
function pause() public onlyOwner {
_pause();
}
function unpause() public onlyOwner {
_unpause();
}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
function _beforeTokenTransfer(address from, address to, uint256 amount)
internal
whenNotPaused
override
{
super._beforeTokenTransfer(from, to, amount);
}
}
0
0
0.000
This is some copy/paste level code. Learn what that all means. You can add a lot more.
Alright. You're on. Bookmarked for later.