Skip to content

Instantly share code, notes, and snippets.

@glaksmono
Created February 12, 2022 01:59
Show Gist options
  • Save glaksmono/88385d0129ec59a8106d48f6a372051c to your computer and use it in GitHub Desktop.
Save glaksmono/88385d0129ec59a8106d48f6a372051c to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.0+commit.c7dfd78e.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;
import "https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol";
contract MemeToken is ERC20 {
constructor(string memory _name, string memory _symbol, uint8 _decimals) ERC20 (_name, _symbol, _decimals) {
// Creating shitcoin
}
function mint(address _to, uint _amount) public {
require(totalSupply + _amount <= 1_000_000_000);
_mint(_to, _amount);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment