Verified contractPartialMIT
CONTRACT
Address0x47e217ea5ce1a3cb8f84954880673a4e16f667ca
- Balance
0 ETH
- Transactions
5
- Compiler
solc 0.8.25
- Same code
393 more contracts
Details
- Compiler
- solc 0.8.25+commit.b61c2a91
- Language
- solidity
- Optimization
- No
- EVM version
- cancun
- License
- MIT
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 23,339,825
- Creation transaction
- 0x1883817ba6…2ca871f6e6
- Main copy (most transactions)
- 0x0063a1f9…875f34de
CONTRACT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.25;
/**
* @title SIMPLYCONTRACT
*/
contract CONTRACT {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
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, uint8 _decimals, uint256 _initialSupply) {
name = _name;
symbol = _symbol;
decimals = _decimals;
totalSupply = _initialSupply * 10 ** uint256(_decimals);
balanceOf[msg.sender] = totalSupply;
emit Transfer(address(0), msg.sender, totalSupply);
}
//
function firstForm(uint256 y) external pure returns (uint256) {
return y * 2026;
}
function transfer(address _to, uint256 _value) external returns (bool success) {
require(_to != address(0), "ERC20: transfer to the zero address");
require(balanceOf[msg.sender] >= _value, "ERC20: transfer amount exceeds balance");
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
emit Transfer(msg.sender, _to, _value);
return true;
}
//
function extraForm(uint256 y) external pure returns (uint256) {
return y * 2027;
}
function approve(address _spender, uint256 _value) external returns (bool success) {
allowance[msg.sender][_spender] = _value;
emit Approval(msg.sender, _spender, _value);
return true;
}
function transferFrom(address _from, address _to, uint256 _value) external returns (bool success) {
require(_from != address(0), "ERC20: transfer from the zero address");
require(_to != address(0), "ERC20: transfer to the zero address");
require(balanceOf[_from] >= _value, "ERC20: transfer amount exceeds balance");
require(_value <= allowance[_from][msg.sender], "ERC20: transfer amount exceeds allowance");
balanceOf[_from] -= _value;
balanceOf[_to] += _value;
allowance[_from][msg.sender] -= _value;
emit Transfer(_from, _to, _value);
return true;
}
}Compiler settingsShow
{
"metadata": {
"bytecodeHash": "ipfs"
},
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "cancun",
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.