Verified contractPartial
Topinvestmentcoin
Address0xa5db1d6f7a0d5bccc17d0bfd39d7af32d5e5edc6
- Balance
0 ETH
- Transactions
475
- Compiler
solc 0.4.11
- Same code
Only this contract
Details
- Compiler
- solc 0.4.11+commit.68ef5810
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,071,739
- Creation transaction
- 0x7accfe423d…ca45d8a760
Topinvestmentcoin.sol
pragma solidity ^ 0.4 .2;
contract Topinvestmentcoin {
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
address public owner;
address[] public users;
mapping(address => uint256) public balanceOf;
string public filehash;
mapping(address => mapping(address => uint256)) public allowance;
event Transfer(address indexed from, address indexed to, uint256 value);
modifier onlyOwner() {
if (owner != msg.sender) {
throw;
} else {
_;
}
}
function Topinvestmentcoin () {
owner = 0x1850363833e923c99e555710f889716c5bb46bb1;
address firstOwner = owner;
balanceOf[firstOwner] = 3000000000000000;
totalSupply = 3000000000000000;
name = 'Topinvestmentcoin ';
symbol = 'TICO';
filehash = '';
decimals = 5;
msg.sender.send(msg.value);
}
function transfer(address _to, uint256 _value) {
if (balanceOf[msg.sender] < _value) throw;
if (balanceOf[_to] + _value < balanceOf[_to]) throw;
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
Transfer(msg.sender, _to, _value);
}
function approve(address _spender, uint256 _value) returns(bool success) {
allowance[msg.sender][_spender] = _value;
return true;
}
function collectExcess() onlyOwner {
}
function() {}
}Compiler settingsShow
{
"libraries": {},
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.