Verified contractExactMIT
LaunchToken
Address0x1a22937f6c70a8ea8fd3312b20abcf1cb70ee64c
- Balance
0 ETH
- Transactions
292
- Compiler
solc 0.8.30
- Same code
Only this contract
Details
- Compiler
- solc 0.8.30+commit.73712a01
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,368,814
- Creation transaction
- 0x0cc0839b6e…a5d04f5285
LaunchToken.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.30;
/*
Gargantuan is the size. Cat is the animal. MAGGIE is the cut.
The size. The animal. The cut.
https://www.maggiecoin.lol
https://x.com/MaggieCoinETH
https://t.me/MaggieCoinETH
*/
// A standard ERC-20: the whole supply goes to the deployer, which adds it to the pool. It has no owner, no
// tax and no limits, so nothing about it changes after the deployment.
contract LaunchToken {
string private constant TOKEN_NAME = unicode"Gargantuan Cat";
string private constant TOKEN_SYMBOL = unicode"MAGGIE";
uint8 private constant TOKEN_DECIMALS = 18;
uint256 private constant TOTAL_SUPPLY = 1_000_000_000 * 10 ** 18;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
error InsufficientBalance();
error InsufficientAllowance();
error ZeroAddress();
constructor() {
_balances[msg.sender] = TOTAL_SUPPLY;
emit Transfer(address(0), msg.sender, TOTAL_SUPPLY);
}
function name() external pure returns (string memory) {
return TOKEN_NAME;
}
function symbol() external pure returns (string memory) {
return TOKEN_SYMBOL;
}
function decimals() external pure returns (uint8) {
return TOKEN_DECIMALS;
}
function totalSupply() external pure returns (uint256) {
return TOTAL_SUPPLY;
}
function balanceOf(address account) external view returns (uint256) {
return _balances[account];
}
function allowance(address owner, address spender) external view returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 value) external returns (bool) {
if (spender == address(0)) revert ZeroAddress();
_allowances[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transfer(address to, uint256 value) external returns (bool) {
_transfer(msg.sender, to, value);
return true;
}
function transferFrom(address from, address to, uint256 value) external returns (bool) {
uint256 allowed = _allowances[from][msg.sender];
if (allowed != type(uint256).max) {
if (allowed < value) revert InsufficientAllowance();
unchecked {
_allowances[from][msg.sender] = allowed - value;
}
}
_transfer(from, to, value);
return true;
}
function _transfer(address from, address to, uint256 value) private {
if (to == address(0)) revert ZeroAddress();
uint256 balance = _balances[from];
if (balance < value) revert InsufficientBalance();
unchecked {
_balances[from] = balance - value;
_balances[to] += value;
}
emit Transfer(from, to, value);
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.