Skip to content

Instantly share code, notes, and snippets.

@coindegen
Created November 27, 2021 01:29
Show Gist options
  • Save coindegen/a8f6e76cdcd4b9a7c3998ce25542bc22 to your computer and use it in GitHub Desktop.
Save coindegen/a8f6e76cdcd4b9a7c3998ce25542bc22 to your computer and use it in GitHub Desktop.
Boilerplate code for FLURKS token
// contracts/FLURKS.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/presets/ERC20PresetMinterPauser.sol";
contract FLURKSToken is ERC20PresetMinterPauser {
constructor() ERC20PresetMinterPauser("Flurks", "FLURKS") {
_mint(msg.sender, 22000000);
}
function decimals() public view virtual override returns (uint8) {
return 8;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment