Credits token contract has migrated to a new address. The new token can be found here.
ERC-20
Old Contract
Overview
Max Total Supply
1,000,000,000 CS
Holders
214 (0.00%)
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 6 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
ERC20
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2017-11-13 */ pragma solidity ^ 0.4.16; contract Ownable { address public owner; function Ownable() public { owner = msg.sender; } modifier onlyOwner { require(msg.sender == owner); _; } } contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public; } contract ERC20 is Ownable{ /* Public variables of the token */ string public standard = 'CREDITS'; string public name = 'CREDITS'; string public symbol = 'CS'; uint8 public decimals = 6; uint256 public totalSupply = 1000000000000000; bool public IsFrozen=false; address public ICOAddress; /* This creates an array with all balances */ mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /* This generates a public event on the blockchain that will notify clients */ event Transfer(address indexed from, address indexed to, uint256 value); modifier IsNotFrozen{ require(!IsFrozen||msg.sender==owner ||msg.sender==0x0a6d9df476577C0D4A24EB50220fad007e444db8 ||msg.sender==ICOAddress); _; } /* Initializes contract with initial supply tokens to the creator of the contract */ function ERC20() public { balanceOf[msg.sender] = totalSupply; } function setICOAddress(address _address) public onlyOwner{ ICOAddress=_address; } function setIsFrozen(bool _IsFrozen)public onlyOwner{ IsFrozen=_IsFrozen; } /* Send coins */ function transfer(address _to, uint256 _value) public IsNotFrozen { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough require (balanceOf[_to] + _value >= balanceOf[_to]); // Check for overflows balanceOf[msg.sender] -= _value; // Subtract from the sender balanceOf[_to] += _value; // Add the same to the recipient Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place } /* Allow another contract to spend some tokens in your behalf */ function approve(address _spender, uint256 _value)public returns(bool success) { allowance[msg.sender][_spender] = _value; tokenRecipient spender = tokenRecipient(_spender); return true; } /* Approve and then comunicate the approved contract in a single tx */ function approveAndCall(address _spender, uint256 _value, bytes _extraData) public returns(bool success) { tokenRecipient spender = tokenRecipient(_spender); if (approve(_spender, _value)) { spender.receiveApproval(msg.sender, _value, this, _extraData); return true; } } /* A contract attempts to get the coins */ function transferFrom(address _from, address _to, uint256 _value)public IsNotFrozen returns(bool success) { require (balanceOf[_from] >= _value) ; // Check if the sender has enough require (balanceOf[_to] + _value >= balanceOf[_to]) ; // Check for overflows require (_value <= allowance[_from][msg.sender]) ; // Check allowance balanceOf[_from] -= _value; // Subtract from the sender balanceOf[_to] += _value; // Add the same to the recipient allowance[_from][msg.sender] -= _value; Transfer(_from, _to, _value); return true; } /* @param _value the amount of money to burn*/ event Burn(address indexed from, uint256 value); function burn(uint256 _value) public onlyOwner returns (bool success) { require(balanceOf[msg.sender] >= _value); // Check if the sender has enough balanceOf[msg.sender] -= _value; // Subtract from the sender totalSupply -= _value; // Updates totalSupply Burn(msg.sender, _value); return true; } // Optional token name function setName(string name_) public onlyOwner { name = name_; } /* This unnamed function is called whenever someone tries to send ether to it */ function () public { require(1==2) ; // Prevents accidental sending of ether } }
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":"_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":true,"inputs":[],"name":"IsFrozen","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_IsFrozen","type":"bool"}],"name":"setIsFrozen","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"}],"name":"setICOAddress","outputs":[],"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"name_","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"ICOAddress","outputs":[{"name":"","type":"address"}],"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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":false,"stateMutability":"nonpayable","type":"fallback"},{"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":"from","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"}]
Contract Creation Code
606060405260408051908101604052600781527f43524544495453000000000000000000000000000000000000000000000000006020820152600190805161004b92916020019061013b565b5060408051908101604052600781527f43524544495453000000000000000000000000000000000000000000000000006020820152600290805161009392916020019061013b565b5060408051908101604052600281527f4353000000000000000000000000000000000000000000000000000000000000602082015260039080516100db92916020019061013b565b5060048054600660ff19918216811790925566038d7ea4c680006005558154169055341561010857600080fd5b60008054600160a060020a03191633600160a060020a0316908117825560055490825260076020526040909120556101d6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061017c57805160ff19168380011785556101a9565b828001600101855582156101a9579182015b828111156101a957825182559160200191906001019061018e565b506101b59291506101b9565b5090565b6101d391905b808211156101b557600081556001016101bf565b90565b610c2c806101e56000396000f3006060604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010d578063095ea7b31461019757806318160ddd146101cd57806323b872dd146101f2578063313ce5671461021a57806341dbb51e1461024357806342966c68146102565780635a3b7e421461026c57806364eda74b1461027f57806370a08231146102975780638348bfb9146102b65780638da5cb5b146102d557806395d89b4114610304578063a9059cbb14610317578063c47f002714610339578063cae9ca511461038a578063d2f1f189146103ef578063dd62ed3e14610402575b341561010657600080fd5b600080fd5b005b341561011857600080fd5b610120610427565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561015c578082015183820152602001610144565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a257600080fd5b6101b9600160a060020a03600435166024356104c5565b604051901515815260200160405180910390f35b34156101d857600080fd5b6101e06104f5565b60405190815260200160405180910390f35b34156101fd57600080fd5b6101b9600160a060020a03600435811690602435166044356104fb565b341561022557600080fd5b61022d61067c565b60405160ff909116815260200160405180910390f35b341561024e57600080fd5b6101b9610685565b341561026157600080fd5b6101b960043561068e565b341561027757600080fd5b610120610735565b341561028a57600080fd5b61010b60043515156107a0565b34156102a257600080fd5b6101e0600160a060020a03600435166107ce565b34156102c157600080fd5b61010b600160a060020a03600435166107e0565b34156102e057600080fd5b6102e8610830565b604051600160a060020a03909116815260200160405180910390f35b341561030f57600080fd5b61012061083f565b341561032257600080fd5b61010b600160a060020a03600435166024356108aa565b341561034457600080fd5b61010b60046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506109d095505050505050565b341561039557600080fd5b6101b960048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610a0295505050505050565b34156103fa57600080fd5b6102e8610b34565b341561040d57600080fd5b6101e0600160a060020a0360043581169060243516610b48565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104bd5780601f10610492576101008083540402835291602001916104bd565b820191906000526020600020905b8154815290600101906020018083116104a057829003601f168201915b505050505081565b600160a060020a033381166000908152600860209081526040808320938616835292905220819055600192915050565b60055481565b60065460009060ff16158061051e575060005433600160a060020a039081169116145b806105455750730a6d9df476577c0d4a24eb50220fad007e444db8600160a060020a033316145b80610563575060065433600160a060020a0390811661010090920416145b151561056e57600080fd5b600160a060020a0384166000908152600760205260409020548290101561059457600080fd5b600160a060020a03831660009081526007602052604090205482810110156105bb57600080fd5b600160a060020a03808516600090815260086020908152604080832033909416835292905220548211156105ee57600080fd5b600160a060020a03808516600081815260076020908152604080832080548890039055878516808452818420805489019055848452600883528184203390961684529490915290819020805486900390557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60045460ff1681565b60065460ff1681565b6000805433600160a060020a039081169116146106aa57600080fd5b600160a060020a033316600090815260076020526040902054829010156106d057600080fd5b600160a060020a03331660008181526007602052604090819020805485900390556005805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104bd5780601f10610492576101008083540402835291602001916104bd565b60005433600160a060020a039081169116146107bb57600080fd5b6006805460ff1916911515919091179055565b60076020526000908152604090205481565b60005433600160a060020a039081169116146107fb57600080fd5b60068054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b600054600160a060020a031681565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104bd5780601f10610492576101008083540402835291602001916104bd565b60065460ff1615806108ca575060005433600160a060020a039081169116145b806108f15750730a6d9df476577c0d4a24eb50220fad007e444db8600160a060020a033316145b8061090f575060065433600160a060020a0390811661010090920416145b151561091a57600080fd5b600160a060020a0333166000908152600760205260409020548190101561094057600080fd5b600160a060020a038216600090815260076020526040902054818101101561096757600080fd5b600160a060020a033381166000818152600760205260408082208054869003905592851680825290839020805485019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a35050565b60005433600160a060020a039081169116146109eb57600080fd5b60028180516109fe929160200190610b65565b5050565b600083610a0f81856104c5565b15610b2c5780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610ac5578082015183820152602001610aad565b50505050905090810190601f168015610af25780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1515610b1357600080fd5b6102c65a03f11515610b2457600080fd5b505050600191505b509392505050565b6006546101009004600160a060020a031681565b600860209081526000928352604080842090915290825290205481565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610ba657805160ff1916838001178555610bd3565b82800160010185558215610bd3579182015b82811115610bd3578251825591602001919060010190610bb8565b50610bdf929150610be3565b5090565b610bfd91905b80821115610bdf5760008155600101610be9565b905600a165627a7a723058209f9237d5dd6c0b4e4036483a6a65a61286449007d07ef670bbf1657c5bfffaff0029
Deployed Bytecode
0x6060604052600436106100fb5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde03811461010d578063095ea7b31461019757806318160ddd146101cd57806323b872dd146101f2578063313ce5671461021a57806341dbb51e1461024357806342966c68146102565780635a3b7e421461026c57806364eda74b1461027f57806370a08231146102975780638348bfb9146102b65780638da5cb5b146102d557806395d89b4114610304578063a9059cbb14610317578063c47f002714610339578063cae9ca511461038a578063d2f1f189146103ef578063dd62ed3e14610402575b341561010657600080fd5b600080fd5b005b341561011857600080fd5b610120610427565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561015c578082015183820152602001610144565b50505050905090810190601f1680156101895780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101a257600080fd5b6101b9600160a060020a03600435166024356104c5565b604051901515815260200160405180910390f35b34156101d857600080fd5b6101e06104f5565b60405190815260200160405180910390f35b34156101fd57600080fd5b6101b9600160a060020a03600435811690602435166044356104fb565b341561022557600080fd5b61022d61067c565b60405160ff909116815260200160405180910390f35b341561024e57600080fd5b6101b9610685565b341561026157600080fd5b6101b960043561068e565b341561027757600080fd5b610120610735565b341561028a57600080fd5b61010b60043515156107a0565b34156102a257600080fd5b6101e0600160a060020a03600435166107ce565b34156102c157600080fd5b61010b600160a060020a03600435166107e0565b34156102e057600080fd5b6102e8610830565b604051600160a060020a03909116815260200160405180910390f35b341561030f57600080fd5b61012061083f565b341561032257600080fd5b61010b600160a060020a03600435166024356108aa565b341561034457600080fd5b61010b60046024813581810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506109d095505050505050565b341561039557600080fd5b6101b960048035600160a060020a03169060248035919060649060443590810190830135806020601f82018190048102016040519081016040528181529291906020840183838082843750949650610a0295505050505050565b34156103fa57600080fd5b6102e8610b34565b341561040d57600080fd5b6101e0600160a060020a0360043581169060243516610b48565b60028054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104bd5780601f10610492576101008083540402835291602001916104bd565b820191906000526020600020905b8154815290600101906020018083116104a057829003601f168201915b505050505081565b600160a060020a033381166000908152600860209081526040808320938616835292905220819055600192915050565b60055481565b60065460009060ff16158061051e575060005433600160a060020a039081169116145b806105455750730a6d9df476577c0d4a24eb50220fad007e444db8600160a060020a033316145b80610563575060065433600160a060020a0390811661010090920416145b151561056e57600080fd5b600160a060020a0384166000908152600760205260409020548290101561059457600080fd5b600160a060020a03831660009081526007602052604090205482810110156105bb57600080fd5b600160a060020a03808516600090815260086020908152604080832033909416835292905220548211156105ee57600080fd5b600160a060020a03808516600081815260076020908152604080832080548890039055878516808452818420805489019055848452600883528184203390961684529490915290819020805486900390557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060019392505050565b60045460ff1681565b60065460ff1681565b6000805433600160a060020a039081169116146106aa57600080fd5b600160a060020a033316600090815260076020526040902054829010156106d057600080fd5b600160a060020a03331660008181526007602052604090819020805485900390556005805485900390557fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca59084905190815260200160405180910390a2506001919050565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104bd5780601f10610492576101008083540402835291602001916104bd565b60005433600160a060020a039081169116146107bb57600080fd5b6006805460ff1916911515919091179055565b60076020526000908152604090205481565b60005433600160a060020a039081169116146107fb57600080fd5b60068054600160a060020a039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b600054600160a060020a031681565b60038054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156104bd5780601f10610492576101008083540402835291602001916104bd565b60065460ff1615806108ca575060005433600160a060020a039081169116145b806108f15750730a6d9df476577c0d4a24eb50220fad007e444db8600160a060020a033316145b8061090f575060065433600160a060020a0390811661010090920416145b151561091a57600080fd5b600160a060020a0333166000908152600760205260409020548190101561094057600080fd5b600160a060020a038216600090815260076020526040902054818101101561096757600080fd5b600160a060020a033381166000818152600760205260408082208054869003905592851680825290839020805485019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9084905190815260200160405180910390a35050565b60005433600160a060020a039081169116146109eb57600080fd5b60028180516109fe929160200190610b65565b5050565b600083610a0f81856104c5565b15610b2c5780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b83811015610ac5578082015183820152602001610aad565b50505050905090810190601f168015610af25780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1515610b1357600080fd5b6102c65a03f11515610b2457600080fd5b505050600191505b509392505050565b6006546101009004600160a060020a031681565b600860209081526000928352604080842090915290825290205481565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10610ba657805160ff1916838001178555610bd3565b82800160010185558215610bd3579182015b82811115610bd3578251825591602001919060010190610bb8565b50610bdf929150610be3565b5090565b610bfd91905b80821115610bdf5760008155600101610be9565b905600a165627a7a723058209f9237d5dd6c0b4e4036483a6a65a61286449007d07ef670bbf1657c5bfffaff0029
Swarm Source
bzzr://9f9237d5dd6c0b4e4036483a6a65a61286449007d07ef670bbf1657c5bfffaff
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.