Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
18,000,000 CCX
Holders
5,832
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CoinCasso
Compiler Version
v0.4.24+commit.e67f0147
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-09-11 */ pragma solidity 0.4.24; /** * @title CoinCasso Exchange Token is a utility token * @title CoinCasso is a part of Multi-Layer Exchange Service * @title CoinCasso Exchange Platform https://coincasso.com * @dev CoinCasso interface * @dev Token max supply 100,000,000 subject to reduce by burning * @dev Token code : CCX */ contract ERC20 { function balanceOf(address who) public constant returns (uint256); function transfer(address to, uint256 value) public returns (bool); function allowance(address owner, address spender) public constant returns (uint256); function transferFrom(address from, address to, uint256 value) public returns (bool); function approve(address spender, uint256 value) public returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); } contract CoinCasso is ERC20 { uint256 public totalSupply = 100000000 * 1 ether; mapping (address => uint256) public _balances; mapping (address => mapping (address => uint256)) public _approvals; string public name = "CoinCasso Exchange Token"; string public symbol = "CCX"; uint256 public decimals = 18; address public owner ; event Burn(uint256 wad); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); constructor () public{ owner = msg.sender; _balances[owner] = totalSupply; } modifier onlyOwner() { require(msg.sender == owner); _; } function totalSupply() public constant returns (uint256) { return totalSupply; } function balanceOf(address src) public constant returns (uint256) { return _balances[src]; } function allowance(address src, address guy) public constant returns (uint256) { return _approvals[src][guy]; } function transfer(address dst, uint256 wad) public returns (bool) { require (dst != address(0)); require (wad > 0); assert(_balances[msg.sender] >= wad); _balances[msg.sender] = _balances[msg.sender] - wad; _balances[dst] = _balances[dst] + wad; emit Transfer(msg.sender, dst, wad); return true; } function transferFrom(address src, address dst, uint256 wad) public returns (bool) { require (src != address(0)); require (dst != address(0)); assert(_balances[src] >= wad); assert(_approvals[src][msg.sender] >= wad); _approvals[src][msg.sender] = _approvals[src][msg.sender] - wad; _balances[src] = _balances[src] - wad; _balances[dst] = _balances[dst] + wad; emit Transfer(src, dst, wad); return true; } function approve(address guy, uint256 wad) public returns (bool) { require (guy != address(0)); require (wad > 0); _approvals[msg.sender][guy] = wad; emit Approval(msg.sender, guy, wad); return true; } function burn(uint256 wad) public onlyOwner { require (wad > 0); _balances[msg.sender] = _balances[msg.sender] - wad; totalSupply = totalSupply - wad; emit Burn(wad); } } /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(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; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"guy","type":"address"},{"name":"wad","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":"src","type":"address"},{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"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":"","type":"address"},{"name":"","type":"address"}],"name":"_approvals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"wad","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"_balances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"src","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","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":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"src","type":"address"},{"name":"guy","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":"wad","type":"uint256"}],"name":"Burn","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"}]
Contract Creation Code
6a52b7d2dcc80cd2e400000060005560c0604052601860808190527f436f696e436173736f2045786368616e676520546f6b656e000000000000000060a090815261004d91600391906100da565b506040805180820190915260038082527f43435800000000000000000000000000000000000000000000000000000000006020909201918252610092916004916100da565b5060126005553480156100a457600080fd5b5060068054600160a060020a03191633179081905560008054600160a060020a0392909216815260016020526040902055610175565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061011b57805160ff1916838001178555610148565b82800160010185558215610148579182015b8281111561014857825182559160200191906001019061012d565b50610154929150610158565b5090565b61017291905b80821115610154576000815560010161015e565b90565b61075e806101846000396000f3006080604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018b57806323b872dd146101b2578063313ce567146101dc578063319d53e7146101f157806342966c68146102185780636ebcf6071461023257806370a08231146102535780638da5cb5b1461027457806395d89b41146102a5578063a9059cbb146102ba578063dd62ed3e146102de575b600080fd5b3480156100d557600080fd5b506100de610305565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610118578181015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015f57600080fd5b50610177600160a060020a0360043516602435610393565b604080519115158252519081900360200190f35b34801561019757600080fd5b506101a061041e565b60408051918252519081900360200190f35b3480156101be57600080fd5b50610177600160a060020a0360043581169060243516604435610424565b3480156101e857600080fd5b506101a0610529565b3480156101fd57600080fd5b506101a0600160a060020a036004358116906024351661052f565b34801561022457600080fd5b5061023060043561054c565b005b34801561023e57600080fd5b506101a0600160a060020a03600435166105c5565b34801561025f57600080fd5b506101a0600160a060020a03600435166105d7565b34801561028057600080fd5b506102896105f2565b60408051600160a060020a039092168252519081900360200190f35b3480156102b157600080fd5b506100de610601565b3480156102c657600080fd5b50610177600160a060020a036004351660243561065c565b3480156102ea57600080fd5b506101a0600160a060020a0360043581169060243516610707565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561038b5780601f106103605761010080835404028352916020019161038b565b820191906000526020600020905b81548152906001019060200180831161036e57829003601f168201915b505050505081565b6000600160a060020a03831615156103aa57600080fd5b600082116103b757600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005490565b6000600160a060020a038416151561043b57600080fd5b600160a060020a038316151561045057600080fd5b600160a060020a03841660009081526001602052604090205482111561047257fe5b600160a060020a038416600090815260026020908152604080832033845290915290205482111561049f57fe5b600160a060020a0380851660008181526002602090815260408083203384528252808320805488900390558383526001825280832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60055481565b600260209081526000928352604080842090915290825290205481565b600654600160a060020a0316331461056357600080fd5b6000811161057057600080fd5b336000908152600160209081526040808320805485900390558254849003909255815183815291517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9281900390910190a150565b60016020526000908152604090205481565b600160a060020a031660009081526001602052604090205490565b600654600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561038b5780601f106103605761010080835404028352916020019161038b565b6000600160a060020a038316151561067357600080fd5b6000821161068057600080fd5b3360009081526001602052604090205482111561069957fe5b33600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a039182166000908152600260209081526040808320939094168252919091522054905600a165627a7a72305820375a2aabdf93956f7e56b574f0515ada587b7193cc30c88762c1b9fcc64b40160029
Deployed Bytecode
0x6080604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100c9578063095ea7b31461015357806318160ddd1461018b57806323b872dd146101b2578063313ce567146101dc578063319d53e7146101f157806342966c68146102185780636ebcf6071461023257806370a08231146102535780638da5cb5b1461027457806395d89b41146102a5578063a9059cbb146102ba578063dd62ed3e146102de575b600080fd5b3480156100d557600080fd5b506100de610305565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610118578181015183820152602001610100565b50505050905090810190601f1680156101455780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561015f57600080fd5b50610177600160a060020a0360043516602435610393565b604080519115158252519081900360200190f35b34801561019757600080fd5b506101a061041e565b60408051918252519081900360200190f35b3480156101be57600080fd5b50610177600160a060020a0360043581169060243516604435610424565b3480156101e857600080fd5b506101a0610529565b3480156101fd57600080fd5b506101a0600160a060020a036004358116906024351661052f565b34801561022457600080fd5b5061023060043561054c565b005b34801561023e57600080fd5b506101a0600160a060020a03600435166105c5565b34801561025f57600080fd5b506101a0600160a060020a03600435166105d7565b34801561028057600080fd5b506102896105f2565b60408051600160a060020a039092168252519081900360200190f35b3480156102b157600080fd5b506100de610601565b3480156102c657600080fd5b50610177600160a060020a036004351660243561065c565b3480156102ea57600080fd5b506101a0600160a060020a0360043581169060243516610707565b6003805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561038b5780601f106103605761010080835404028352916020019161038b565b820191906000526020600020905b81548152906001019060200180831161036e57829003601f168201915b505050505081565b6000600160a060020a03831615156103aa57600080fd5b600082116103b757600080fd5b336000818152600260209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b60005490565b6000600160a060020a038416151561043b57600080fd5b600160a060020a038316151561045057600080fd5b600160a060020a03841660009081526001602052604090205482111561047257fe5b600160a060020a038416600090815260026020908152604080832033845290915290205482111561049f57fe5b600160a060020a0380851660008181526002602090815260408083203384528252808320805488900390558383526001825280832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b60055481565b600260209081526000928352604080842090915290825290205481565b600654600160a060020a0316331461056357600080fd5b6000811161057057600080fd5b336000908152600160209081526040808320805485900390558254849003909255815183815291517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9281900390910190a150565b60016020526000908152604090205481565b600160a060020a031660009081526001602052604090205490565b600654600160a060020a031681565b6004805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561038b5780601f106103605761010080835404028352916020019161038b565b6000600160a060020a038316151561067357600080fd5b6000821161068057600080fd5b3360009081526001602052604090205482111561069957fe5b33600081815260016020908152604080832080548790039055600160a060020a03871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b600160a060020a039182166000908152600260209081526040808320939094168252919091522054905600a165627a7a72305820375a2aabdf93956f7e56b574f0515ada587b7193cc30c88762c1b9fcc64b40160029
Swarm Source
bzzr://375a2aabdf93956f7e56b574f0515ada587b7193cc30c88762c1b9fcc64b4016
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.