Created
September 24, 2023 12:01
-
-
Save casweeney/f43e6ce24e22637a90c9e933e6687be4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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.20; | |
| import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol"; | |
| contract StakingToken is ERC20("Staking Token", "STK") { | |
| address public owner; | |
| constructor() { | |
| owner = msg.sender; | |
| _mint(msg.sender, 100000e18); | |
| } | |
| function mint(uint _amount) external { | |
| _mint(msg.sender, _amount * 1e18); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment