ETH Price: $2,569.94 (+0.73%)

Token

ekkoblockTokens (ebkc)
 

Overview

Max Total Supply

2,100,000,000 ebkc

Holders

832

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
20,000 ebkc

Value
$0.00
0x132b73dedab7a006c15ab84ec79afd1f2fdfab99
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:
CustomToken

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.19;

contract BaseToken {
    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);

    function _transfer(address _from, address _to, uint _value) internal {
        require(_to != 0x0);
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value > balanceOf[_to]);
        uint previousBalances = balanceOf[_from] + balanceOf[_to];
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        assert(balanceOf[_from] + balanceOf[_to] == previousBalances);
        Transfer(_from, _to, _value);
    }

    function transfer(address _to, uint256 _value) public returns (bool success) {
        _transfer(msg.sender, _to, _value);
        return true;
    }

    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_value <= allowance[_from][msg.sender]);
        allowance[_from][msg.sender] -= _value;
        _transfer(_from, _to, _value);
        return true;
    }

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

contract ICOToken is BaseToken {
    // 1 ether = icoRatio token
    uint256 public icoRatio;
    uint256 public icoBegintime;
    uint256 public icoEndtime;
    address public icoSender;
    address public icoHolder;

    event ICO(address indexed from, uint256 indexed value, uint256 tokenValue);
    event Withdraw(address indexed from, address indexed holder, uint256 value);

    function ico() public payable {
        require(now >= icoBegintime && now <= icoEndtime);
        uint256 tokenValue = (msg.value * icoRatio * 10 ** uint256(decimals)) / (1 ether / 1 wei);
        if (tokenValue == 0 || balanceOf[icoSender] < tokenValue) {
            revert();
        }
        _transfer(icoSender, msg.sender, tokenValue);
        ICO(msg.sender, msg.value, tokenValue);
    }

    function withdraw() public {
        uint256 balance = this.balance;
        icoHolder.transfer(balance);
        Withdraw(msg.sender, icoHolder, balance);
    }
}

contract LockToken is BaseToken {
    struct LockMeta {
        uint256 amount;
        uint256 endtime;
    }
    
    mapping (address => LockMeta) public lockedAddresses;

    function _transfer(address _from, address _to, uint _value) internal {
        require(balanceOf[_from] >= _value);
        LockMeta storage meta = lockedAddresses[_from];
        require(now >= meta.endtime || meta.amount <= balanceOf[_from] - _value);
        super._transfer(_from, _to, _value);
    }
}

contract CustomToken is BaseToken, ICOToken, LockToken {
    function CustomToken() public {
        totalSupply = 2100000000000000000000000000;
        name = 'ekkoblockTokens';
        symbol = 'ebkc';
        decimals = 18;
        balanceOf[0x1a5e273c23518af490ca89d31c23dadd9f3df3a5] = totalSupply;
        Transfer(address(0), 0x1a5e273c23518af490ca89d31c23dadd9f3df3a5, totalSupply);

        icoRatio = 2000;
        icoBegintime = 1525104000;
        icoEndtime = 1546185600;
        icoSender = 0xce2f76a6b7d3fa0a2e47161536f34db869710b70;
        icoHolder = 0xce2f76a6b7d3fa0a2e47161536f34db869710b70;

        lockedAddresses[0xfb955f286e3366409b6cf1ee858648609c65fc2c] = LockMeta({amount: 630000000000000000000000000, endtime: 1556640000});
    }

    function() public payable {
        ico();
    }
}

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":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"ico","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","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":true,"inputs":[],"name":"icoHolder","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"lockedAddresses","outputs":[{"name":"amount","type":"uint256"},{"name":"endtime","type":"uint256"}],"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"},{"constant":true,"inputs":[],"name":"icoRatio","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoEndtime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoSender","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"icoBegintime","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"value","type":"uint256"},{"indexed":false,"name":"tokenValue","type":"uint256"}],"name":"ICO","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"holder","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Withdraw","type":"event"},{"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"}]

6060604052341561000f57600080fd5b6b06c9144c1c690d4cb400000060035560408051908101604052600f81527f656b6b6f626c6f636b546f6b656e730000000000000000000000000000000000602082015260009080516100669291602001906101fc565b5060408051908101604052600481527f65626b6300000000000000000000000000000000000000000000000000000000602082015260019080516100ae9291602001906101fc565b506002805460ff19166012179055600354731a5e273c23518af490ca89d31c23dadd9f3df3a5600081815260046020527f3d1707d74ac71f81e1dac171e5bf94afd3385315686f64609fcb56a7480f0c4f83905590917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060405190815260200160405180910390a36107d0600655635ae73d80600755635c28eb806008556009805473ce2f76a6b7d3fa0a2e47161536f34db869710b70600160a060020a03199182168117909255600a80549091169091179055604080519081016040526b02091fb06eec50ca360000008152635cc8710060208083019190915273fb955f286e3366409b6cf1ee858648609c65fc2c600052600b90527fcef94cf9d5f531e188dacb37eefc421db45865ecade10bd867c155bfcca02f3481518155602082015160019091015550610297565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061023d57805160ff191683800117855561026a565b8280016001018555821561026a579182015b8281111561026a57825182559160200191906001019061024f565b5061027692915061027a565b5090565b61029491905b808211156102765760008155600101610280565b90565b6108e7806102a66000396000f3006060604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100fa578063095ea7b31461018457806318160ddd146101ba57806323b872dd146101df578063313ce567146102075780633ccfd60b146102305780635d452201146100f057806370a082311461024357806395d89b4114610262578063a2ebb20b14610275578063a5bbd67a146102a4578063a9059cbb146102db578063b3b8c620146102fd578063d211fe8614610310578063dd62ed3e14610323578063de28fc1d14610348578063e6136d841461035b575b6100f861036e565b005b341561010557600080fd5b61010d610436565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610149578082015183820152602001610131565b50505050905090810190601f1680156101765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018f57600080fd5b6101a6600160a060020a03600435166024356104d4565b604051901515815260200160405180910390f35b34156101c557600080fd5b6101cd610540565b60405190815260200160405180910390f35b34156101ea57600080fd5b6101a6600160a060020a0360043581169060243516604435610546565b341561021257600080fd5b61021a6105bd565b60405160ff909116815260200160405180910390f35b341561023b57600080fd5b6100f86105c6565b341561024e57600080fd5b6101cd600160a060020a0360043516610645565b341561026d57600080fd5b61010d610657565b341561028057600080fd5b6102886106c2565b604051600160a060020a03909116815260200160405180910390f35b34156102af57600080fd5b6102c3600160a060020a03600435166106d1565b60405191825260208201526040908101905180910390f35b34156102e657600080fd5b6101a6600160a060020a03600435166024356106ea565b341561030857600080fd5b6101cd610700565b341561031b57600080fd5b6101cd610706565b341561032e57600080fd5b6101cd600160a060020a036004358116906024351661070c565b341561035357600080fd5b610288610729565b341561036657600080fd5b6101cd610738565b6000600754421015801561038457506008544211155b151561038f57600080fd5b600254600654670de0b6b3a76400009160ff16600a0a34909102020490508015806103d45750600954600160a060020a03166000908152600460205260409020548190105b156103de57600080fd5b6009546103f590600160a060020a0316338361073e565b3433600160a060020a03167f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac08360405190815260200160405180910390a350565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104cc5780601f106104a1576101008083540402835291602001916104cc565b820191906000526020600020905b8154815290600101906020018083116104af57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a0380841660009081526005602090815260408083203390941683529290529081205482111561057b57600080fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220805483900390556105b384848461073e565b5060019392505050565b60025460ff1681565b600a54600160a060020a0330811631911681156108fc0282604051600060405180830381858888f1935050505015156105fe57600080fd5b600a54600160a060020a039081169033167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8360405190815260200160405180910390a350565b60046020526000908152604090205481565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104cc5780601f106104a1576101008083540402835291602001916104cc565b600a54600160a060020a031681565b600b602052600090815260409020805460019091015482565b60006106f733848461073e565b50600192915050565b60065481565b60085481565b600560209081526000928352604080842090915290825290205481565b600954600160a060020a031681565b60075481565b600160a060020a0383166000908152600460205260408120548290101561076457600080fd5b50600160a060020a0383166000908152600b602052604090206001810154421015806107ae5750600160a060020a0384166000908152600460205260409020548154908390039011155b15156107b957600080fd5b6107c48484846107ca565b50505050565b6000600160a060020a03831615156107e157600080fd5b600160a060020a0384166000908152600460205260409020548290101561080757600080fd5b600160a060020a0383166000908152600460205260409020548281011161082d57600080fd5b50600160a060020a03828116600090815260046020526040808220805493871683529120805484810382558254850192839055905492019101811461086e57fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050505600a165627a7a72305820589e45d878495705e3dd800598b3e5bcf0278fe3f671a3250ae5bf24a49482950029

Deployed Bytecode

0x6060604052600436106100f05763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100fa578063095ea7b31461018457806318160ddd146101ba57806323b872dd146101df578063313ce567146102075780633ccfd60b146102305780635d452201146100f057806370a082311461024357806395d89b4114610262578063a2ebb20b14610275578063a5bbd67a146102a4578063a9059cbb146102db578063b3b8c620146102fd578063d211fe8614610310578063dd62ed3e14610323578063de28fc1d14610348578063e6136d841461035b575b6100f861036e565b005b341561010557600080fd5b61010d610436565b60405160208082528190810183818151815260200191508051906020019080838360005b83811015610149578082015183820152602001610131565b50505050905090810190601f1680156101765780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018f57600080fd5b6101a6600160a060020a03600435166024356104d4565b604051901515815260200160405180910390f35b34156101c557600080fd5b6101cd610540565b60405190815260200160405180910390f35b34156101ea57600080fd5b6101a6600160a060020a0360043581169060243516604435610546565b341561021257600080fd5b61021a6105bd565b60405160ff909116815260200160405180910390f35b341561023b57600080fd5b6100f86105c6565b341561024e57600080fd5b6101cd600160a060020a0360043516610645565b341561026d57600080fd5b61010d610657565b341561028057600080fd5b6102886106c2565b604051600160a060020a03909116815260200160405180910390f35b34156102af57600080fd5b6102c3600160a060020a03600435166106d1565b60405191825260208201526040908101905180910390f35b34156102e657600080fd5b6101a6600160a060020a03600435166024356106ea565b341561030857600080fd5b6101cd610700565b341561031b57600080fd5b6101cd610706565b341561032e57600080fd5b6101cd600160a060020a036004358116906024351661070c565b341561035357600080fd5b610288610729565b341561036657600080fd5b6101cd610738565b6000600754421015801561038457506008544211155b151561038f57600080fd5b600254600654670de0b6b3a76400009160ff16600a0a34909102020490508015806103d45750600954600160a060020a03166000908152600460205260409020548190105b156103de57600080fd5b6009546103f590600160a060020a0316338361073e565b3433600160a060020a03167f4a987bc3d04b32db133ad9a3c7c0d8ecc441eb56f45a62b92c38384c095e7ac08360405190815260200160405180910390a350565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104cc5780601f106104a1576101008083540402835291602001916104cc565b820191906000526020600020905b8154815290600101906020018083116104af57829003601f168201915b505050505081565b600160a060020a03338116600081815260056020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a350600192915050565b60035481565b600160a060020a0380841660009081526005602090815260408083203390941683529290529081205482111561057b57600080fd5b600160a060020a03808516600090815260056020908152604080832033909416835292905220805483900390556105b384848461073e565b5060019392505050565b60025460ff1681565b600a54600160a060020a0330811631911681156108fc0282604051600060405180830381858888f1935050505015156105fe57600080fd5b600a54600160a060020a039081169033167f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb8360405190815260200160405180910390a350565b60046020526000908152604090205481565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104cc5780601f106104a1576101008083540402835291602001916104cc565b600a54600160a060020a031681565b600b602052600090815260409020805460019091015482565b60006106f733848461073e565b50600192915050565b60065481565b60085481565b600560209081526000928352604080842090915290825290205481565b600954600160a060020a031681565b60075481565b600160a060020a0383166000908152600460205260408120548290101561076457600080fd5b50600160a060020a0383166000908152600b602052604090206001810154421015806107ae5750600160a060020a0384166000908152600460205260409020548154908390039011155b15156107b957600080fd5b6107c48484846107ca565b50505050565b6000600160a060020a03831615156107e157600080fd5b600160a060020a0384166000908152600460205260409020548290101561080757600080fd5b600160a060020a0383166000908152600460205260409020548281011161082d57600080fd5b50600160a060020a03828116600090815260046020526040808220805493871683529120805484810382558254850192839055905492019101811461086e57fe5b82600160a060020a031684600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a3505050505600a165627a7a72305820589e45d878495705e3dd800598b3e5bcf0278fe3f671a3250ae5bf24a49482950029

Swarm Source

bzzr://589e45d878495705e3dd800598b3e5bcf0278fe3f671a3250ae5bf24a4948295
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.