ERC-20
Website Down
Overview
Max Total Supply
904,911,274.223577000000000001 CEN
Holders
1,915 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.289537 CENValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
CENToken
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-07-12 */ pragma solidity ^0.4.24; /** * Math operations with safety checks */ contract SafeMath { function safeMul(uint256 a, uint256 b) pure internal returns (uint256) { uint256 c = a * b; judgement(a == 0 || c / a == b); return c; } function safeDiv(uint256 a, uint256 b) pure internal returns (uint256) { judgement(b > 0); uint256 c = a / b; judgement(a == b * c + a % b); return c; } function safeSub(uint256 a, uint256 b) pure internal returns (uint256) { judgement(b <= a); return a - b; } function safeAdd(uint256 a, uint256 b) pure internal returns (uint256) { uint256 c = a + b; judgement(c>=a && c>=b); return c; } function safeMulWithPresent(uint256 a , uint256 b) pure internal returns (uint256){ uint256 c = safeDiv(safeMul(a,b),1000); judgement(b == (c*1000)/a); return c; } function judgement(bool assertion) pure internal { if (!assertion) { revert(); } } } contract CENAuth{ address public owner; constructor () public{ owner = msg.sender; } event LogOwnerChanged (address msgSender ); ///@notice check if the msgSender is owner modifier onlyOwner{ assert(msg.sender == owner); _; } function setOwner (address newOwner) public onlyOwner returns (bool){ if (owner == msg.sender){ owner = newOwner; emit LogOwnerChanged(msg.sender); return true; }else{ return false; } } } contract CENStop is CENAuth{ bool internal stopped = false; modifier stoppable { assert (!stopped); _; } function _status() view public returns (bool){ return stopped; } function stop() public onlyOwner{ stopped = true; } function start() public onlyOwner{ stopped = false; } } contract Token is SafeMath { /* Standard ERC20 token */ uint256 public totalSupply; /// total amount of tokens /// @param _owner The address from which the balance will be retrieved /// @return The balance function balanceOf(address _owner) public view returns (uint256 balance); /// @notice send `_value` token to `_to` from `msg.sender` /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transfer(address _to, uint256 _value) public returns (bool success); /// @notice send `_value` token to `_to` from `_from` on the condition it is approved by `_from` /// @param _from The address of the sender /// @param _to The address of the recipient /// @param _value The amount of token to be transferred /// @return Whether the transfer was successful or not function transferFrom(address _from, address _to, uint256 _value) public returns (bool success); /// @notice `msg.sender` approves `_spender` to spend `_value` tokens /// @param _spender The address of the account able to transfer the tokens /// @param _value The amount of tokens to be approved for transfer /// @return Whether the approval was successful or not function approve(address _spender, uint256 _value) public returns (bool success); /// @param _owner The address of the account owning tokens /// @param _spender The address of the account able to transfer the tokens /// @return Amount of remaining tokens allowed to spent function allowance(address _owner, address _spender) view public returns (uint256 remaining); function burn(uint256 amount) public returns (bool); function frozenCheck(address _from , address _to) view private returns (bool); function freezeAccount(address target , bool freeze) public; event Transfer(address indexed _from, address indexed _to, uint256 _value); event Approval(address indexed _owner, address indexed _spender, uint256 _value); event Burn (address indexed _owner , uint256 _value); } contract StandardToken is Token ,CENStop{ function transfer(address _to, uint256 _value) stoppable public returns (bool ind) { //Default assumes totalSupply can't be over max (2^256 - 1). //If your token leaves out totalSupply and can issue more tokens as time goes on, you need to check if it doesn't wrap. //Replace the if with this one instead. //if (balances[msg.sender] >= _value && balances[_to] + _value > balances[_to]) { require(_to!= address(0)); require(frozenCheck(msg.sender,_to)); if (balances[msg.sender] >= _value && _value > 0) { balances[msg.sender] = safeSub(balances[msg.sender] , _value); balances[_to] = safeAdd(balances[_to],_value); emit Transfer(msg.sender, _to, _value); return true; } else { return false; } } function transferFrom(address _from, address _to, uint256 _value) stoppable public returns (bool success) { //same as above. Replace this line with the following if you want to protect against wrapping uints. require(frozenCheck(_from,_to)); require(_to!= address(0)); if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) { balances[_to] = safeAdd(balances[_to],_value); balances[_from] = safeSub(balances[_from] , _value); allowed[_from][msg.sender] = safeSub(allowed[_from][msg.sender],_value); emit Transfer(_from, _to, _value); return true; } else { return false; } } function balanceOf(address _owner) public view returns (uint256 balance) { return balances[_owner]; } function approve(address _spender, uint256 _value) stoppable public returns (bool success) { require(frozenCheck(_spender,msg.sender)); require(_spender!= address(0)); require(_value>0); require(allowed[msg.sender][_spender]==0); allowed[msg.sender][_spender] = _value; emit Approval(msg.sender, _spender, _value); return true; } function allowance(address _owner, address _spender) view public returns (uint256 remaining) { return allowed[_owner][_spender]; } function burn(uint256 amount) stoppable onlyOwner public returns (bool){ if(balances[msg.sender] > amount ){ balances[msg.sender] = safeSub(balances[msg.sender],amount); totalSupply = safeSub(totalSupply,amount); emit Burn(msg.sender,amount); return true; }else{ return false; } } function frozenCheck(address _from , address _to) view private returns (bool){ require(!frozenAccount[_from]); require(!frozenAccount[_to]); return true; } function freezeAccount(address target , bool freeze) onlyOwner public{ frozenAccount[target] = freeze; } mapping (address => uint256) internal balances; mapping (address => mapping (address => uint256)) private allowed; mapping (address => bool) private frozenAccount; //Save frozen account } contract CENToken is StandardToken{ string public name = "CEN"; /// Set the full name of this contract uint256 public decimals = 18; /// Set the decimal string public symbol = "CEN"; /// Set the symbol of this contract constructor() public { /// Should have sth in this owner = msg.sender; totalSupply = 1000000000000000000000000000; balances[msg.sender] = totalSupply; } function () stoppable public { revert(); } }
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":"stop","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"_status","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"setOwner","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":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"burn","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":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":"ind","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"start","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"msgSender","type":"address"}],"name":"LogOwnerChanged","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"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
6001805460a060020a60ff021916905560c0604052600360808190527f43454e000000000000000000000000000000000000000000000000000000000060a090815261004e91600591906100e6565b5060126006556040805180820190915260038082527f43454e00000000000000000000000000000000000000000000000000000000006020909201918252610098916007916100e6565b503480156100a557600080fd5b506001805433600160a060020a0319918216811790911681179091556b033b2e3c9fd0803ce800000060008181559182526002602052604090912055610181565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012757805160ff1916838001178555610154565b82800160010185558215610154579182015b82811115610154578251825591602001919060010190610139565b50610160929150610164565b5090565b61017e91905b80821115610160576000815560010161016a565b90565b610b2d806101906000396000f3006080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010b57806307da68f514610195578063095ea7b3146101ac5780630fb3844c146101e457806313af4035146101f957806318160ddd1461021a57806323b872dd14610241578063313ce5671461026b57806342966c681461028057806370a08231146102985780638da5cb5b146102b957806395d89b41146102ea578063a9059cbb146102ff578063be9a655514610323578063dd62ed3e14610338578063e724529c1461035f575b3480156100f157600080fd5b5060015460a060020a900460ff161561010657fe5b600080fd5b34801561011757600080fd5b50610120610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015a578181015183820152602001610142565b50505050905090810190601f1680156101875780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101a157600080fd5b506101aa610413565b005b3480156101b857600080fd5b506101d0600160a060020a036004351660243561044d565b604080519115158252519081900360200190f35b3480156101f057600080fd5b506101d0610531565b34801561020557600080fd5b506101d0600160a060020a0360043516610541565b34801561022657600080fd5b5061022f6105d8565b60408051918252519081900360200190f35b34801561024d57600080fd5b506101d0600160a060020a03600435811690602435166044356105de565b34801561027757600080fd5b5061022f610778565b34801561028c57600080fd5b506101d060043561077e565b3480156102a457600080fd5b5061022f600160a060020a0360043516610839565b3480156102c557600080fd5b506102ce610854565b60408051600160a060020a039092168252519081900360200190f35b3480156102f657600080fd5b50610120610863565b34801561030b57600080fd5b506101d0600160a060020a03600435166024356108be565b34801561032f57600080fd5b506101aa6109ce565b34801561034457600080fd5b5061022f600160a060020a0360043581169060243516610a02565b34801561036b57600080fd5b506101aa600160a060020a03600435166024351515610a2d565b6005805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040b5780601f106103e05761010080835404028352916020019161040b565b820191906000526020600020905b8154815290600101906020018083116103ee57829003601f168201915b505050505081565b600154600160a060020a0316331461042757fe5b6001805474ff0000000000000000000000000000000000000000191660a060020a179055565b60015460009060a060020a900460ff161561046457fe5b61046e8333610a6c565b151561047957600080fd5b600160a060020a038316151561048e57600080fd5b6000821161049b57600080fd5b336000908152600360209081526040808320600160a060020a0387168452909152902054156104c957600080fd5b336000818152600360209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60015460a060020a900460ff1690565b600154600090600160a060020a0316331461055857fe5b600154600160a060020a03163314156105cf576001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790556040805133815290517fa414b3eaf11f6c863a0bb4b36d8231c14e687177fa35fc1ac22b8ff4cd2c109f916020908290030190a15060016105d3565b5060005b919050565b60005481565b60015460009060a060020a900460ff16156105f557fe5b6105ff8484610a6c565b151561060a57600080fd5b600160a060020a038316151561061f57600080fd5b600160a060020a038416600090815260026020526040902054821180159061066a5750600160a060020a03841660009081526003602090815260408083203384529091529020548211155b80156106765750600082115b1561076d57600160a060020a03831660009081526002602052604090205461069e9083610ac1565b600160a060020a0380851660009081526002602052604080822093909355908616815220546106cd9083610ade565b600160a060020a03851660009081526002602090815260408083209390935560038152828220338352905220546107049083610ade565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610771565b5060005b9392505050565b60065481565b60015460009060a060020a900460ff161561079557fe5b600154600160a060020a031633146107a957fe5b336000908152600260205260409020548210156105cf57336000908152600260205260409020546107da9083610ade565b33600090815260026020526040812091909155546107f89083610ade565b60005560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a25060016105d3565b600160a060020a031660009081526002602052604090205490565b600154600160a060020a031681565b6007805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040b5780601f106103e05761010080835404028352916020019161040b565b60015460009060a060020a900460ff16156108d557fe5b600160a060020a03831615156108ea57600080fd5b6108f43384610a6c565b15156108ff57600080fd5b33600090815260026020526040902054821180159061091e5750600082115b156109c6573360009081526002602052604090205461093d9083610ade565b3360009081526002602052604080822092909255600160a060020a038516815220546109699083610ac1565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600161052b565b50600061052b565b600154600160a060020a031633146109e257fe5b6001805474ff000000000000000000000000000000000000000019169055565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600154600160a060020a03163314610a4157fe5b600160a060020a03919091166000908152600460205260409020805460ff1916911515919091179055565b600160a060020a03821660009081526004602052604081205460ff1615610a9257600080fd5b600160a060020a03821660009081526004602052604090205460ff1615610ab857600080fd5b50600192915050565b6000828201610771848210801590610ad95750838210155b610af2565b6000610aec83831115610af2565b50900390565b801515610afe57600080fd5b505600a165627a7a72305820611e9ec10d49cae463651d2d4623ce63274623d182901a8575554dd690cc8a630029
Deployed Bytecode
0x6080604052600436106100e55763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010b57806307da68f514610195578063095ea7b3146101ac5780630fb3844c146101e457806313af4035146101f957806318160ddd1461021a57806323b872dd14610241578063313ce5671461026b57806342966c681461028057806370a08231146102985780638da5cb5b146102b957806395d89b41146102ea578063a9059cbb146102ff578063be9a655514610323578063dd62ed3e14610338578063e724529c1461035f575b3480156100f157600080fd5b5060015460a060020a900460ff161561010657fe5b600080fd5b34801561011757600080fd5b50610120610385565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015a578181015183820152602001610142565b50505050905090810190601f1680156101875780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101a157600080fd5b506101aa610413565b005b3480156101b857600080fd5b506101d0600160a060020a036004351660243561044d565b604080519115158252519081900360200190f35b3480156101f057600080fd5b506101d0610531565b34801561020557600080fd5b506101d0600160a060020a0360043516610541565b34801561022657600080fd5b5061022f6105d8565b60408051918252519081900360200190f35b34801561024d57600080fd5b506101d0600160a060020a03600435811690602435166044356105de565b34801561027757600080fd5b5061022f610778565b34801561028c57600080fd5b506101d060043561077e565b3480156102a457600080fd5b5061022f600160a060020a0360043516610839565b3480156102c557600080fd5b506102ce610854565b60408051600160a060020a039092168252519081900360200190f35b3480156102f657600080fd5b50610120610863565b34801561030b57600080fd5b506101d0600160a060020a03600435166024356108be565b34801561032f57600080fd5b506101aa6109ce565b34801561034457600080fd5b5061022f600160a060020a0360043581169060243516610a02565b34801561036b57600080fd5b506101aa600160a060020a03600435166024351515610a2d565b6005805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040b5780601f106103e05761010080835404028352916020019161040b565b820191906000526020600020905b8154815290600101906020018083116103ee57829003601f168201915b505050505081565b600154600160a060020a0316331461042757fe5b6001805474ff0000000000000000000000000000000000000000191660a060020a179055565b60015460009060a060020a900460ff161561046457fe5b61046e8333610a6c565b151561047957600080fd5b600160a060020a038316151561048e57600080fd5b6000821161049b57600080fd5b336000908152600360209081526040808320600160a060020a0387168452909152902054156104c957600080fd5b336000818152600360209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60015460a060020a900460ff1690565b600154600090600160a060020a0316331461055857fe5b600154600160a060020a03163314156105cf576001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790556040805133815290517fa414b3eaf11f6c863a0bb4b36d8231c14e687177fa35fc1ac22b8ff4cd2c109f916020908290030190a15060016105d3565b5060005b919050565b60005481565b60015460009060a060020a900460ff16156105f557fe5b6105ff8484610a6c565b151561060a57600080fd5b600160a060020a038316151561061f57600080fd5b600160a060020a038416600090815260026020526040902054821180159061066a5750600160a060020a03841660009081526003602090815260408083203384529091529020548211155b80156106765750600082115b1561076d57600160a060020a03831660009081526002602052604090205461069e9083610ac1565b600160a060020a0380851660009081526002602052604080822093909355908616815220546106cd9083610ade565b600160a060020a03851660009081526002602090815260408083209390935560038152828220338352905220546107049083610ade565b600160a060020a03808616600081815260036020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a3506001610771565b5060005b9392505050565b60065481565b60015460009060a060020a900460ff161561079557fe5b600154600160a060020a031633146107a957fe5b336000908152600260205260409020548210156105cf57336000908152600260205260409020546107da9083610ade565b33600090815260026020526040812091909155546107f89083610ade565b60005560408051838152905133917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a25060016105d3565b600160a060020a031660009081526002602052604090205490565b600154600160a060020a031681565b6007805460408051602060026001851615610100026000190190941693909304601f8101849004840282018401909252818152929183018282801561040b5780601f106103e05761010080835404028352916020019161040b565b60015460009060a060020a900460ff16156108d557fe5b600160a060020a03831615156108ea57600080fd5b6108f43384610a6c565b15156108ff57600080fd5b33600090815260026020526040902054821180159061091e5750600082115b156109c6573360009081526002602052604090205461093d9083610ade565b3360009081526002602052604080822092909255600160a060020a038516815220546109699083610ac1565b600160a060020a0384166000818152600260209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600161052b565b50600061052b565b600154600160a060020a031633146109e257fe5b6001805474ff000000000000000000000000000000000000000019169055565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b600154600160a060020a03163314610a4157fe5b600160a060020a03919091166000908152600460205260409020805460ff1916911515919091179055565b600160a060020a03821660009081526004602052604081205460ff1615610a9257600080fd5b600160a060020a03821660009081526004602052604090205460ff1615610ab857600080fd5b50600192915050565b6000828201610771848210801590610ad95750838210155b610af2565b6000610aec83831115610af2565b50900390565b801515610afe57600080fd5b505600a165627a7a72305820611e9ec10d49cae463651d2d4623ce63274623d182901a8575554dd690cc8a630029
Swarm Source
bzzr://611e9ec10d49cae463651d2d4623ce63274623d182901a8575554dd690cc8a63
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.