ETH Price: $3,184.70 (+1.72%)

Token

The Token Fund (TKN)
 

Overview

Max Total Supply

8,931.32715462 TKN

Holders

322

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
0.00395294 TKN

Value
$0.00
0xc55e1270cc91f8f1eee9e215c1bed1238c10ae1b
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:
TokenFund

Compiler Version
v0.4.8+commit.60cc1668

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.6;

contract StandardToken {

    /*
     *  Data structures
     */
    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;
    uint256 public totalSupply;

    /*
     *  Events
     */
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /*
     *  Read and write storage functions
     */
    /// @dev Transfers sender's tokens to a given address. Returns success.
    /// @param _to Address of token receiver.
    /// @param _value Number of tokens to transfer.
    function transfer(address _to, uint256 _value) returns (bool success) {
        if (balances[msg.sender] >= _value && _value > 0) {
            balances[msg.sender] -= _value;
            balances[_to] += _value;
            Transfer(msg.sender, _to, _value);
            return true;
        }
        else {
            return false;
        }
    }

    /// @dev Allows allowed third party to transfer tokens from one address to another. Returns success.
    /// @param _from Address from where tokens are withdrawn.
    /// @param _to Address to where tokens are sent.
    /// @param _value Number of tokens to transfer.
    function transferFrom(address _from, address _to, uint256 _value) returns (bool success) {
        if (balances[_from] >= _value && allowed[_from][msg.sender] >= _value && _value > 0) {
            balances[_to] += _value;
            balances[_from] -= _value;
            allowed[_from][msg.sender] -= _value;
            Transfer(_from, _to, _value);
            return true;
        }
        else {
            return false;
        }
    }

    /// @dev Returns number of tokens owned by given address.
    /// @param _owner Address of token owner.
    function balanceOf(address _owner) constant returns (uint256 balance) {
        return balances[_owner];
    }

    /// @dev Sets approved amount of tokens for spender. Returns success.
    /// @param _spender Address of allowed account.
    /// @param _value Number of approved tokens.
    function approve(address _spender, uint256 _value) returns (bool success) {
        allowed[msg.sender][_spender] = _value;
        Approval(msg.sender, _spender, _value);
        return true;
    }

    /*
     * Read storage functions
     */
    /// @dev Returns number of allowed tokens for given address.
    /// @param _owner Address of token owner.
    /// @param _spender Address of token spender.
    function allowance(address _owner, address _spender) constant returns (uint256 remaining) {
      return allowed[_owner][_spender];
    }

}


/// @title Token contract - Implements Standard Token Interface for TokenFund.
/// @author Evgeny Yurtaev - <[email protected]>
contract TokenFund is StandardToken {

    /*
     * External contracts
     */
    address public emissionContractAddress = 0x0;

    /*
     * Token meta data
     */
    string constant public name = "TheToken Fund";
    string constant public symbol = "TKN";
    uint8 constant public decimals = 8;

    /*
     * Storage
     */
    address public owner = 0x0;
    bool public emissionEnabled = true;
    bool transfersEnabled = true;

    /*
     * Modifiers
     */

    modifier isCrowdfundingContract() {
        // Only emission address is allowed to proceed.
        if (msg.sender != emissionContractAddress) {
            throw;
        }
        _;
    }

    modifier onlyOwner() {
        // Only owner is allowed to do this action.
        if (msg.sender != owner) {
            throw;
        }
        _;
    }

    /*
     * Contract functions
     */

     /// @dev TokenFund emission function.
    /// @param _for Address of receiver.
    /// @param tokenCount Number of tokens to issue.
    function issueTokens(address _for, uint tokenCount)
        external
        isCrowdfundingContract
        returns (bool)
    {
        if (emissionEnabled == false) {
            throw;
        }

        balances[_for] += tokenCount;
        totalSupply += tokenCount;
        return true;
    }

    /// @dev Withdraws tokens for msg.sender.
    /// @param tokenCount Number of tokens to withdraw.
    function withdrawTokens(uint tokenCount)
        public
        returns (bool)
    {
        uint balance = balances[msg.sender];
        if (balance < tokenCount) {
            return false;
        }
        balances[msg.sender] -= tokenCount;
        totalSupply -= tokenCount;
        return true;
    }

    /// @dev Function to change address that is allowed to do emission.
    /// @param newAddress Address of new emission contract.
    function changeEmissionContractAddress(address newAddress)
        external
        onlyOwner
        returns (bool)
    {
        emissionContractAddress = newAddress;
    }

    /// @dev Function that enables/disables transfers of token.
    /// @param value True/False
    function enableTransfers(bool value)
        external
        onlyOwner
    {
        transfersEnabled = value;
    }

    /// @dev Function that enables/disables token emission.
    /// @param value True/False
    function enableEmission(bool value)
        external
        onlyOwner
    {
        emissionEnabled = value;
    }

    /*
     * Overriding ERC20 standard token functions to support transfer lock
     */
    function transfer(address _to, uint256 _value)
        returns (bool success)
    {
        if (transfersEnabled == true) {
            return super.transfer(_to, _value);
        }
        return false;
    }

    function transferFrom(address _from, address _to, uint256 _value)
        returns (bool success)
    {
        if (transfersEnabled == true) {
            return super.transferFrom(_from, _to, _value);
        }
        return false;
    }


    /// @dev Contract constructor function sets initial token balances.
    /// @param _owner Address of the owner of TokenFund.
    function TokenFund(address _owner)
    {
        totalSupply = 0;
        owner = _owner;
    }

    function transferOwnership(address newOwner) onlyOwner {
        owner = newOwner;
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"newAddress","type":"address"}],"name":"changeEmissionContractAddress","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"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,"type":"function"},{"constant":true,"inputs":[],"name":"emissionContractAddress","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"tokenCount","type":"uint256"}],"name":"withdrawTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_for","type":"address"},{"name":"tokenCount","type":"uint256"}],"name":"issueTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"value","type":"bool"}],"name":"enableEmission","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"value","type":"bool"}],"name":"enableTransfers","outputs":[],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"emissionEnabled","outputs":[{"name":"","type":"bool"}],"payable":false,"type":"function"},{"inputs":[{"name":"_owner","type":"address"}],"payable":false,"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"}]

606060405260038054600160a060020a03191690556004805460a860020a60ff0219600160a860020a031990911674010000000000000000000000000000000000000000171675010000000000000000000000000000000000000000001790553461000057604051602080610a9483398101604052515b600060025560048054600160a060020a031916600160a060020a0383161790555b505b6109ec806100a86000396000f300606060405236156100e05763ffffffff60e060020a60003504166303562dbb81146100e557806306fdde0314610112578063095ea7b31461019f57806318160ddd146101cf57806323b872dd146101ee57806327b57aee14610224578063313ce5671461024d578063315a095d14610270578063475a9fa91461029457806355bb34e5146102c457806370a08231146102d85780638da5cb5b1461030357806395d89b411461032c578063a9059cbb146103b9578063dd62ed3e146103e9578063f2fde38b1461041a578063f41e60c514610435578063fb674cf414610449575b610000565b34610000576100fe600160a060020a036004351661046a565b604080519115158252519081900360200190f35b346100005761011f6104b7565b604080516020808252835181830152835191928392908301918501908083838215610165575b80518252602083111561016557601f199092019160209182019101610145565b505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576100fe600160a060020a03600435166024356104ee565b604080519115158252519081900360200190f35b34610000576101dc610559565b60408051918252519081900360200190f35b34610000576100fe600160a060020a036004358116906024351660443561055f565b604080519115158252519081900360200190f35b3461000057610231610596565b60408051600160a060020a039092168252519081900360200190f35b346100005761025a6105a5565b6040805160ff9092168252519081900360200190f35b34610000576100fe6004356105aa565b604080519115158252519081900360200190f35b34610000576100fe600160a060020a0360043516602435610607565b604080519115158252519081900360200190f35b34610000576102d6600435151561066e565b005b34610000576101dc600160a060020a03600435166106b6565b60408051918252519081900360200190f35b34610000576102316106d5565b60408051600160a060020a039092168252519081900360200190f35b346100005761011f6106e4565b604080516020808252835181830152835191928392908301918501908083838215610165575b80518252602083111561016557601f199092019160209182019101610145565b505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576100fe600160a060020a036004351660243561071b565b604080519115158252519081900360200190f35b34610000576101dc600160a060020a0360043581169060243516610750565b60408051918252519081900360200190f35b34610000576102d6600160a060020a036004351661077d565b005b34610000576102d660043515156107c5565b005b34610000576100fe61080e565b604080519115158252519081900360200190f35b60045460009033600160a060020a0390811691161461048857610000565b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b5b919050565b60408051808201909152600d81527f546865546f6b656e2046756e6400000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60025481565b60045460009060a860020a900460ff1615156001141561058b5761058484848461081e565b905061058f565b5060005b9392505050565b600354600160a060020a031681565b600881565b600160a060020a033316600090815260208190526040812054828110156105d45760009150610601565b600160a060020a033316600090815260208190526040902080548490039055600280548490039055600191505b50919050565b60035460009033600160a060020a0390811691161461062557610000565b60045460a060020a900460ff16151561063d57610000565b50600160a060020a0382166000908152602081905260409020805482019055600280548201905560015b5b92915050565b60045433600160a060020a0390811691161461068957610000565b6004805474ff0000000000000000000000000000000000000000191660a060020a831515021790555b5b50565b600160a060020a0381166000908152602081905260409020545b919050565b600454600160a060020a031681565b60408051808201909152600381527f544b4e0000000000000000000000000000000000000000000000000000000000602082015281565b60045460009060a860020a900460ff161515600114156107465761073f8383610916565b9050610553565b5060005b92915050565b600160a060020a038083166000908152600160209081526040808320938516835292905220545b92915050565b60045433600160a060020a0390811691161461079857610000565b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60045433600160a060020a039081169116146107e057610000565b6004805475ff000000000000000000000000000000000000000000191660a860020a831515021790555b5b50565b60045460a060020a900460ff1681565b600160a060020a03831660009081526020819052604081205482901080159061086e5750600160a060020a0380851660009081526001602090815260408083203390941683529290522054829010155b801561087a5750600082115b1561090657600160a060020a0380841660008181526020818152604080832080548801905588851680845281842080548990039055600183528184203390961684529482529182902080548790039055815186815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600161058f565b50600061058f565b5b9392505050565b600160a060020a03331660009081526020819052604081205482901080159061093f5750600082115b156109b157600160a060020a0333811660008181526020818152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3506001610553565b506000610553565b5b929150505600a165627a7a72305820971d0c6297cf922e9dd54ecd91240a03f0087b39861cdb7faa87d11e3cc3557f0029000000000000000000000000212de331b2a8c21fcf091c8f3cd13e613bb0af95

Deployed Bytecode

0x606060405236156100e05763ffffffff60e060020a60003504166303562dbb81146100e557806306fdde0314610112578063095ea7b31461019f57806318160ddd146101cf57806323b872dd146101ee57806327b57aee14610224578063313ce5671461024d578063315a095d14610270578063475a9fa91461029457806355bb34e5146102c457806370a08231146102d85780638da5cb5b1461030357806395d89b411461032c578063a9059cbb146103b9578063dd62ed3e146103e9578063f2fde38b1461041a578063f41e60c514610435578063fb674cf414610449575b610000565b34610000576100fe600160a060020a036004351661046a565b604080519115158252519081900360200190f35b346100005761011f6104b7565b604080516020808252835181830152835191928392908301918501908083838215610165575b80518252602083111561016557601f199092019160209182019101610145565b505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576100fe600160a060020a03600435166024356104ee565b604080519115158252519081900360200190f35b34610000576101dc610559565b60408051918252519081900360200190f35b34610000576100fe600160a060020a036004358116906024351660443561055f565b604080519115158252519081900360200190f35b3461000057610231610596565b60408051600160a060020a039092168252519081900360200190f35b346100005761025a6105a5565b6040805160ff9092168252519081900360200190f35b34610000576100fe6004356105aa565b604080519115158252519081900360200190f35b34610000576100fe600160a060020a0360043516602435610607565b604080519115158252519081900360200190f35b34610000576102d6600435151561066e565b005b34610000576101dc600160a060020a03600435166106b6565b60408051918252519081900360200190f35b34610000576102316106d5565b60408051600160a060020a039092168252519081900360200190f35b346100005761011f6106e4565b604080516020808252835181830152835191928392908301918501908083838215610165575b80518252602083111561016557601f199092019160209182019101610145565b505050905090810190601f1680156101915780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34610000576100fe600160a060020a036004351660243561071b565b604080519115158252519081900360200190f35b34610000576101dc600160a060020a0360043581169060243516610750565b60408051918252519081900360200190f35b34610000576102d6600160a060020a036004351661077d565b005b34610000576102d660043515156107c5565b005b34610000576100fe61080e565b604080519115158252519081900360200190f35b60045460009033600160a060020a0390811691161461048857610000565b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384161790555b5b919050565b60408051808201909152600d81527f546865546f6b656e2046756e6400000000000000000000000000000000000000602082015281565b600160a060020a03338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60025481565b60045460009060a860020a900460ff1615156001141561058b5761058484848461081e565b905061058f565b5060005b9392505050565b600354600160a060020a031681565b600881565b600160a060020a033316600090815260208190526040812054828110156105d45760009150610601565b600160a060020a033316600090815260208190526040902080548490039055600280548490039055600191505b50919050565b60035460009033600160a060020a0390811691161461062557610000565b60045460a060020a900460ff16151561063d57610000565b50600160a060020a0382166000908152602081905260409020805482019055600280548201905560015b5b92915050565b60045433600160a060020a0390811691161461068957610000565b6004805474ff0000000000000000000000000000000000000000191660a060020a831515021790555b5b50565b600160a060020a0381166000908152602081905260409020545b919050565b600454600160a060020a031681565b60408051808201909152600381527f544b4e0000000000000000000000000000000000000000000000000000000000602082015281565b60045460009060a860020a900460ff161515600114156107465761073f8383610916565b9050610553565b5060005b92915050565b600160a060020a038083166000908152600160209081526040808320938516835292905220545b92915050565b60045433600160a060020a0390811691161461079857610000565b6004805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b60045433600160a060020a039081169116146107e057610000565b6004805475ff000000000000000000000000000000000000000000191660a860020a831515021790555b5b50565b60045460a060020a900460ff1681565b600160a060020a03831660009081526020819052604081205482901080159061086e5750600160a060020a0380851660009081526001602090815260408083203390941683529290522054829010155b801561087a5750600082115b1561090657600160a060020a0380841660008181526020818152604080832080548801905588851680845281842080548990039055600183528184203390961684529482529182902080548790039055815186815291519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600161058f565b50600061058f565b5b9392505050565b600160a060020a03331660009081526020819052604081205482901080159061093f5750600082115b156109b157600160a060020a0333811660008181526020818152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3506001610553565b506000610553565b5b929150505600a165627a7a72305820971d0c6297cf922e9dd54ecd91240a03f0087b39861cdb7faa87d11e3cc3557f0029

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

000000000000000000000000212de331b2a8c21fcf091c8f3cd13e613bb0af95

-----Decoded View---------------
Arg [0] : _owner (address): 0x212de331B2a8C21fcf091C8f3CD13E613Bb0aF95

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000212de331b2a8c21fcf091c8f3cd13e613bb0af95


Swarm Source

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