ETH Price: $2,519.20 (-1.24%)

Token

BlockChainStore Token (BCST)
 

Overview

Max Total Supply

79,840,501 BCST

Holders

920

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 8 Decimals)

Balance
0 BCST

Value
$0.00
0x884ecc13261b73515b01f96b31e8798c73d576e8
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:
BCSToken

Compiler Version
v0.4.21-nightly.2018.2.27+commit.415ac2ae

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-06-15
*/

pragma solidity ^0.4.18;

// SafeMath for addition and substraction
library SafeMath {

  /**
  * @dev Adds two numbers, throws on overflow.
  */
    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
    c = a + b;
    assert(c >= a);
    return c;
    }

/**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
    }
  
}


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

contract BCSToken {
    // Use SafeMath library for addition and substraction
    using SafeMath for uint;
    // Public variables of the token
    string public name;
    string public symbol;
    uint256 public decimals = 8;
    uint256 public totalSupply;
    address private owner;
    // 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);

    // This notifies clients about the amount burnt
    event Burn(address indexed from, uint256 value);

    /**
     * Constructor function
     *
     * Initializes contract with initial supply tokens to the creator of the contract
     */
    function BCSToken() public {
    	name = "BlockChainStore Token";                          // Set the name for display purposes
        symbol = "BCST";                                         // and symbol
    	uint256 initialSupply = 100000000;			            // 100M	tokens
        totalSupply = initialSupply * (10 ** uint256(decimals));// 8 digits for mantissa , no safeMath needed here
        balanceOf[msg.sender] = totalSupply;                    // Give the creator all initial tokens
        owner = msg.sender;
    }

    /**
     * Internal transfer, only can be called by this contract
     */
    function _transfer(address _from, address _to, uint _value) internal {
        // Prevent transfer to 0x0 address. Use burn() instead
        require(_to != 0x0);
        // Check if the sender has enough
        require(balanceOf[_from] >= _value);
        // Check for overflows
        require(SafeMath.add(balanceOf[_to] ,_value) >= balanceOf[_to]);
        // Save this for an assertion in the future
        uint previousBalances = SafeMath.add(balanceOf[_from] , balanceOf[_to]);
        // Subtract from the sender
        balanceOf[_from]=SafeMath.sub(balanceOf[_from] , _value);
        // Add the same to the recipient
        balanceOf[_to]=SafeMath.add(balanceOf[_to] , _value);
        emit Transfer(_from, _to, _value);
        // Asserts are used to use static analysis to find bugs in your code. They should never fail
        assert(SafeMath.add(balanceOf[_from] , balanceOf[_to]) == previousBalances);
    }

    /**
     * Transfer tokens
     *
     * Send `_value` tokens to `_to` from your account
     *
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transfer(address _to, uint256 _value) public {
        _transfer(msg.sender, _to, _value);
    }

    /**
     * Transfer tokens from other address
     *
     * Send `_value` tokens to `_to` on behalf of `_from`
     *
     * @param _from The address of the sender
     * @param _to The address of the recipient
     * @param _value the amount to send
     */
    function transferFrom(address _from, address _to, uint256 _value) public returns (bool success) {
        require(_value <= allowance[_from][msg.sender]);     // Check allowance
        allowance[_from][msg.sender]=SafeMath.sub(allowance[_from][msg.sender] , _value);
        _transfer(_from, _to, _value);
        return true;
    }

    /**
     * Set allowance for other address
     *
     * Allows `_spender` to spend no more than `_value` tokens on your behalf
     *
     * @param _spender The address authorized to spend
     * @param _value the max amount they can spend
     */
    function approve(address _spender, uint256 _value) public
        returns (bool success) {
        allowance[msg.sender][_spender] = _value;
        return true;
    }

    /**
     * Destroy tokens
     *
     * Remove `_value` tokens from the system irreversibly
     *
     * @param _value the amount of money to burn
     */
    function burn(uint256 _value) public returns (bool success) {
        require(balanceOf[msg.sender] >= _value);                          // Check if the sender has enough
        require(owner==msg.sender);                                        // Check owner only can destroy
        balanceOf[msg.sender]=SafeMath.sub(balanceOf[msg.sender],_value);  // Subtract from the sender
        totalSupply = SafeMath.sub(totalSupply , _value);                  // Updates totalSupply
        emit Burn(msg.sender, _value);
        return true;
    }

}

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":"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":"uint256"}],"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":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","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":[],"payable":false,"stateMutability":"nonpayable","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"},{"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"}]

60606040526008600255341561001457600080fd5b600060408051908101604052601581527f426c6f636b436861696e53746f726520546f6b656e00000000000000000000006020820152600090805161005d9291602001906100ec565b5060408051908101604052600481527f4243535400000000000000000000000000000000000000000000000000000000602082015260019080516100a59291602001906100ec565b5050600254600a0a6305f5e100026003819055600160a060020a03331660008181526005602052604090209190915560048054600160a060020a0319169091179055610187565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061012d57805160ff191683800117855561015a565b8280016001018555821561015a579182015b8281111561015a57825182559160200191906001019061013f565b5061016692915061016a565b5090565b61018491905b808211156101665760008155600101610170565b90565b610720806101966000396000f3006060604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016857806323b872dd1461018d578063313ce567146101b557806342966c68146101c857806370a08231146101de57806395d89b41146101fd578063a9059cbb14610210578063dd62ed3e14610234575b600080fd5b34156100b357600080fd5b6100bb610259565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100f75780820151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561013d57600080fd5b610154600160a060020a03600435166024356102f7565b604051901515815260200160405180910390f35b341561017357600080fd5b61017b610327565b60405190815260200160405180910390f35b341561019857600080fd5b610154600160a060020a036004358116906024351660443561032d565b34156101c057600080fd5b61017b6103cf565b34156101d357600080fd5b6101546004356103d5565b34156101e957600080fd5b61017b600160a060020a03600435166104a7565b341561020857600080fd5b6100bb6104b9565b341561021b57600080fd5b610232600160a060020a0360043516602435610524565b005b341561023f57600080fd5b61017b600160a060020a0360043581169060243516610533565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102ef5780601f106102c4576101008083540402835291602001916102ef565b820191906000526020600020905b8154815290600101906020018083116102d257829003601f168201915b505050505081565b600160a060020a033381166000908152600660209081526040808320938616835292905220819055600192915050565b60035481565b600160a060020a0380841660009081526006602090815260408083203390941683529290529081205482111561036257600080fd5b600160a060020a03808516600090815260066020908152604080832033909416835292905220546103939083610550565b600160a060020a03808616600090815260066020908152604080832033909416835292905220556103c5848484610562565b5060019392505050565b60025481565b600160a060020a033316600090815260056020526040812054829010156103fb57600080fd5b60045433600160a060020a0390811691161461041657600080fd5b600160a060020a0333166000908152600560205260409020546104399083610550565b600160a060020a03331660009081526005602052604090205560035461045f9083610550565b600355600160a060020a0333167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58360405190815260200160405180910390a2506001919050565b60056020526000908152604090205481565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102ef5780601f106102c4576101008083540402835291602001916102ef565b61052f338383610562565b5050565b600660209081526000928352604080842090915290825290205481565b60008282111561055c57fe5b50900390565b6000600160a060020a038316151561057957600080fd5b600160a060020a0384166000908152600560205260409020548290101561059f57600080fd5b600160a060020a0383166000908152600560205260409020546105c281846106e1565b10156105cd57600080fd5b600160a060020a038085166000908152600560205260408082205492861682529020546105fa91906106e1565b600160a060020a0385166000908152600560205260409020549091506106209083610550565b600160a060020a03808616600090815260056020526040808220939093559085168152205461064f90836106e1565b600160a060020a03808516600081815260056020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a0380851660009081526005602052604080822054928616825290205482916106d4916106e1565b146106db57fe5b50505050565b818101828110156106ee57fe5b929150505600a165627a7a7230582088fc55228a003268b962f763ba0675d4d7df86f8403b72fa381e77940197f5350029

Deployed Bytecode

0x6060604052600436106100a35763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde0381146100a8578063095ea7b31461013257806318160ddd1461016857806323b872dd1461018d578063313ce567146101b557806342966c68146101c857806370a08231146101de57806395d89b41146101fd578063a9059cbb14610210578063dd62ed3e14610234575b600080fd5b34156100b357600080fd5b6100bb610259565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156100f75780820151838201526020016100df565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561013d57600080fd5b610154600160a060020a03600435166024356102f7565b604051901515815260200160405180910390f35b341561017357600080fd5b61017b610327565b60405190815260200160405180910390f35b341561019857600080fd5b610154600160a060020a036004358116906024351660443561032d565b34156101c057600080fd5b61017b6103cf565b34156101d357600080fd5b6101546004356103d5565b34156101e957600080fd5b61017b600160a060020a03600435166104a7565b341561020857600080fd5b6100bb6104b9565b341561021b57600080fd5b610232600160a060020a0360043516602435610524565b005b341561023f57600080fd5b61017b600160a060020a0360043581169060243516610533565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102ef5780601f106102c4576101008083540402835291602001916102ef565b820191906000526020600020905b8154815290600101906020018083116102d257829003601f168201915b505050505081565b600160a060020a033381166000908152600660209081526040808320938616835292905220819055600192915050565b60035481565b600160a060020a0380841660009081526006602090815260408083203390941683529290529081205482111561036257600080fd5b600160a060020a03808516600090815260066020908152604080832033909416835292905220546103939083610550565b600160a060020a03808616600090815260066020908152604080832033909416835292905220556103c5848484610562565b5060019392505050565b60025481565b600160a060020a033316600090815260056020526040812054829010156103fb57600080fd5b60045433600160a060020a0390811691161461041657600080fd5b600160a060020a0333166000908152600560205260409020546104399083610550565b600160a060020a03331660009081526005602052604090205560035461045f9083610550565b600355600160a060020a0333167fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca58360405190815260200160405180910390a2506001919050565b60056020526000908152604090205481565b60018054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102ef5780601f106102c4576101008083540402835291602001916102ef565b61052f338383610562565b5050565b600660209081526000928352604080842090915290825290205481565b60008282111561055c57fe5b50900390565b6000600160a060020a038316151561057957600080fd5b600160a060020a0384166000908152600560205260409020548290101561059f57600080fd5b600160a060020a0383166000908152600560205260409020546105c281846106e1565b10156105cd57600080fd5b600160a060020a038085166000908152600560205260408082205492861682529020546105fa91906106e1565b600160a060020a0385166000908152600560205260409020549091506106209083610550565b600160a060020a03808616600090815260056020526040808220939093559085168152205461064f90836106e1565b600160a060020a03808516600081815260056020526040908190209390935591908616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9085905190815260200160405180910390a3600160a060020a0380851660009081526005602052604080822054928616825290205482916106d4916106e1565b146106db57fe5b50505050565b818101828110156106ee57fe5b929150505600a165627a7a7230582088fc55228a003268b962f763ba0675d4d7df86f8403b72fa381e77940197f5350029

Swarm Source

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