Verified contractPartialMIT
TEST4
Address0xfe69edb1ffbc5583564f00dfde04273c7a7e72f5
- Balance
0 ETH
- Transactions
29
- Compiler
solc 0.8.20
- Same code
18 more contracts
Details
- Compiler
- solc 0.8.20+commit.a1b79de6
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- paris
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 25,045,780
- Creation transaction
- 0x9e379e3b17…29971c90cc
- Main copy (most transactions)
- 0x0d3e2409…b6c53447
TEST4.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/// @title TEST4
/// @custom:description wooow testestetsts
/// @custom:twitter https://x.com/test4
contract TEST4 {
string public name;
string public symbol;
uint8 public constant decimals = 18;
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, uint256 _supplyUnits) {
name = _name;
symbol = _symbol;
owner = msg.sender;
totalSupply = _supplyUnits * 1e18;
balanceOf[msg.sender] = totalSupply;
emit Transfer(address(0), msg.sender, totalSupply);
}
function approve(address spender, uint256 value) external returns (bool) {
allowance[msg.sender][spender] = value;
emit Approval(msg.sender, spender, value);
return true;
}
function transfer(address to, uint256 value) external returns (bool) {
return _transfer(msg.sender, to, value);
}
function transferFrom(address from, address to, uint256 value) external returns (bool) {
uint256 a = allowance[from][msg.sender];
if (a != type(uint256).max) {
require(a >= value, "ERC20: insufficient allowance");
allowance[from][msg.sender] = a - value;
}
return _transfer(from, to, value);
}
function _transfer(address from, address to, uint256 value) internal returns (bool) {
require(balanceOf[from] >= value, "ERC20: insufficient balance");
unchecked {
balanceOf[from] -= value;
balanceOf[to] += value;
}
emit Transfer(from, to, value);
return true;
}
}
Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"runs": 200,
"enabled": true
},
"evmVersion": "paris"
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.