ETH Price: $3,142.96 (-4.02%)

Token

Cryptaur (CPT)
 

Overview

Max Total Supply

2,869,966,328.83803776 CPT

Holders

14,892 (0.00%)

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
185,038.7007 CPT

Value
$0.00
0x8431a60a607c18f01cef1acd0152ac12c026eb09
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:
CryptaurToken

Compiler Version
v0.4.19+commit.c4cbbb05

Optimization Enabled:
Yes with 200 runs

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

/*
This file is part of the Cryptaur Contract.

The CryptaurToken Contract is free software: you can redistribute it and/or
modify it under the terms of the GNU lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version. See the GNU lesser General Public License
for more details.

You should have received a copy of the GNU lesser General Public License
along with the CryptaurToken Contract. If not, see <http://www.gnu.org/licenses/>.

@author Ilya Svirin <[email protected]>
Donation address 0x3Ad38D1060d1c350aF29685B2b8Ec3eDE527452B
*/


pragma solidity ^0.4.11;

contract owned {

    address public owner;
    address public candidate;

    function owned() payable public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(owner == msg.sender);
        _;
    }

    function changeOwner(address _owner) onlyOwner public {
        candidate = _owner;
    }

    function confirmOwner() public {
        require(candidate == msg.sender);
        owner = candidate;
        delete candidate;
    }
}

contract CryptaurToken is owned {

    address                      public cryptaurBackend;
    bool                         public crowdsaleFinished;
    uint                         public totalSupply;
    mapping (address => uint256) public balanceOf;

    string  public standard    = 'Token 0.1';
    string  public name        = 'Cryptaur';
    string  public symbol      = "CPT";
    uint8   public decimals    = 8;

    mapping (address => mapping (address => uint)) public allowed;
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);
    event Mint(address indexed minter, uint tokens, uint8 originalCoinType, bytes32 originalTxHash);

    // Fix for the ERC20 short address attack
    modifier onlyPayloadSize(uint size) {
        require(msg.data.length >= size + 4);
        _;
    }

    function CryptaurToken(address _cryptaurBackend) public payable owned() {
        cryptaurBackend = _cryptaurBackend;
    }

    function changeBackend(address _cryptaurBackend) public onlyOwner {
        cryptaurBackend = _cryptaurBackend;
    }

    function mintTokens(address _minter, uint _tokens, uint8 _originalCoinType, bytes32 _originalTxHash) public {
        require(msg.sender == cryptaurBackend);
        require(!crowdsaleFinished);
        balanceOf[_minter] += _tokens;
        totalSupply += _tokens;
        Transfer(this, _minter, _tokens);
        Mint(_minter, _tokens, _originalCoinType, _originalTxHash);
    }

    function finishCrowdsale() onlyOwner public {
        crowdsaleFinished = true;
    }

    function transfer(address _to, uint256 _value)
        public onlyPayloadSize(2 * 32) {
        require(balanceOf[msg.sender] >= _value);
        require(balanceOf[_to] + _value >= balanceOf[_to]);
        balanceOf[msg.sender] -= _value;
        balanceOf[_to] += _value;
        Transfer(msg.sender, _to, _value);
    }

    function transferFrom(address _from, address _to, uint _value)
        public onlyPayloadSize(3 * 32) {
        require(balanceOf[_from] >= _value);
        require(balanceOf[_to] + _value >= balanceOf[_to]); // overflow
        require(allowed[_from][msg.sender] >= _value);
        balanceOf[_from] -= _value;
        balanceOf[_to] += _value;
        allowed[_from][msg.sender] -= _value;
        Transfer(_from, _to, _value);
    }

    function approve(address _spender, uint _value) public {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
    }

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

Contract Security Audit

Contract ABI

[{"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":[],"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":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_minter","type":"address"},{"name":"_tokens","type":"uint256"},{"name":"_originalCoinType","type":"uint8"},{"name":"_originalTxHash","type":"bytes32"}],"name":"mintTokens","outputs":[],"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":"cryptaurBackend","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"standard","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"candidate","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","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":"_owner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"finishCrowdsale","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"confirmOwner","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":"_cryptaurBackend","type":"address"}],"name":"changeBackend","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"crowdsaleFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_cryptaurBackend","type":"address"}],"payable":true,"stateMutability":"payable","type":"constructor"},{"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":"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":"minter","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"},{"indexed":false,"name":"originalCoinType","type":"uint8"},{"indexed":false,"name":"originalTxHash","type":"bytes32"}],"name":"Mint","type":"event"}]

606060405260408051908101604052600981527f546f6b656e20302e3100000000000000000000000000000000000000000000006020820152600590805161004b92916020019061012f565b5060408051908101604052600881527f43727970746175720000000000000000000000000000000000000000000000006020820152600690805161009392916020019061012f565b5060408051908101604052600381527f4350540000000000000000000000000000000000000000000000000000000000602082015260079080516100db92916020019061012f565b506008805460ff191681179055604051602080610c9e8339810160405280805160008054600160a060020a03338116600160a060020a03199283161790925560028054929093169116179055506101ca9050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061017057805160ff191683800117855561019d565b8280016001018555821561019d579182015b8281111561019d578251825591602001919060010190610182565b506101a99291506101ad565b5090565b6101c791905b808211156101a957600081556001016101b3565b90565b610ac5806101d96000396000f3006060604052600436106101115763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610116578063095ea7b3146101a057806318160ddd146101c457806323b872dd146101e957806324b35ef214610211578063313ce5671461023c5780633ae69708146102655780635a3b7e42146102945780635c658165146102a75780636c8381f8146102cc57806370a08231146102df5780638da5cb5b146102fe57806395d89b4114610311578063a6f9dae114610324578063a9059cbb14610343578063b80cdcf614610365578063bd9b6d8614610378578063dd62ed3e1461038b578063eaecfca7146103b0578063ece84fd5146103cf575b600080fd5b341561012157600080fd5b6101296103f6565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561016557808201518382015260200161014d565b50505050905090810190601f1680156101925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101ab57600080fd5b6101c2600160a060020a0360043516602435610494565b005b34156101cf57600080fd5b6101d76104f8565b60405190815260200160405180910390f35b34156101f457600080fd5b6101c2600160a060020a03600435811690602435166044356104fe565b341561021c57600080fd5b6101c2600160a060020a036004351660243560ff60443516606435610619565b341561024757600080fd5b61024f610716565b60405160ff909116815260200160405180910390f35b341561027057600080fd5b61027861071f565b604051600160a060020a03909116815260200160405180910390f35b341561029f57600080fd5b61012961072e565b34156102b257600080fd5b6101d7600160a060020a0360043581169060243516610799565b34156102d757600080fd5b6102786107b6565b34156102ea57600080fd5b6101d7600160a060020a03600435166107c5565b341561030957600080fd5b6102786107d7565b341561031c57600080fd5b6101296107e6565b341561032f57600080fd5b6101c2600160a060020a0360043516610851565b341561034e57600080fd5b6101c2600160a060020a036004351660243561089b565b341561037057600080fd5b6101c2610962565b341561038357600080fd5b6101c26109b4565b341561039657600080fd5b6101d7600160a060020a0360043581169060243516610a03565b34156103bb57600080fd5b6101c2600160a060020a0360043516610a2e565b34156103da57600080fd5b6103e2610a78565b604051901515815260200160405180910390f35b60068054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048c5780601f106104615761010080835404028352916020019161048c565b820191906000526020600020905b81548152906001019060200180831161046f57829003601f168201915b505050505081565b600160a060020a03338116600081815260096020908152604080832094871680845294909152908190208490557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35050565b60035481565b6060606436101561050e57600080fd5b600160a060020a0384166000908152600460205260409020548290101561053457600080fd5b600160a060020a038316600090815260046020526040902054828101101561055b57600080fd5b600160a060020a03808516600090815260096020908152604080832033909416835292905220548290101561058f57600080fd5b600160a060020a03808516600081815260046020908152604080832080548890039055878516808452818420805489019055848452600983528184203390961684529490915290819020805486900390557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350505050565b60025433600160a060020a0390811691161461063457600080fd5b60025474010000000000000000000000000000000000000000900460ff161561065c57600080fd5b600160a060020a0380851660008181526004602052604090819020805487019055600380548701905590913016907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a383600160a060020a03167f85b8cd618ec36a62e5dcb5f19cff9f436efdd6bbe41442302a6a11788f1ff84284848460405192835260ff90911660208301526040808301919091526060909101905180910390a250505050565b60085460ff1681565b600254600160a060020a031681565b60058054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048c5780601f106104615761010080835404028352916020019161048c565b600960209081526000928352604080842090915290825290205481565b600154600160a060020a031681565b60046020526000908152604090205481565b600054600160a060020a031681565b60078054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048c5780601f106104615761010080835404028352916020019161048c565b60005433600160a060020a0390811691161461086c57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b604060443610156108ab57600080fd5b600160a060020a033316600090815260046020526040902054829010156108d157600080fd5b600160a060020a03831660009081526004602052604090205482810110156108f857600080fd5b600160a060020a033381166000818152600460205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3505050565b60005433600160a060020a0390811691161461097d57600080fd5b6002805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055565b60015433600160a060020a039081169116146109cf57600080fd5b600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600160a060020a03918216600090815260096020908152604080832093909416825291909152205490565b60005433600160a060020a03908116911614610a4957600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60025474010000000000000000000000000000000000000000900460ff16815600a165627a7a72305820b020adc266f9d06686e5b1d83f1b4d0334770234465ae03dad2f598ff4437aa700290000000000000000000000000d299690380bc91133c28510f74e4462f328e1fc

Deployed Bytecode

0x6060604052600436106101115763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610116578063095ea7b3146101a057806318160ddd146101c457806323b872dd146101e957806324b35ef214610211578063313ce5671461023c5780633ae69708146102655780635a3b7e42146102945780635c658165146102a75780636c8381f8146102cc57806370a08231146102df5780638da5cb5b146102fe57806395d89b4114610311578063a6f9dae114610324578063a9059cbb14610343578063b80cdcf614610365578063bd9b6d8614610378578063dd62ed3e1461038b578063eaecfca7146103b0578063ece84fd5146103cf575b600080fd5b341561012157600080fd5b6101296103f6565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561016557808201518382015260200161014d565b50505050905090810190601f1680156101925780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101ab57600080fd5b6101c2600160a060020a0360043516602435610494565b005b34156101cf57600080fd5b6101d76104f8565b60405190815260200160405180910390f35b34156101f457600080fd5b6101c2600160a060020a03600435811690602435166044356104fe565b341561021c57600080fd5b6101c2600160a060020a036004351660243560ff60443516606435610619565b341561024757600080fd5b61024f610716565b60405160ff909116815260200160405180910390f35b341561027057600080fd5b61027861071f565b604051600160a060020a03909116815260200160405180910390f35b341561029f57600080fd5b61012961072e565b34156102b257600080fd5b6101d7600160a060020a0360043581169060243516610799565b34156102d757600080fd5b6102786107b6565b34156102ea57600080fd5b6101d7600160a060020a03600435166107c5565b341561030957600080fd5b6102786107d7565b341561031c57600080fd5b6101296107e6565b341561032f57600080fd5b6101c2600160a060020a0360043516610851565b341561034e57600080fd5b6101c2600160a060020a036004351660243561089b565b341561037057600080fd5b6101c2610962565b341561038357600080fd5b6101c26109b4565b341561039657600080fd5b6101d7600160a060020a0360043581169060243516610a03565b34156103bb57600080fd5b6101c2600160a060020a0360043516610a2e565b34156103da57600080fd5b6103e2610a78565b604051901515815260200160405180910390f35b60068054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048c5780601f106104615761010080835404028352916020019161048c565b820191906000526020600020905b81548152906001019060200180831161046f57829003601f168201915b505050505081565b600160a060020a03338116600081815260096020908152604080832094871680845294909152908190208490557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259084905190815260200160405180910390a35050565b60035481565b6060606436101561050e57600080fd5b600160a060020a0384166000908152600460205260409020548290101561053457600080fd5b600160a060020a038316600090815260046020526040902054828101101561055b57600080fd5b600160a060020a03808516600090815260096020908152604080832033909416835292905220548290101561058f57600080fd5b600160a060020a03808516600081815260046020908152604080832080548890039055878516808452818420805489019055848452600983528184203390961684529490915290819020805486900390557fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a350505050565b60025433600160a060020a0390811691161461063457600080fd5b60025474010000000000000000000000000000000000000000900460ff161561065c57600080fd5b600160a060020a0380851660008181526004602052604090819020805487019055600380548701905590913016907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9086905190815260200160405180910390a383600160a060020a03167f85b8cd618ec36a62e5dcb5f19cff9f436efdd6bbe41442302a6a11788f1ff84284848460405192835260ff90911660208301526040808301919091526060909101905180910390a250505050565b60085460ff1681565b600254600160a060020a031681565b60058054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048c5780601f106104615761010080835404028352916020019161048c565b600960209081526000928352604080842090915290825290205481565b600154600160a060020a031681565b60046020526000908152604090205481565b600054600160a060020a031681565b60078054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561048c5780601f106104615761010080835404028352916020019161048c565b60005433600160a060020a0390811691161461086c57600080fd5b6001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b604060443610156108ab57600080fd5b600160a060020a033316600090815260046020526040902054829010156108d157600080fd5b600160a060020a03831660009081526004602052604090205482810110156108f857600080fd5b600160a060020a033381166000818152600460205260408082208054879003905592861680825290839020805486019055917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3505050565b60005433600160a060020a0390811691161461097d57600080fd5b6002805474ff0000000000000000000000000000000000000000191674010000000000000000000000000000000000000000179055565b60015433600160a060020a039081169116146109cf57600080fd5b600180546000805473ffffffffffffffffffffffffffffffffffffffff19908116600160a060020a03841617909155169055565b600160a060020a03918216600090815260096020908152604080832093909416825291909152205490565b60005433600160a060020a03908116911614610a4957600080fd5b6002805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b60025474010000000000000000000000000000000000000000900460ff16815600a165627a7a72305820b020adc266f9d06686e5b1d83f1b4d0334770234465ae03dad2f598ff4437aa70029

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000000d299690380bc91133c28510f74e4462f328e1fc

-----Decoded View---------------
Arg [0] : _cryptaurBackend (address): 0x0d299690380bc91133C28510f74e4462f328E1fC

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000000d299690380bc91133c28510f74e4462f328e1fc


Swarm Source

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