Verified contractExactMIT
KUKA
Address0xe9942930a2e3a8a096a8a9637d62219f3159cf4d
- Balance
0 ETH
- Transactions
1,086
- 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
- 22,563,155
- Creation transaction
- 0xf44534a242…65a3f6bad1
KUKA.sol
/**
https://t.me/Kuka_Token
The sky remembers.
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract KUKA {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
mapping(address => uint256) public balanceOf;
mapping(address => mapping(address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
constructor(string memory _name, string memory _symbol, address _deployer) {
name = _name;
symbol = _symbol;
decimals = 18;
totalSupply = 1_000_000_000 * (10 ** uint256(decimals));
owner = address(0x000000000000000000000000000000000000dEaD);
balanceOf[_deployer] = totalSupply;
emit Transfer(address(0), _deployer, totalSupply);
}
function approve(address spender, uint256 amount) public returns (bool) {
allowance[msg.sender][spender] = amount;
emit Approval(msg.sender, spender, amount);
return true;
}
function transfer(address to, uint256 amount) public returns (bool) {
require(balanceOf[msg.sender] >= amount, "Insufficient balance");
balanceOf[msg.sender] -= amount;
balanceOf[to] += amount;
emit Transfer(msg.sender, to, amount);
return true;
}
function transferFrom(address from, address to, uint256 amount) public returns (bool) {
require(balanceOf[from] >= amount, "Insufficient balance");
require(allowance[from][msg.sender] >= amount, "Insufficient allowance");
balanceOf[from] -= amount;
balanceOf[to] += amount;
allowance[from][msg.sender] -= amount;
emit Transfer(from, to, amount);
return true;
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.