ETH Price: $3,351.53 (-1.26%)

Contract

0x273694b5C949A57CB997774DB6e9996630eFf3D1
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Latest 1 internal transaction

Advanced mode:
Parent Transaction Hash Block From To
99178292020-04-21 19:57:191676 days ago1587499039  Contract Creation0 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.6.1+commit.e6f7d5a4

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license
/**
 *Submitted for verification at Etherscan.io on 2020-04-21
*/

contract Token {
    string public symbol = "";
    string public name = "";
    uint8 public constant decimals = 18;
    uint256 _totalSupply = 0;
    address owner = 0x0000000000000000000000000000000000000000;
    bool setupDone = false;
   
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
 
    mapping(address => uint256) balances;
 
    mapping(address => mapping (address => uint256)) allowed;
 
    constructor(address adr) public {
        owner = adr;        
    }
   
    function SetupToken(string memory tokenName, string memory tokenSymbol, uint256 tokenSupply) public
    {
        if (msg.sender == owner && setupDone == false)
        {
            symbol = tokenSymbol;
            name = tokenName;
            _totalSupply = tokenSupply * 1000000000000000000;
            balances[owner] = _totalSupply;
            setupDone = true;
        }
    }
 
    function totalSupply() public view returns (uint256 totalSupply) {        
        return _totalSupply;
    }
 
    function balanceOf(address _owner) public view returns (uint256 balance) {
        return balances[_owner];
    }
 
    function transfer(address _to, uint256 _amount) public returns (bool success) {
        if (balances[msg.sender] >= _amount
            && _amount > 0
            && balances[_to] + _amount > balances[_to]) {
            balances[msg.sender] -= _amount;
            balances[_to] += _amount;
            emit Transfer(msg.sender, _to, _amount);
            return true;
        } else {
            return false;
        }
    }
 
    function transferFrom(
        address _from,
        address _to,
        uint256 _amount
    )  public returns (bool success) {
        if (balances[_from] >= _amount
            && allowed[_from][msg.sender] >= _amount
            && _amount > 0
            && balances[_to] + _amount > balances[_to]) {
            balances[_from] -= _amount;
            allowed[_from][msg.sender] -= _amount;
            balances[_to] += _amount;
            emit Transfer(_from, _to, _amount);
            return true;
        } else {
            return false;
        }
    }
 
    function approve(address _spender, uint256 _amount) public returns (bool success) {
        allowed[msg.sender][_spender] = _amount;
        emit Approval(msg.sender, _spender, _amount);
        return true;
    }
 
    function allowance(address _owner, address _spender) public view returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"adr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_owner","type":"address"},{"indexed":true,"internalType":"address","name":"_spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_from","type":"address"},{"indexed":true,"internalType":"address","name":"_to","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"string","name":"tokenName","type":"string"},{"internalType":"string","name":"tokenSymbol","type":"string"},{"internalType":"uint256","name":"tokenSupply","type":"uint256"}],"name":"SetupToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"totalSupply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]

60a060408190526000608081905261001791816100a1565b50604080516020810191829052600090819052610036916001916100a1565b506000600255600380546001600160a81b031916905534801561005857600080fd5b506040516109a83803806109a88339818101604052602081101561007b57600080fd5b5051600380546001600160a01b0319166001600160a01b0390921691909117905561013c565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100e257805160ff191683800117855561010f565b8280016001018555821561010f579182015b8281111561010f5782518255916020019190600101906100f4565b5061011b92915061011f565b5090565b61013991905b8082111561011b5760008155600101610125565b90565b61085d8061014b6000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a08231146101ce57806395d89b41146101f4578063a9059cbb146101fc578063b6d2a9b914610228578063dd62ed3e146103595761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab610387565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b038135169060200135610414565b604080519115158252519081900360200190f35b61016861047b565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b03813581169160208101359091169060400135610482565b6101b8610594565b6040805160ff9092168252519081900360200190f35b610168600480360360208110156101e457600080fd5b50356001600160a01b0316610599565b6100ab6105b4565b61014c6004803603604081101561021257600080fd5b506001600160a01b03813516906020013561060f565b6103576004803603606081101561023e57600080fd5b81019060208101813564010000000081111561025957600080fd5b82018360208201111561026b57600080fd5b8035906020019184600183028401116401000000008311171561028d57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156102e057600080fd5b8201836020820111156102f257600080fd5b8035906020019184600183028401116401000000008311171561031457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506106cd915050565b005b6101686004803603604081101561036f57600080fd5b506001600160a01b0381358116916020013516610764565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040c5780601f106103e15761010080835404028352916020019161040c565b820191906000526020600020905b8154815290600101906020018083116103ef57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6002545b90565b6001600160a01b03831660009081526004602052604081205482118015906104cd57506001600160a01b03841660009081526005602090815260408083203384529091529020548211155b80156104d95750600082115b80156104fe57506001600160a01b038316600090815260046020526040902054828101115b15610589576001600160a01b0380851660008181526004602081815260408084208054899003905560058252808420338552825280842080548990039055948816808452918152918490208054870190558351868152935190937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a350600161058d565b5060005b9392505050565b601281565b6001600160a01b031660009081526004602052604090205490565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040c5780601f106103e15761010080835404028352916020019161040c565b33600090815260046020526040812054821180159061062e5750600082115b801561065357506001600160a01b038316600090815260046020526040902054828101115b156106c557336000818152600460209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610475565b506000610475565b6003546001600160a01b0316331480156106f15750600354600160a01b900460ff16155b1561075f57815161070990600090602085019061078f565b50825161071d90600190602086019061078f565b50670de0b6b3a764000081026002819055600380546001600160a01b0316600090815260046020526040902091909155805460ff60a01b1916600160a01b1790555b505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106107d057805160ff19168380011785556107fd565b828001600101855582156107fd579182015b828111156107fd5782518255916020019190600101906107e2565b5061080992915061080d565b5090565b61047f91905b80821115610809576000815560010161081356fea26469706673582212205b8878f5587a0571ced97bd287c020c37afa59d79a69a76edfcff817bbe1af8a64736f6c634300060100330000000000000000000000008ab270cd3ef19d5b432bbd5abe3bc148fd09408a

Deployed Bytecode

0x608060405234801561001057600080fd5b506004361061009e5760003560e01c806370a082311161006657806370a08231146101ce57806395d89b41146101f4578063a9059cbb146101fc578063b6d2a9b914610228578063dd62ed3e146103595761009e565b806306fdde03146100a3578063095ea7b31461012057806318160ddd1461016057806323b872dd1461017a578063313ce567146101b0575b600080fd5b6100ab610387565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61014c6004803603604081101561013657600080fd5b506001600160a01b038135169060200135610414565b604080519115158252519081900360200190f35b61016861047b565b60408051918252519081900360200190f35b61014c6004803603606081101561019057600080fd5b506001600160a01b03813581169160208101359091169060400135610482565b6101b8610594565b6040805160ff9092168252519081900360200190f35b610168600480360360208110156101e457600080fd5b50356001600160a01b0316610599565b6100ab6105b4565b61014c6004803603604081101561021257600080fd5b506001600160a01b03813516906020013561060f565b6103576004803603606081101561023e57600080fd5b81019060208101813564010000000081111561025957600080fd5b82018360208201111561026b57600080fd5b8035906020019184600183028401116401000000008311171561028d57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092959493602081019350359150506401000000008111156102e057600080fd5b8201836020820111156102f257600080fd5b8035906020019184600183028401116401000000008311171561031457600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506106cd915050565b005b6101686004803603604081101561036f57600080fd5b506001600160a01b0381358116916020013516610764565b60018054604080516020600284861615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040c5780601f106103e15761010080835404028352916020019161040c565b820191906000526020600020905b8154815290600101906020018083116103ef57829003601f168201915b505050505081565b3360008181526005602090815260408083206001600160a01b038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a35060015b92915050565b6002545b90565b6001600160a01b03831660009081526004602052604081205482118015906104cd57506001600160a01b03841660009081526005602090815260408083203384529091529020548211155b80156104d95750600082115b80156104fe57506001600160a01b038316600090815260046020526040902054828101115b15610589576001600160a01b0380851660008181526004602081815260408084208054899003905560058252808420338552825280842080548990039055948816808452918152918490208054870190558351868152935190937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a350600161058d565b5060005b9392505050565b601281565b6001600160a01b031660009081526004602052604090205490565b6000805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040c5780601f106103e15761010080835404028352916020019161040c565b33600090815260046020526040812054821180159061062e5750600082115b801561065357506001600160a01b038316600090815260046020526040902054828101115b156106c557336000818152600460209081526040808320805487900390556001600160a01b03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610475565b506000610475565b6003546001600160a01b0316331480156106f15750600354600160a01b900460ff16155b1561075f57815161070990600090602085019061078f565b50825161071d90600190602086019061078f565b50670de0b6b3a764000081026002819055600380546001600160a01b0316600090815260046020526040902091909155805460ff60a01b1916600160a01b1790555b505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205490565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106107d057805160ff19168380011785556107fd565b828001600101855582156107fd579182015b828111156107fd5782518255916020019190600101906107e2565b5061080992915061080d565b5090565b61047f91905b80821115610809576000815560010161081356fea26469706673582212205b8878f5587a0571ced97bd287c020c37afa59d79a69a76edfcff817bbe1af8a64736f6c63430006010033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000008ab270cd3ef19d5b432bbd5abe3bc148fd09408a

-----Decoded View---------------
Arg [0] : adr (address): 0x8aB270Cd3Ef19d5B432BBD5ABE3bc148Fd09408a

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000008ab270cd3ef19d5b432bbd5abe3bc148fd09408a


Deployed Bytecode Sourcemap

0:2683:0:-:0;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;0:2683:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;54:23;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;54:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2310:217;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2310:217:0;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;1025:111;;;:::i;:::-;;;;;;;;;;;;;;;;1717:584;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1717:584:0;;;;;;;;;;;;;;;;;:::i;84:35::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;;1145:115;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1145:115:0;-1:-1:-1;;;;;1145:115:0;;:::i;22:25::-;;;:::i;1269:439::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;1269:439:0;;;;;;;;:::i;620:396::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;620:396:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;620:396:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;620:396:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;620:396:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;620:396:0;;;;;;;;-1:-1:-1;620:396:0;;-1:-1:-1;;21:11;5:28;;2:2;;;46:1;43;36:12;2:2;620:396:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;620:396:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;620:396:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;620:396:0;;-1:-1:-1;;620:396:0;;;-1:-1:-1;620:396:0;;-1:-1:-1;;620:396:0:i;:::-;;2536:144;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2536:144:0;;;;;;;;;;:::i;54:23::-;;;;;;;;;;;;;;;-1:-1:-1;;54:23:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2310:217::-;2411:10;2378:12;2403:19;;;:7;:19;;;;;;;;-1:-1:-1;;;;;2403:29:0;;;;;;;;;;;:39;;;2458;;;;;;;2378:12;;2403:29;;2411:10;;2458:39;;;;;;;;-1:-1:-1;2515:4:0;2310:217;;;;;:::o;1025:111::-;1116:12;;1025:111;;:::o;1717:584::-;-1:-1:-1;;;;;1864:15:0;;1835:12;1864:15;;;:8;:15;;;;;;:26;-1:-1:-1;1864:26:0;;;:80;;-1:-1:-1;;;;;;1907:14:0;;;;;;:7;:14;;;;;;;;1922:10;1907:26;;;;;;;;:37;-1:-1:-1;1907:37:0;1864:80;:108;;;;;1971:1;1961:7;:11;1864:108;:164;;;;-1:-1:-1;;;;;;2015:13:0;;;;;;:8;:13;;;;;;1989:23;;;:39;1864:164;1860:434;;;-1:-1:-1;;;;;2045:15:0;;;;;;;:8;:15;;;;;;;;:26;;;;;;;2086:7;:14;;;;;2101:10;2086:26;;;;;;;:37;;;;;;;2138:13;;;;;;;;;;;;;:24;;;;;;2182:29;;;;;;;2138:13;;2182:29;;;;;;;;;-1:-1:-1;2233:4:0;2226:11;;1860:434;-1:-1:-1;2277:5:0;1860:434;1717:584;;;;;:::o;84:35::-;117:2;84:35;:::o;1145:115::-;-1:-1:-1;;;;;1236:16:0;1201:15;1236:16;;;:8;:16;;;;;;;1145:115::o;22:25::-;;;;;;;;;;;;;;;-1:-1:-1;;22:25:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1269:439;1371:10;1333:12;1362:20;;;:8;:20;;;;;;:31;-1:-1:-1;1362:31:0;;;:59;;;1420:1;1410:7;:11;1362:59;:115;;;;-1:-1:-1;;;;;;1464:13:0;;;;;;:8;:13;;;;;;1438:23;;;:39;1362:115;1358:343;;;1503:10;1494:20;;;;:8;:20;;;;;;;;:31;;;;;;;-1:-1:-1;;;;;1540:13:0;;;;;;;;;:24;;;;;;1584:34;;;;;;;1540:13;;1503:10;1584:34;;;;;;;;;;;-1:-1:-1;1640:4:0;1633:11;;1358:343;-1:-1:-1;1684:5:0;1677:12;;620:396;754:5;;-1:-1:-1;;;;;754:5:0;740:10;:19;:41;;;;-1:-1:-1;763:9:0;;-1:-1:-1;;;763:9:0;;;;:18;740:41;736:273;;;807:20;;;;:6;;:20;;;;;:::i;:::-;-1:-1:-1;842:16:0;;;;:4;;:16;;;;;:::i;:::-;-1:-1:-1;902:19:0;888:33;;873:12;:48;;;945:5;;;-1:-1:-1;;;;;945:5:0;936:15;;;;:8;:15;;;;;:30;;;;981:16;;-1:-1:-1;;;;981:16:0;-1:-1:-1;;;981:16:0;;;736:273;620:396;;;:::o;2536:144::-;-1:-1:-1;;;;;2647:15:0;;;2610:17;2647:15;;;:7;:15;;;;;;;;:25;;;;;;;;;;;;;2536:144::o;0:2683::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;0:2683:0;;;-1:-1:-1;0:2683:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://5b8878f5587a0571ced97bd287c020c37afa59d79a69a76edfcff817bbe1af8a

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.