Verified contractPartial
MyToken
Address0xda7475fb8f9c3d01f47a6f5c334310020cc28a7b
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.4.13
- Same code
Only this contract
Details
- Compiler
- solc 0.4.13+commit.0fb4cb1a
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 4,367,047
- Creation transaction
- 0x1d5aa3aa1e…96647cb6f2
MyToken.sol
pragma solidity ^0.4.13;
contract MyToken
{ string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => bool) public frozenAccount;
event FrozenFunds(address target,bool frozen);
event Transfer(address indexed from,address indexed to,uint256 value);
function MyToken(uint256 initialSupply,string tokenName,string tokenSymbol,uint8 decimalUnits)
{ balanceOf[msg.sender] = initialSupply;
totalSupply = initialSupply;
name = tokenName;
symbol = tokenSymbol;
decimals = decimalUnits;
}
function freezeAccount(address target,bool freeze)
{ frozenAccount[target] = freeze;
FrozenFunds(target, freeze);
}
function transfer(address _to, uint256 _value)
{ require(!frozenAccount[msg.sender]);
require (balanceOf[msg.sender] >= _value);
require (balanceOf[_to] + _value >= balanceOf[_to]);
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
Transfer(msg.sender, _to, _value);
}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
},
"remappings": []
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.