Skip to content

Instantly share code, notes, and snippets.

@jamesyoung
Created February 2, 2023 06:41
Show Gist options
  • Save jamesyoung/d6d769f6792ad9cb35bfa01b8f37a082 to your computer and use it in GitHub Desktop.
Save jamesyoung/d6d769f6792ad9cb35bfa01b8f37a082 to your computer and use it in GitHub Desktop.
ERC-20 Safe Token
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract SafeToken is ERC20, Ownable {
using SafeERC20 for IERC20;
constructor() ERC20("SafuToken", "SAFU") {}
function mint(address to, uint256 amount) public onlyOwner {
_mint(to, amount);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment