ETH Price: $3,354.68 (+2.81%)
 

Overview

Max Total Supply

0 CPC

Holders

635

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0 CPC

Value
$0.00
0xdce8a6532c3ccea0d5b97ae82ae102dcb34d7592
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:
CPCE

Compiler Version
v0.4.13+commit.fb4cb1a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2017-08-16
*/

pragma solidity ^0.4.13;

contract SafeMath {
    function safeAdd(uint256 x, uint256 y) internal returns(uint256) {
      uint256 z = x + y;
      assert((z >= x) && (z >= y));
      return z;
    }

    function safeSubtrCPCE(uint256 x, uint256 y) internal returns(uint256) {
      assert(x >= y);
      uint256 z = x - y;
      return z;
    }

    function safeMult(uint256 x, uint256 y) internal returns(uint256) {
      uint256 z = x * y;
      assert((x == 0)||(z/x == y));
      return z;
    }

}

contract Token {
    uint256 public totalSupply;
    function balanceOf(address _owner) constant returns (uint256 balance);
    function transfer(address _to, uint256 _value) returns (bool success);
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success);
    function approve(address _spender, uint256 _value) returns (bool success);
    function allowance(address _owner, address _spender) constant returns (uint256 remaining);
    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
}


/*  ERC 20 token */
contract StandardToken is Token {

    function transfer(address _to, uint256 _value) returns (bool success) {
      if (balances[msg.sender] >= _value && _value > 0) {
        balances[msg.sender] -= _value;
        balances[_to] += _value;
        Transfer(msg.sender, _to, _value);
        return true;
      } else {
        return false;
      }
    }

    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
      if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
        balances[_to] += _value;
        balances[_from] -= _value;
        allowed[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
        return true;
      } else {
        return false;
      }
    }

    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

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

    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
      return allowed[_owner][_spender];
    }

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

contract CPCE is StandardToken, SafeMath {

    string public constant name = "CPC";
    string public constant symbol = "CPC";
    uint256 public constant decimals = 18;
    string public version = "1.0";

    address public CPCEPrivateDeposit;
    address public CPCEIcoDeposit;
    address public CPCEFundDeposit;

    uint256 public constant factorial = 6;
    uint256 public constant CPCEPrivate = 150 * (10**factorial) * 10**decimals; //150m私募代币数量,共计1.5亿代币
    uint256 public constant CPCEIco = 150 * (10**factorial) * 10**decimals; //150m的ico代币数量,共计1.5亿代币
    uint256 public constant CPCEFund = 380 * (10**factorial) * 10**decimals; //380m的ico代币数量,共计3.8亿代币
  

    // constructor
    function CPCE()
    {
      CPCEPrivateDeposit = 0x335B73c9054eBa7652484B5dA36dB45dB92de4c3;
      CPCEIcoDeposit = 0x84d9E8671DaF07CEb5fa35137636B93dc395f118;
      CPCEFundDeposit = 0xd7BAD068E961cCBe95e318c7aC118833A613c762;

      balances[CPCEPrivateDeposit] = CPCEPrivate;
      balances[CPCEIcoDeposit] = CPCEIco;
      balances[CPCEFundDeposit] = CPCEFund;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CPCEPrivateDeposit","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CPCEFundDeposit","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CPCEFund","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CPCEPrivate","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"factorial","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CPCEIco","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"CPCEIcoDeposit","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[],"payable":false,"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"}]

60606040526040805190810160405260038082527f312e300000000000000000000000000000000000000000000000000000000000602083015290805161004a929160200190610112565b50341561005657600080fd5b5b60048054600160a060020a031990811673335b73c9054eba7652484b5da36db45db92de4c317918290556005805482167384d9e8671daf07ceb5fa35137636b93dc395f1181781556006805490921673d7bad068e961ccbe95e318c7ac118833a613c762178255600160a060020a039283166000908152600160205260408082206a7c13bc4b2c133c56000000908190559254851682528082209290925591549092168152206b013a542146f830bafc00000090555b6101b2565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061015357805160ff1916838001178555610180565b82800160010185558215610180579182015b82811115610180578251825591602001919060010190610165565b5b5061018d929150610191565b5090565b6101af91905b8082111561018d5760008155600101610197565b5090565b90565b61090e806101c16000396000f300606060405236156100ee5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f3578063087ce9401461017e578063095ea7b3146101ad57806318160ddd146101e357806323b872dd14610208578063313ce5671461024457806351c3a2c61461026957806354fd4d50146102985780635bbb7c421461032357806363d6519a1461034857806370a082311461036d57806395d89b41146100f3578063981111ef14610429578063a9059cbb1461044e578063b7b4ceb314610348578063ba5b0e95146104a9578063dd62ed3e146104d8575b600080fd5b34156100fe57600080fd5b61010661050f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101435780820151818401525b60200161012a565b50505050905090810190601f1680156101705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018957600080fd5b610191610546565b604051600160a060020a03909116815260200160405180910390f35b34156101b857600080fd5b6101cf600160a060020a0360043516602435610555565b604051901515815260200160405180910390f35b34156101ee57600080fd5b6101f66105c2565b60405190815260200160405180910390f35b341561021357600080fd5b6101cf600160a060020a03600435811690602435166044356105c8565b604051901515815260200160405180910390f35b341561024f57600080fd5b6101f66106c1565b60405190815260200160405180910390f35b341561027457600080fd5b6101916106c6565b604051600160a060020a03909116815260200160405180910390f35b34156102a357600080fd5b6101066106d5565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101435780820151818401525b60200161012a565b50505050905090810190601f1680156101705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561032e57600080fd5b6101f6610773565b60405190815260200160405180910390f35b341561035357600080fd5b6101f6610783565b60405190815260200160405180910390f35b341561037857600080fd5b6101f6600160a060020a0360043516610792565b60405190815260200160405180910390f35b34156100fe57600080fd5b61010661050f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101435780820151818401525b60200161012a565b50505050905090810190601f1680156101705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561043457600080fd5b6101f66107e8565b60405190815260200160405180910390f35b341561045957600080fd5b6101cf600160a060020a03600435166024356107ed565b604051901515815260200160405180910390f35b341561035357600080fd5b6101f6610783565b60405190815260200160405180910390f35b34156104b457600080fd5b6101916108a6565b604051600160a060020a03909116815260200160405180910390f35b34156104e357600080fd5b6101f6600160a060020a03600435811690602435166108b5565b60405190815260200160405180910390f35b60408051908101604052600381527f4350430000000000000000000000000000000000000000000000000000000000602082015281565b600454600160a060020a031681565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60005481565b600160a060020a0383166000908152600160205260408120548290108015906106185750600160a060020a0380851660009081526002602090815260408083203390941683529290522054829010155b80156106245750600082115b156106b557600160a060020a03808416600081815260016020908152604080832080548801905588851680845281842080548990039055600283528184203390961684529490915290819020805486900390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016106b9565b5060005b5b9392505050565b601281565b600654600160a060020a031681565b60038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561076b5780601f106107405761010080835404028352916020019161076b565b820191906000526020600020905b81548152906001019060200180831161074e57829003601f168201915b505050505081565b6b013a542146f830bafc00000081565b6a7c13bc4b2c133c5600000081565b600160a060020a0381166000908152600160205260409020545b919050565b60408051908101604052600381527f4350430000000000000000000000000000000000000000000000000000000000602082015281565b600681565b600160a060020a0333166000908152600160205260408120548290108015906108165750600082115b1561088857600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016105bc565b5060006105bc565b5b92915050565b6a7c13bc4b2c133c5600000081565b600554600160a060020a031681565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b929150505600a165627a7a72305820d9a41cdb29a408ac245cf4e1821ff18e29b7e610ec4e07d2ad6f189745e0a3760029

Deployed Bytecode

0x606060405236156100ee5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100f3578063087ce9401461017e578063095ea7b3146101ad57806318160ddd146101e357806323b872dd14610208578063313ce5671461024457806351c3a2c61461026957806354fd4d50146102985780635bbb7c421461032357806363d6519a1461034857806370a082311461036d57806395d89b41146100f3578063981111ef14610429578063a9059cbb1461044e578063b7b4ceb314610348578063ba5b0e95146104a9578063dd62ed3e146104d8575b600080fd5b34156100fe57600080fd5b61010661050f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101435780820151818401525b60200161012a565b50505050905090810190601f1680156101705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561018957600080fd5b610191610546565b604051600160a060020a03909116815260200160405180910390f35b34156101b857600080fd5b6101cf600160a060020a0360043516602435610555565b604051901515815260200160405180910390f35b34156101ee57600080fd5b6101f66105c2565b60405190815260200160405180910390f35b341561021357600080fd5b6101cf600160a060020a03600435811690602435166044356105c8565b604051901515815260200160405180910390f35b341561024f57600080fd5b6101f66106c1565b60405190815260200160405180910390f35b341561027457600080fd5b6101916106c6565b604051600160a060020a03909116815260200160405180910390f35b34156102a357600080fd5b6101066106d5565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101435780820151818401525b60200161012a565b50505050905090810190601f1680156101705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561032e57600080fd5b6101f6610773565b60405190815260200160405180910390f35b341561035357600080fd5b6101f6610783565b60405190815260200160405180910390f35b341561037857600080fd5b6101f6600160a060020a0360043516610792565b60405190815260200160405180910390f35b34156100fe57600080fd5b61010661050f565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101435780820151818401525b60200161012a565b50505050905090810190601f1680156101705780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561043457600080fd5b6101f66107e8565b60405190815260200160405180910390f35b341561045957600080fd5b6101cf600160a060020a03600435166024356107ed565b604051901515815260200160405180910390f35b341561035357600080fd5b6101f6610783565b60405190815260200160405180910390f35b34156104b457600080fd5b6101916108a6565b604051600160a060020a03909116815260200160405180910390f35b34156104e357600080fd5b6101f6600160a060020a03600435811690602435166108b5565b60405190815260200160405180910390f35b60408051908101604052600381527f4350430000000000000000000000000000000000000000000000000000000000602082015281565b600454600160a060020a031681565b600160a060020a03338116600081815260026020908152604080832094871680845294909152808220859055909291907f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60005481565b600160a060020a0383166000908152600160205260408120548290108015906106185750600160a060020a0380851660009081526002602090815260408083203390941683529290522054829010155b80156106245750600082115b156106b557600160a060020a03808416600081815260016020908152604080832080548801905588851680845281842080548990039055600283528184203390961684529490915290819020805486900390559091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016106b9565b5060005b5b9392505050565b601281565b600654600160a060020a031681565b60038054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561076b5780601f106107405761010080835404028352916020019161076b565b820191906000526020600020905b81548152906001019060200180831161074e57829003601f168201915b505050505081565b6b013a542146f830bafc00000081565b6a7c13bc4b2c133c5600000081565b600160a060020a0381166000908152600160205260409020545b919050565b60408051908101604052600381527f4350430000000000000000000000000000000000000000000000000000000000602082015281565b600681565b600160a060020a0333166000908152600160205260408120548290108015906108165750600082115b1561088857600160a060020a033381166000818152600160205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060016105bc565b5060006105bc565b5b92915050565b6a7c13bc4b2c133c5600000081565b600554600160a060020a031681565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b929150505600a165627a7a72305820d9a41cdb29a408ac245cf4e1821ff18e29b7e610ec4e07d2ad6f189745e0a3760029

Swarm Source

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