Verified contractPartialMIT
KEKCoin
Address0x7366b89cc1b45e4dfc69a54e6aae4dc0529a4d28
- Balance
0 ETH
- Transactions
107
- Compiler
solc 0.8.19
- Same code
Only this contract
Details
- Compiler
- solc 0.8.19+commit.7dd6d404
- Language
- solidity
- Optimization
- No
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 17,088,845
- Creation transaction
- 0x5ec2de74ba…feedbaebd4
KEKCoin.sol
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣀⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣤⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣤⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣾⣿⣿⣿⣿⣦⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢿⣿⡿⠋⠙⠚⣻⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠿⠧⠃⠀⠀⠀⠀⠻⣦⣿⣿⣿⣿⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⡟⠉⠉⠉⠛⠿⡟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⡙⣿⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠉⠉⣛⣿⣿⣿⣷⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢴⣶⣿⣿⣿⣿⣿⡆⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠐⠾⣿⣿⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣿⣿⣿⣿⣿⣛⡆⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⢆⣤⢀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣤⣴⢤⣀⡀⠀⠀⠀⢻⣿⣿⣿⣿⠟⣿⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣾⠿⠿⣿⣷⡀⡀⠀⠨⣿⡿⠟⠛⠓⠀⣲⣤⠄⠀⠀⠀⣿⣿⣿⣿⣆⣿⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣤⣶⡶⠟⢿⣿⠀⠀⠹⣷⣿⠿⠿⠿⡶⠟⠀⠀⠀⠀⣿⣿⣿⣿⡿⢻⡀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡙⠳⠤⠄⠀⠈⠑⠀⠀⠀⠀⠉⠛⠒⠂⠀⠀⠀⠀⠀⠠⣿⣿⣿⠋⠀⢸⣷⡢⢄⡀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣧⠀⠀⠀⣠⠇⠀⠀⠀⠀⠹⡷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠀⢠⣤⣾⣿⣀⣤⣵⣄⡀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡆⠀⣰⣷⣤⣀⣤⣤⣤⣴⣷⣿⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣄⠐⠂⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⣀⣠⣤⠤⢤⣴⣿⣷⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣣⡿⢿⠇⠀⠀⠀
// ⠀⠀⠀⢀⡤⠖⠋⠀⠰⠃⠀⠈⠻⣿⣿⣧⠸⣿⣿⣟⣻⣷⣿⣿⣿⣿⢿⡿⠛⠃⠀⡀⢀⡴⠋⠀⢠⣿⡿⣾⠁⣕⠁⠀⠀⠀
// ⢀⡠⢾⠙⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣿⣷⡈⢿⠿⣿⣻⣿⡏⣽⣦⣾⠁⠀⠀⢠⠇⡄⠀⠀⢠⡿⣿⣿⠇⠀⠀⠀⠀⠀⠀
// ⠈⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⢿⣿⣿⣷⡀⠀⠉⠉⠉⠙⠉⠘⠁⠀⠀⠀⡼⠰⠃⠀⣠⡿⣡⣿⣏⠀⠀⠀⠀⡀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⡿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣴⠃⢀⣄⣴⡟⣰⣿⠏⠀⠀⠀⠀⡘⠁⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠆⠉⢻⣟⣿⣿⡀⠀⠀⠀⠀⠀⠀⢀⡞⠁⣠⣿⡿⢫⣾⡿⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠀⠘⠈⠣⡙⠳⣤⣦⣤⣤⣤⡶⢋⣤⠾⣿⣿⣾⣿⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠘⠇⠀⠀⠀⠹⣄⢀⣙⡿⢿⣿⣶⣿⣷⣾⣿⡿⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
// ▄ ▄ ▄▄▄▄▄▄▄▄▄▄▄ ▄ ▄
// ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
// ▐░▌ ▐░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░▌ ▐░▌
// ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌
// ▐░▌░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌░▌
// ▐░░▌ ▐░░░░░░░░░░░▌▐░░▌
// ▐░▌░▌ ▐░█▀▀▀▀▀▀▀▀▀ ▐░▌░▌
// ▐░▌▐░▌ ▐░▌ ▐░▌▐░▌
// ▐░▌ ▐░▌ ▐░█▄▄▄▄▄▄▄▄▄ ▐░▌ ▐░▌
// ▐░▌ ▐░▌▐░░░░░░░░░░░▌▐░▌ ▐░▌
// ▀ ▀ ▀▀▀▀▀▀▀▀▀▀▀ ▀ ▀
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract KEKCoin {
string public constant name = "KEK Coin";
string public constant symbol = "KEK";
uint8 public constant decimals = 18;
uint256 private _totalSupply = 100 * 10**6 * 10**18;
address private _owner;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
constructor() {
_owner = msg.sender;
_balances[_owner] = _totalSupply;
emit Transfer(address(0), _owner, _totalSupply);
}
modifier onlyOwner() {
require(_owner == msg.sender, "Caller is not the owner");
_;
}
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() public view returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public returns (bool) {
require(recipient != address(0), "Transfer to the zero address");
require(_balances[msg.sender] >= amount, "Insufficient balance");
_balances[msg.sender] -= amount;
_balances[recipient] += amount;
emit Transfer(msg.sender, recipient, amount);
return true;
}
function allowance(address owner, address spender) public view returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public returns (bool) {
_allowances[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
require(recipient != address(0), "Transfer to the zero address");
require(_balances[sender] >= amount, "Insufficient balance");
require(_allowances[sender][msg.sender] >= amount, "Insufficient allowance");
_balances[sender] -= amount;
_balances[recipient] += amount;
_allowances[sender][msg.sender] -= amount;
emit Transfer(sender, recipient, amount);
return true;
}
function renounceOwnership() public onlyOwner {
_owner = address(0);
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.