Created
September 3, 2022 02:49
-
-
Save ChanJuiHuang/a067339a8ac8e5c92cdd03e381e4d62f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.16; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract StakingToken is ERC20 { | |
constructor() ERC20("Staking Token", "ST") { | |
mint(msg.sender, 50000); | |
} | |
function mint(address to, uint256 amount) public { | |
_mint(to, amount); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment