ETH Price: $3,081.50 (+4.06%)

Token

CustomContractNetwork (CCN)
 

Overview

Max Total Supply

890,000,000,000 CCN

Holders

10,362 (0.00%)

Market

Price

$0.00 @ 0.000000 ETH (+4.39%)

Onchain Market Cap

$27,380,630.22

Circulating Supply Market Cap

$0.00

Other Info

Token Contract (WITH 18 Decimals)

Balance
5,000 CCN

Value
$0.15 ( ~4.86775694338042E-05 Eth) [0.0000%]
0xef104523f3829b9f0b0f6d2d52f49f76f8655a91
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

CCN is a smart contract service provider company.

Market

Volume (24H):$0.00
Market Capitalization:$0.00
Circulating Supply:0.00 CCN
Market Data Source: Coinmarketcap

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CCN

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

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

pragma solidity 0.4.25;
contract ERC20 {
  uint256 public totalSupply;
  function balanceOf(address who) public view returns (uint256 _user);
  function transfer(address to, uint256 value) public returns (bool success);
  function allowance(address owner, address spender) public view returns (uint256 value);
  function transferFrom(address from, address to, uint256 value) public returns (bool success);
  function approve(address spender, uint256 value) public returns (bool success);

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

library SafeMath {
  
  function safeMul(uint256 a, uint256 b) internal pure returns (uint256) {
    if (a == 0) {
      return 0;
    }
    uint256 c = a * b;
    assert(c / a == b);
    return c;
  }

  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) {
    uint c = a + b;
    assert(c>=a);
    return c;
  }
  function safeDiv(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return c;
  }
}

contract OnlyOwner {
  address public owner;
  address private controller;
  //log the previous and new controller when event  is fired.
  event SetNewController(address prev_controller, address new_controller);
  /** 
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
    controller = owner;
  }


  /**
   * @dev Throws if called by any account other than the owner. 
   */
  modifier isOwner {
    require(msg.sender == owner);
    _;
  }
  
  /**
   * @dev Throws if called by any account other than the controller. 
   */
  modifier isController {
    require(msg.sender == controller);
    _;
  }
  
  function replaceController(address new_controller) isController public returns(bool){
    require(new_controller != address(0x0));
	controller = new_controller;
    emit SetNewController(msg.sender,controller);
    return true;   
  }

}

contract StandardToken is ERC20{
  using SafeMath for uint256;

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

  
    function _transfer(address _from, address _to, uint256 _value) internal returns (bool success){
      //prevent sending of tokens from genesis address or to self
      require(_from != address(0) && _from != _to);
      require(_to != address(0));
      //subtract tokens from the sender on transfer
      balances[_from] = balances[_from].safeSub(_value);
      //add tokens to the receiver on reception
      balances[_to] = balances[_to].safeAdd(_value);
      return true;
    }

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

  function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
      uint256 _allowance = allowed[_from][msg.sender];
      //value must be less than allowed value
      require(_value <= _allowance);
      //balance of sender + token value transferred by sender must be greater than balance of sender
      require(balances[_to] + _value > balances[_to]);
      //call transfer function
      _transfer(_from,_to,_value);
      //subtract the amount allowed to the sender 
      allowed[_from][msg.sender] = _allowance.safeSub(_value);
      //trigger Transfer event
      emit Transfer(_from, _to, _value);
      return true;
    }

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

    

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   *
   * Beware that changing an allowance with this method brings the risk that someone may use both the old
   * and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
   * race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
   * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */

  function approve(address _spender, uint256 _value) public returns (bool) {
    // To change the approve amount you first have to reduce the addresses`
    //  allowance to zero by calling `approve(_spender,0)` if it is not
    //  already 0 to mitigate the race condition described here:
    //  https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
    require((_value == 0) || (allowed[msg.sender][_spender] == 0));
    allowed[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(address _owner, address _spender) public view returns (uint256) {
    return allowed[_owner][_spender];
  }

}

contract CCN is StandardToken, OnlyOwner{
	uint256 public constant decimals = 18;
    string public constant name = "CustomContractNetwork";
    string public constant symbol = "CCN";
    string public constant version = "1.0";
    uint256 public constant totalSupply = 890000000000*10**18;
    uint256 private approvalCounts =0;
    uint256 private minRequiredApprovals =2;
    address public burnedTokensReceiver;
    
    constructor() public{
        balances[msg.sender] = totalSupply;
        burnedTokensReceiver = 0x0000000000000000000000000000000000000000;
    }

    /**
   * @dev Function to set approval count variable value.
   * @param _value uint The value by which approvalCounts variable will be set.
   */
    function setApprovalCounts(uint _value) public isController {
        approvalCounts = _value;
    }
    
    /**
   * @dev Function to set minimum require approval variable value.
   * @param _value uint The value by which minRequiredApprovals variable will be set.
   * @return true.
   */
    function setMinApprovalCounts(uint _value) public isController returns (bool){
        require(_value > 0);
        minRequiredApprovals = _value;
        return true;
    }
    
    /**
   * @dev Function to get approvalCounts variable value.
   * @return approvalCounts.
   */
    function getApprovalCount() public view isController returns(uint){
        return approvalCounts;
    }
    
     /**
   * @dev Function to get burned Tokens Receiver address.
   * @return burnedTokensReceiver.
   */
    function getBurnedTokensReceiver() public view isController returns(address){
        return burnedTokensReceiver;
    }
    
    
    function controllerApproval(address _from, uint256 _value) public isOwner returns (bool) {
        require(minRequiredApprovals <= approvalCounts);
		require(_value <= balances[_from]);		
        balances[_from] = balances[_from].safeSub(_value);
        balances[burnedTokensReceiver] = balances[burnedTokensReceiver].safeAdd(_value);
        emit Transfer(_from,burnedTokensReceiver, _value);
        return true;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[],"name":"getApprovalCount","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"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":"","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":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"setApprovalCounts","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"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":"burnedTokensReceiver","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getBurnedTokensReceiver","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"new_controller","type":"address"}],"name":"replaceController","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"setMinApprovalCounts","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"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"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_value","type":"uint256"}],"name":"controllerApproval","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"prev_controller","type":"address"},{"indexed":false,"name":"new_controller","type":"address"}],"name":"SetNewController","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"}]

60806040526000600555600260065534801561001a57600080fd5b5060038054600160a060020a03199081163390811792839055600480548316600160a060020a0394909416939093179092556000918252600160205260409091206c0b3bbebec39addd3be900000009055600780549091169055610a2d806100836000396000f3006080604052600436106100fb5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630343d550811461010057806306fdde0314610127578063095ea7b3146101b157806318160ddd146101e957806323b872dd146101fe5780632d0641d414610228578063313ce5671461024257806354fd4d501461025757806355ab96881461026c5780635f0e6fc61461029d578063632fbda4146102b257806370a08231146102d35780638c31886f146102f45780638da5cb5b1461030c57806395d89b4114610321578063a9059cbb14610336578063dc3a83721461035a578063dd62ed3e1461037e575b600080fd5b34801561010c57600080fd5b506101156103a5565b60408051918252519081900360200190f35b34801561013357600080fd5b5061013c6103c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017657818101518382015260200161015e565b50505050905090810190601f1680156101a35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101bd57600080fd5b506101d5600160a060020a03600435166024356103fd565b604080519115158252519081900360200190f35b3480156101f557600080fd5b5061011561049f565b34801561020a57600080fd5b506101d5600160a060020a03600435811690602435166044356104b0565b34801561023457600080fd5b5061024060043561058f565b005b34801561024e57600080fd5b506101156105ab565b34801561026357600080fd5b5061013c6105b0565b34801561027857600080fd5b506102816105e7565b60408051600160a060020a039092168252519081900360200190f35b3480156102a957600080fd5b506102816105f6565b3480156102be57600080fd5b506101d5600160a060020a0360043516610620565b3480156102df57600080fd5b50610115600160a060020a03600435166106c1565b34801561030057600080fd5b506101d56004356106dc565b34801561031857600080fd5b5061028161070c565b34801561032d57600080fd5b5061013c61071b565b34801561034257600080fd5b506101d5600160a060020a0360043516602435610752565b34801561036657600080fd5b506101d5600160a060020a03600435166024356107c3565b34801561038a57600080fd5b50610115600160a060020a03600435811690602435166108dc565b600454600090600160a060020a031633146103bf57600080fd5b5060055490565b60408051808201909152601581527f437573746f6d436f6e74726163744e6574776f726b0000000000000000000000602082015281565b600081158061042d5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561043857600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b6c0b3bbebec39addd3be9000000081565b600160a060020a0383166000908152600260209081526040808320338452909152812054808311156104e157600080fd5b600160a060020a0384166000908152600160205260409020548381011161050757600080fd5b610512858585610907565b50610523818463ffffffff6109d916565b600160a060020a03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b600454600160a060020a031633146105a657600080fd5b600555565b601281565b60408051808201909152600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600754600160a060020a031681565b600454600090600160a060020a0316331461061057600080fd5b50600754600160a060020a031690565b600454600090600160a060020a0316331461063a57600080fd5b600160a060020a038216151561064f57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691909117918290556040805133815292909116602083015280517fd2a4788497665e302d031c6dd3efc595d77c9c7bd8aac410fc847406f2efb79e9281900390910190a1506001919050565b600160a060020a031660009081526001602052604090205490565b600454600090600160a060020a031633146106f657600080fd5b6000821161070357600080fd5b50600655600190565b600354600160a060020a031681565b60408051808201909152600381527f43434e0000000000000000000000000000000000000000000000000000000000602082015281565b3360009081526001602052604081205482111561076e57600080fd5b610779338484610907565b50604080518381529051600160a060020a0385169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b600354600090600160a060020a031633146107dd57600080fd5b60055460065411156107ee57600080fd5b600160a060020a03831660009081526001602052604090205482111561081357600080fd5b600160a060020a03831660009081526001602052604090205461083c908363ffffffff6109d916565b600160a060020a038085166000908152600160205260408082209390935560075490911681522054610874908363ffffffff6109eb16565b60078054600160a060020a039081166000908152600160209081526040918290209490945591548251868152925190821693918716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b6000600160a060020a03841615801590610933575082600160a060020a031684600160a060020a031614155b151561093e57600080fd5b600160a060020a038316151561095357600080fd5b600160a060020a03841660009081526001602052604090205461097c908363ffffffff6109d916565b600160a060020a0380861660009081526001602052604080822093909355908516815220546109b1908363ffffffff6109eb16565b600160a060020a03841660009081526001602081905260409091209190915590509392505050565b6000828211156109e557fe5b50900390565b6000828201838110156109fa57fe5b93925050505600a165627a7a723058208f47e0a060217c851838836b241ef3581e05ad6b067366426489c2d68a402e300029

Deployed Bytecode

0x6080604052600436106100fb5763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416630343d550811461010057806306fdde0314610127578063095ea7b3146101b157806318160ddd146101e957806323b872dd146101fe5780632d0641d414610228578063313ce5671461024257806354fd4d501461025757806355ab96881461026c5780635f0e6fc61461029d578063632fbda4146102b257806370a08231146102d35780638c31886f146102f45780638da5cb5b1461030c57806395d89b4114610321578063a9059cbb14610336578063dc3a83721461035a578063dd62ed3e1461037e575b600080fd5b34801561010c57600080fd5b506101156103a5565b60408051918252519081900360200190f35b34801561013357600080fd5b5061013c6103c6565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561017657818101518382015260200161015e565b50505050905090810190601f1680156101a35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101bd57600080fd5b506101d5600160a060020a03600435166024356103fd565b604080519115158252519081900360200190f35b3480156101f557600080fd5b5061011561049f565b34801561020a57600080fd5b506101d5600160a060020a03600435811690602435166044356104b0565b34801561023457600080fd5b5061024060043561058f565b005b34801561024e57600080fd5b506101156105ab565b34801561026357600080fd5b5061013c6105b0565b34801561027857600080fd5b506102816105e7565b60408051600160a060020a039092168252519081900360200190f35b3480156102a957600080fd5b506102816105f6565b3480156102be57600080fd5b506101d5600160a060020a0360043516610620565b3480156102df57600080fd5b50610115600160a060020a03600435166106c1565b34801561030057600080fd5b506101d56004356106dc565b34801561031857600080fd5b5061028161070c565b34801561032d57600080fd5b5061013c61071b565b34801561034257600080fd5b506101d5600160a060020a0360043516602435610752565b34801561036657600080fd5b506101d5600160a060020a03600435166024356107c3565b34801561038a57600080fd5b50610115600160a060020a03600435811690602435166108dc565b600454600090600160a060020a031633146103bf57600080fd5b5060055490565b60408051808201909152601581527f437573746f6d436f6e74726163744e6574776f726b0000000000000000000000602082015281565b600081158061042d5750336000908152600260209081526040808320600160a060020a0387168452909152902054155b151561043857600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b6c0b3bbebec39addd3be9000000081565b600160a060020a0383166000908152600260209081526040808320338452909152812054808311156104e157600080fd5b600160a060020a0384166000908152600160205260409020548381011161050757600080fd5b610512858585610907565b50610523818463ffffffff6109d916565b600160a060020a03808716600081815260026020908152604080832033845282529182902094909455805187815290519288169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001949350505050565b600454600160a060020a031633146105a657600080fd5b600555565b601281565b60408051808201909152600381527f312e300000000000000000000000000000000000000000000000000000000000602082015281565b600754600160a060020a031681565b600454600090600160a060020a0316331461061057600080fd5b50600754600160a060020a031690565b600454600090600160a060020a0316331461063a57600080fd5b600160a060020a038216151561064f57600080fd5b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691909117918290556040805133815292909116602083015280517fd2a4788497665e302d031c6dd3efc595d77c9c7bd8aac410fc847406f2efb79e9281900390910190a1506001919050565b600160a060020a031660009081526001602052604090205490565b600454600090600160a060020a031633146106f657600080fd5b6000821161070357600080fd5b50600655600190565b600354600160a060020a031681565b60408051808201909152600381527f43434e0000000000000000000000000000000000000000000000000000000000602082015281565b3360009081526001602052604081205482111561076e57600080fd5b610779338484610907565b50604080518381529051600160a060020a0385169133917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b600354600090600160a060020a031633146107dd57600080fd5b60055460065411156107ee57600080fd5b600160a060020a03831660009081526001602052604090205482111561081357600080fd5b600160a060020a03831660009081526001602052604090205461083c908363ffffffff6109d916565b600160a060020a038085166000908152600160205260408082209390935560075490911681522054610874908363ffffffff6109eb16565b60078054600160a060020a039081166000908152600160209081526040918290209490945591548251868152925190821693918716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92908290030190a350600192915050565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b6000600160a060020a03841615801590610933575082600160a060020a031684600160a060020a031614155b151561093e57600080fd5b600160a060020a038316151561095357600080fd5b600160a060020a03841660009081526001602052604090205461097c908363ffffffff6109d916565b600160a060020a0380861660009081526001602052604080822093909355908516815220546109b1908363ffffffff6109eb16565b600160a060020a03841660009081526001602081905260409091209190915590509392505050565b6000828211156109e557fe5b50900390565b6000828201838110156109fa57fe5b93925050505600a165627a7a723058208f47e0a060217c851838836b241ef3581e05ad6b067366426489c2d68a402e300029

Swarm Source

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