ETH Price: $3,391.92 (+1.69%)

Token

ChickenToken (CHKN)
 

Overview

Max Total Supply

67,727,578.48484848 CHKN

Holders

287

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
5,000 CHKN

Value
$0.00
0x970be7fcce186bfaed2aad0da213ad587840587d
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:
ChickenToken

Compiler Version
v0.4.16+commit.d7661dd9

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.16;

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {
    function mul(uint256 a, uint256 b) internal constant returns (uint256) {
        uint256 c = a * b;
        assert(a == 0 || c / a == b);
        return c;
    }

    function div(uint256 a, uint256 b) internal constant 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 constant returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    function add(uint256 a, uint256 b) internal constant returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }
}


interface tokenRecipient {
    function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public;
}


contract ERC20 {
    uint256 public totalSupply;
    function balanceOf(address owner) public constant returns (uint256);
    function transfer(address to, uint256 value) public returns (bool);
    function transferFrom(address from, address to, uint256 value) public returns (bool);
    function approve(address spender, uint256 value) public returns (bool);
    function allowance(address owner, address spender) public constant returns (uint256);
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}


contract StandardToken is ERC20 {
    using SafeMath for uint256;

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

    /**
     * @dev Gets the balance of the specified address.
     * @param _owner The address to query the the balance of.
     * @return An uint256 representing the amount owned by the passed address.
     */
    function balanceOf(address _owner) public constant returns (uint256 balance) {
        return balances[_owner];
    }

    /**
     * @dev transfer token for a specified address
     * @param _to The address to transfer to.
     * @param _value The amount to be transferred.
     */
    function transfer(address _to, uint256 _value) public returns (bool) {
        require(_to != address(0));
        require(_value <= balances[msg.sender]);

        // SafeMath.sub will throw if there is not enough balance.
        balances[msg.sender] = balances[msg.sender].sub(_value);
        balances[_to] = balances[_to].add(_value);
        Transfer(msg.sender, _to, _value);
        return true;
    }

    /**
     * @dev Transfer tokens from one address to another
     * @param _from address The address which you want to send tokens from
     * @param _to address The address which you want to transfer to
     * @param _value uint256 the amount of tokens to be transferred
     */
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool) {
        require(_to != address(0));
        require(_value <= balances[_from]);
        require(_value <= allowed[_from][msg.sender]);

        balances[_from] = balances[_from].sub(_value);
        balances[_to] = balances[_to].add(_value);
        allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
        Transfer(_from, _to, _value);
        return true;
    }

    /**
     * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
     * @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;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    /**
     * @dev approve should be called when allowed[_spender] == 0. To increment
     * allowed value is better to use this function to avoid 2 calls (and wait until
     * the first transaction is mined)
     * From MonolithDAO Token.sol
     * @param _spender The address which will spend the funds
     * @param _addedValue The amount of tokens to be added to the spender's funds.
     */
    function increaseApproval (address _spender, uint _addedValue) public returns (bool success) {
        allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
        Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
        return true;
    }

    /**
     * @param _spender The address which will spend the funds
     * @param _subtractedValue The amount of tokens to be subtracted from the spender's funds.
     */
    function decreaseApproval (address _spender, uint _subtractedValue) public returns (bool success) {
        uint oldValue = allowed[msg.sender][_spender];
        if (_subtractedValue > oldValue) {
            allowed[msg.sender][_spender] = 0;
        } else {
            allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
        }
        Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
        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 constant returns (uint256 remaining) {
        return allowed[_owner][_spender];
    }

    /**
     * Set allowance for other address and notify
     * @dev Allows `_spender` to spend no more than `_value` tokens in your behalf, and then ping the contract about it
     * @param _spender The address authorized to spend
     * @param _value the max amount they can spend
     * @param _extraData some extra information to send to the approved contract
     */
    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;
        }
    }
}


contract ChickenToken is StandardToken {
    string public constant name = "ChickenToken";
    string public constant symbol = "CHKN";
    uint256 public decimals = 8;
    uint256 public totalSupply = 6772757848484848;

    function ChickenToken() public {
        balances[msg.sender] = totalSupply;
    }
}

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":[{"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":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","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":"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":"","type":"bool"}],"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":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"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"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"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"}]

6060604052600860035566180fc991b56bf0600455341561001f57600080fd5b5b600454600160a060020a0333166000908152600160205260409020555b5b610b2f8061004d6000396000f300606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100bc578063095ea7b31461014757806318160ddd1461017d57806323b872dd146101a2578063313ce567146101de578063661884631461020357806370a082311461023957806395d89b411461026a578063a9059cbb146102f5578063cae9ca511461032b578063d73dd623146103a4578063dd62ed3e146103da575b600080fd5b34156100c757600080fd5b6100cf610411565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015257600080fd5b610169600160a060020a0360043516602435610448565b604051901515815260200160405180910390f35b341561018857600080fd5b6101906104ef565b60405190815260200160405180910390f35b34156101ad57600080fd5b610169600160a060020a03600435811690602435166044356104f5565b604051901515815260200160405180910390f35b34156101e957600080fd5b610190610678565b60405190815260200160405180910390f35b341561020e57600080fd5b610169600160a060020a036004351660243561067e565b604051901515815260200160405180910390f35b341561024457600080fd5b610190600160a060020a036004351661077a565b60405190815260200160405180910390f35b341561027557600080fd5b6100cf610799565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561030057600080fd5b610169600160a060020a03600435166024356107d0565b604051901515815260200160405180910390f35b341561033657600080fd5b61016960048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506108cc95505050505050565b604051901515815260200160405180910390f35b34156103af57600080fd5b610169600160a060020a0360043516602435610a00565b604051901515815260200160405180910390f35b34156103e557600080fd5b610190600160a060020a0360043581169060243516610aa5565b60405190815260200160405180910390f35b60408051908101604052600c81527f436869636b656e546f6b656e0000000000000000000000000000000000000000602082015281565b600081158061047a5750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b151561048557600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60045481565b6000600160a060020a038316151561050c57600080fd5b600160a060020a03841660009081526001602052604090205482111561053157600080fd5b600160a060020a038085166000908152600260209081526040808320339094168352929052205482111561056457600080fd5b600160a060020a03841660009081526001602052604090205461058d908363ffffffff610ad216565b600160a060020a0380861660009081526001602052604080822093909355908516815220546105c2908363ffffffff610ae916565b600160a060020a0380851660009081526001602090815260408083209490945587831682526002815283822033909316825291909152205461060a908363ffffffff610ad216565b600160a060020a03808616600081815260026020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b9392505050565b60035481565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054808311156106db57600160a060020a033381166000908152600260209081526040808320938816835292905290812055610712565b6106eb818463ffffffff610ad216565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a3600191505b5092915050565b600160a060020a0381166000908152600160205260409020545b919050565b60408051908101604052600481527f43484b4e00000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a03831615156107e757600080fd5b600160a060020a03331660009081526001602052604090205482111561080c57600080fd5b600160a060020a033316600090815260016020526040902054610835908363ffffffff610ad216565b600160a060020a03338116600090815260016020526040808220939093559085168152205461086a908363ffffffff610ae916565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b6000836108d98185610448565b156109f75780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156109905780820151818401525b602001610977565b50505050905090810190601f1680156109bd5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15156109de57600080fd5b6102c65a03f115156109ef57600080fd5b505050600191505b5b509392505050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054610a38908363ffffffff610ae916565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a35060015b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600082821115610ade57fe5b508082035b92915050565b600082820183811015610af857fe5b8091505b50929150505600a165627a7a72305820aa77bffe04928bc8c1ea35dedc8836e909349428bac4968a108068012654ec3c0029

Deployed Bytecode

0x606060405236156100b75763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100bc578063095ea7b31461014757806318160ddd1461017d57806323b872dd146101a2578063313ce567146101de578063661884631461020357806370a082311461023957806395d89b411461026a578063a9059cbb146102f5578063cae9ca511461032b578063d73dd623146103a4578063dd62ed3e146103da575b600080fd5b34156100c757600080fd5b6100cf610411565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561015257600080fd5b610169600160a060020a0360043516602435610448565b604051901515815260200160405180910390f35b341561018857600080fd5b6101906104ef565b60405190815260200160405180910390f35b34156101ad57600080fd5b610169600160a060020a03600435811690602435166044356104f5565b604051901515815260200160405180910390f35b34156101e957600080fd5b610190610678565b60405190815260200160405180910390f35b341561020e57600080fd5b610169600160a060020a036004351660243561067e565b604051901515815260200160405180910390f35b341561024457600080fd5b610190600160a060020a036004351661077a565b60405190815260200160405180910390f35b341561027557600080fd5b6100cf610799565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561010c5780820151818401525b6020016100f3565b50505050905090810190601f1680156101395780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561030057600080fd5b610169600160a060020a03600435166024356107d0565b604051901515815260200160405180910390f35b341561033657600080fd5b61016960048035600160a060020a03169060248035919060649060443590810190830135806020601f820181900481020160405190810160405281815292919060208401838380828437509496506108cc95505050505050565b604051901515815260200160405180910390f35b34156103af57600080fd5b610169600160a060020a0360043516602435610a00565b604051901515815260200160405180910390f35b34156103e557600080fd5b610190600160a060020a0360043581169060243516610aa5565b60405190815260200160405180910390f35b60408051908101604052600c81527f436869636b656e546f6b656e0000000000000000000000000000000000000000602082015281565b600081158061047a5750600160a060020a03338116600090815260026020908152604080832093871683529290522054155b151561048557600080fd5b600160a060020a03338116600081815260026020908152604080832094881680845294909152908190208590557f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259085905190815260200160405180910390a35060015b92915050565b60045481565b6000600160a060020a038316151561050c57600080fd5b600160a060020a03841660009081526001602052604090205482111561053157600080fd5b600160a060020a038085166000908152600260209081526040808320339094168352929052205482111561056457600080fd5b600160a060020a03841660009081526001602052604090205461058d908363ffffffff610ad216565b600160a060020a0380861660009081526001602052604080822093909355908516815220546105c2908363ffffffff610ae916565b600160a060020a0380851660009081526001602090815260408083209490945587831682526002815283822033909316825291909152205461060a908363ffffffff610ad216565b600160a060020a03808616600081815260026020908152604080832033861684529091529081902093909355908516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b9392505050565b60035481565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054808311156106db57600160a060020a033381166000908152600260209081526040808320938816835292905290812055610712565b6106eb818463ffffffff610ad216565b600160a060020a033381166000908152600260209081526040808320938916835292905220555b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020547f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925915190815260200160405180910390a3600191505b5092915050565b600160a060020a0381166000908152600160205260409020545b919050565b60408051908101604052600481527f43484b4e00000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a03831615156107e757600080fd5b600160a060020a03331660009081526001602052604090205482111561080c57600080fd5b600160a060020a033316600090815260016020526040902054610835908363ffffffff610ad216565b600160a060020a03338116600090815260016020526040808220939093559085168152205461086a908363ffffffff610ae916565b600160a060020a0380851660008181526001602052604090819020939093559133909116907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a35060015b92915050565b6000836108d98185610448565b156109f75780600160a060020a0316638f4ffcb1338630876040518563ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018085600160a060020a0316600160a060020a0316815260200184815260200183600160a060020a0316600160a060020a0316815260200180602001828103825283818151815260200191508051906020019080838360005b838110156109905780820151818401525b602001610977565b50505050905090810190601f1680156109bd5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b15156109de57600080fd5b6102c65a03f115156109ef57600080fd5b505050600191505b5b509392505050565b600160a060020a033381166000908152600260209081526040808320938616835292905290812054610a38908363ffffffff610ae916565b600160a060020a0333811660008181526002602090815260408083209489168084529490915290819020849055919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591905190815260200160405180910390a35060015b92915050565b600160a060020a038083166000908152600260209081526040808320938516835292905220545b92915050565b600082821115610ade57fe5b508082035b92915050565b600082820183811015610af857fe5b8091505b50929150505600a165627a7a72305820aa77bffe04928bc8c1ea35dedc8836e909349428bac4968a108068012654ec3c0029

Swarm Source

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