ETH Price: $3,407.67 (+3.42%)

Token

X (X)
 

Overview

Max Total Supply

1,000,000,000 X

Holders

514

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Token

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-09-25
*/

pragma solidity ^0.4.16;

contract SafeMath {
    function safeSub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    function safeAdd(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        assert(c >= a && c >= b);
        return c;
    }
}


contract ERC20 is SafeMath {
    uint256 public totalSupply;
    function balanceOf( address who ) constant public returns (uint256 value);

    function transfer( address to, uint256 value) public returns (bool ok);
    function transferFrom( address from, address to, uint256 value) public returns (bool ok);
    function approve( address spender, uint256 value ) public returns (bool ok);

    event Transfer( address indexed from, address indexed to, uint256 value);
    event Approval( address indexed owner, address indexed spender, uint256 value);
}

 
contract Token is ERC20 {
    string public constant version  = "1.0";
    string public constant name     = "X";
    string public constant symbol   = "X";
    uint8  public constant decimals = 18;


    mapping(address => mapping (address => uint256)) allowed;
    mapping(address => uint256) balances;

    function Token(
        uint256 initialSupply,
        string tokenName,
        string tokenSymbol
    ) public {
        totalSupply = initialSupply * 10 ** uint256(decimals);
        balances[msg.sender] = totalSupply;
        tokenName = name; 
        tokenSymbol = symbol; 
    }
    
    
    function _transfer(address _from, address _to, uint256 _value) internal {
        require(_to != 0x0);                               
        require(balances[_from] >= _value);                
        require(balances[_to] + _value > balances[_to]); 
        balances[_from] -= _value;                         
        balances[_to] += _value;                           
        emit Transfer(_from, _to, _value);
    }
    
    function balanceOf(address _who) public constant returns (uint256) {
        return balances[_who];
    }

    function transfer(address _to, uint256 _value) public returns (bool success) {
        balances[msg.sender] = safeSub(balances[msg.sender], _value);
        balances[_to] = safeAdd(balances[_to], _value);
        emit Transfer(msg.sender, _to, _value);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        uint256 _allowance = allowed[_from][msg.sender];
        balances[_to] = safeAdd(balances[_to], _value);
        balances[_from] = safeSub(balances[_from], _value);
        allowed[_from][msg.sender] = safeSub(_allowance, _value);
        emit Transfer(_from, _to, _value);
        return true;
    }

    function approve(address _spender, uint256 _value) public returns (bool success) {
        require((_value == 0) || (allowed[msg.sender][_spender] == 0));
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }

}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_who","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}]

6060604052341561000f57600080fd5b6040516106593803806106598339810160405280805191906020018051820191906020018051670de0b6b3a764000085026000818155600160a060020a03331681526002602052604090819020919091559201919050805190810160405280600181526020017f5800000000000000000000000000000000000000000000000000000000000000815250915060408051908101604052600181527f5800000000000000000000000000000000000000000000000000000000000000602090910152505050610577806100e26000396000f3006060604052600436106100985763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461009d578063095ea7b31461012757806318160ddd1461015d57806323b872dd14610182578063313ce567146101aa57806354fd4d50146101d357806370a08231146101e657806395d89b411461009d578063a9059cbb14610205575b600080fd5b34156100a857600080fd5b6100b0610227565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100ec5780820151838201526020016100d4565b50505050905090810190601f1680156101195780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561013257600080fd5b610149600160a060020a036004351660243561025e565b604051901515815260200160405180910390f35b341561016857600080fd5b610170610304565b60405190815260200160405180910390f35b341561018d57600080fd5b610149600160a060020a036004358116906024351660443561030a565b34156101b557600080fd5b6101bd61040b565b60405160ff909116815260200160405180910390f35b34156101de57600080fd5b6100b0610410565b34156101f157600080fd5b610170600160a060020a0360043516610447565b341561021057600080fd5b610149600160a060020a0360043516602435610462565b60408051908101604052600181527f5800000000000000000000000000000000000000000000000000000000000000602082015281565b60008115806102905750600160a060020a03338116600090815260016020908152604080832093871683529290522054155b151561029b57600080fd5b600160a060020a03338116600081815260016020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b600160a060020a03808416600090815260016020908152604080832033851684528252808320549386168352600290915281205490919061034b9084610515565b600160a060020a03808616600090815260026020526040808220939093559087168152205461037a9084610539565b600160a060020a03861660009081526002602052604090205561039d8184610539565b600160a060020a03808716600081815260016020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b601281565b60408051908101604052600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a031660009081526002602052604090205490565b600160a060020a0333166000908152600260205260408120546104859083610539565b600160a060020a0333811660009081526002602052604080822093909355908516815220546104b49083610515565b600160a060020a0380851660008181526002602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600082820183811080159061052a5750828110155b151561053257fe5b9392505050565b60008282111561054557fe5b509003905600a165627a7a72305820daf4a56ae416a018fd6019ca77fbc6eb5a438f46188dba730b095ffb259250750029000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015800000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6060604052600436106100985763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461009d578063095ea7b31461012757806318160ddd1461015d57806323b872dd14610182578063313ce567146101aa57806354fd4d50146101d357806370a08231146101e657806395d89b411461009d578063a9059cbb14610205575b600080fd5b34156100a857600080fd5b6100b0610227565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100ec5780820151838201526020016100d4565b50505050905090810190601f1680156101195780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561013257600080fd5b610149600160a060020a036004351660243561025e565b604051901515815260200160405180910390f35b341561016857600080fd5b610170610304565b60405190815260200160405180910390f35b341561018d57600080fd5b610149600160a060020a036004358116906024351660443561030a565b34156101b557600080fd5b6101bd61040b565b60405160ff909116815260200160405180910390f35b34156101de57600080fd5b6100b0610410565b34156101f157600080fd5b610170600160a060020a0360043516610447565b341561021057600080fd5b610149600160a060020a0360043516602435610462565b60408051908101604052600181527f5800000000000000000000000000000000000000000000000000000000000000602082015281565b60008115806102905750600160a060020a03338116600090815260016020908152604080832093871683529290522054155b151561029b57600080fd5b600160a060020a03338116600081815260016020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60005481565b600160a060020a03808416600090815260016020908152604080832033851684528252808320549386168352600290915281205490919061034b9084610515565b600160a060020a03808616600090815260026020526040808220939093559087168152205461037a9084610539565b600160a060020a03861660009081526002602052604090205561039d8184610539565b600160a060020a03808716600081815260016020908152604080832033861684529091529081902093909355908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a3506001949350505050565b601281565b60408051908101604052600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600160a060020a031660009081526002602052604090205490565b600160a060020a0333166000908152600260205260408120546104859083610539565b600160a060020a0333811660009081526002602052604080822093909355908516815220546104b49083610515565b600160a060020a0380851660008181526002602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350600192915050565b600082820183811080159061052a5750828110155b151561053257fe5b9392505050565b60008282111561054557fe5b509003905600a165627a7a72305820daf4a56ae416a018fd6019ca77fbc6eb5a438f46188dba730b095ffb259250750029

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

000000000000000000000000000000000000000000000000000000003b9aca00000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000001580000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015800000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : initialSupply (uint256): 1000000000
Arg [1] : tokenName (string): X
Arg [2] : tokenSymbol (string): X

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 000000000000000000000000000000000000000000000000000000003b9aca00
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [4] : 5800000000000000000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [6] : 5800000000000000000000000000000000000000000000000000000000000000


Swarm Source

bzzr://daf4a56ae416a018fd6019ca77fbc6eb5a438f46188dba730b095ffb25925075
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.