Skip to content

Instantly share code, notes, and snippets.

@ChanJuiHuang
Created September 3, 2022 02:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ChanJuiHuang/a067339a8ac8e5c92cdd03e381e4d62f to your computer and use it in GitHub Desktop.
Save ChanJuiHuang/a067339a8ac8e5c92cdd03e381e4d62f to your computer and use it in GitHub Desktop.
// 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