Skip to content

Instantly share code, notes, and snippets.

@casweeney
Created September 24, 2023 12:01
Show Gist options
  • Select an option

  • Save casweeney/f43e6ce24e22637a90c9e933e6687be4 to your computer and use it in GitHub Desktop.

Select an option

Save casweeney/f43e6ce24e22637a90c9e933e6687be4 to your computer and use it in GitHub Desktop.
// 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