Contract Overview
Balance: 0.000227 Ether
Ether Value: $0.03 (@ $121.80/ETH)
Transactions: 1395 txns
Token Tracker: Bitcoin Startup Capital (BSC)
Misc:
Address Watch: Add To Watch List
Contract Creator: 0xc4f0c17eef6244efacd45b9ab245fd053e7ac8beat txn 0xbea43cfb6169ede19b03dd103ad1b888052b1cfc68c378f7314cfe41fa2b4828
Token Balance:
 Latest 25 transactions from a total of 1395 transactions

TxHash Age From To Value [TxFee]
0x54f5ba606f8fde54d88ac9c74b2fac0675a6a87df6728fcf45e59690f9d373a516 hrs 24 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xa52195503a7ccdec05657a6350a59e1fbbd16527e19bf1459c34c1d8eab832c116 hrs 42 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x4b09a6749f57c2fdbd933a2718082ca6f75080393e4ba85aa0495d1948483bcb16 hrs 44 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xc9926a561dae08480ce48a0886dfe24f3a821169280950313e970a9b73dcbbbb16 hrs 46 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001764148
0x2787e5b821b0dd376418b2fe091065fe4293770caeb10221500c5de6b071360b17 hrs 16 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002381772
0x1c3ca94dfe7d12444015a304a4369f0c87f8a39a8d78b2af0a619b1d73029a0d8 days 5 hrs ago0xbdf0975a602e1622bbd35367e59de8ca27726abd  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000139266
0xc4b583a848a14aac519d8f73177a31f61ab2b1f3588253d1408f2bfc20a404d08 days 8 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.25 Ether0.003313005
0xc4771b94a9930c416339a4d0a0e435e065a044b8d646a48216c91271c59ead8d8 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x4125a1c3268631004ef1b85148284771a4aff2d4bec873af122d12195e18d6cd8 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xf7d6a38b8c71cb4a3cc2ed3940810650d0c660e28cd0ec99d54690c3235a6b8d8 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x2ceeb506cd6d8a0df7cf76f3f1a65c29e9f50e62e488c7eebbdc9cccea1e1c248 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x375525e01421a95528f67553e27e06070cdd1886446498530e034c0183cadecc8 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x3b80da6de81dd464ccece828af204829a0c243c5f4d822c18fd791330dd91be58 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x28c29f8656e5a9dd86126b9b5a55190d27212a5f18863a623bc4be7e97809a238 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001764148
0x09188dc0d41951d97594dd47c6f0545c53fd1a6bd7cc82555a086e2319431c0b8 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x5557eb25464460d24dac0baff1e8ba0275bb7a80955ee8d264ce49dfb85e90678 days 14 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xdab378c06344869449e46d3e23b68f51fac270c4f4ff4482b57165cdb5c7b1aa8 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002376524
0xf16ca9fb07c96cf4e71b55f6b24d635c67f59a35bda288b941b7f5bd667a5b368 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xc9bf61c385f66f7353029dc7d663544e8e0b00f8056cc190fc91bfbe0ed5fc238 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xff35dffb74cb1acb92c78d81c45b7c32bcf47b59e3234684bf3f10b09f282da38 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x20ac7ba720ee35f22234815e9f0c26d3e4b14f3fc949556f8d84dc2bf65e2d638 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xb33131f733beff579499c66c45cbcbb55e512930c396f27e91da503de61e21f48 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xc7de153b56f06fed73c352cbfe1f67f21a5c6d5f008f0db6d301ebaa26a94d7b8 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x746e92e5ebb4c67428c8aa91386ac5ee5cd45278d68df99b8d61e2bffddc94368 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0xc2959086388c32820900b9f7732ae8ff4fdefc2a1c7b0ceee19ea131663635c98 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
[ Download CSV Export  ] 
 Internal Transactions as a result of Contract Execution
 Latest 25 Internal Txns, Click here To View More View All
ParentTxHash Block Age From To Value
0x1c3ca94dfe7d12444015a304a4369f0c87f8a39a8d78b2af0a619b1d73029a0d70449148 days 5 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.2225 Ether
0xc4b583a848a14aac519d8f73177a31f61ab2b1f3588253d1408f2bfc20a404d070442268 days 8 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0275 Ether
0xa141f98e095efeba2f6b0618ac756b168e65b9428808bf92fe474aab69b5db06700892914 days 16 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.445 Ether
0xa23f04df68b06a6489c3363d49c5c65ee26c7e63e94af5ce7c099248804b5cdd700891614 days 16 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xe43fa424cb6218595c772941fe0d60c6d61fc46707fdb52914d589b3fb61a417700198815 days 22 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.0445 Ether
0xe86862981f455782c003eb5328b89a23ea196434beb681c6aeddff5922aa39dc700197615 days 22 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0055 Ether
0x16cc73f7346fe852f5820f12408b4d7841460b9f359bf053fb7099d2496387e9697671720 days 5 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.89 Ether
0xf73b62f895349ca6a39e41fa986da1fbf62df6d0612804212aab28d1db11ac47697509720 days 11 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.11 Ether
0x0f2ab659989fb9b59204d6b19828c77ec80fa04aaf1ccc0b8150f097e9f3e681696354622 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.0534 Ether
0x17b42b76246c3cd3e74e5caa913bfc61c1c395419827975bddeffabe2ccdc74c696305222 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0066 Ether
0x769b8cc86d7cdabebe8d389e1df5599995040411183da30b2938d17ad9ad2b50694422525 days 16 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.022161 Ether
0xcb2d0d76425391810cbb61c708199433077d5002f434631e2888c2ca25b41662694405925 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.4628 Ether
0x1f645320f7faaa9b6479fe2cc4c43747adbfbec13fa461c50e7653019e9ef84c694384425 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xa3c5a3b0a1b90da04138c912f271ab261723352f129723db4f50ab610e695b01693160527 days 19 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.405039 Ether
0x03cbc2fe5fb0e53fafbc21d89ee53d67d7fe04bcab3bb334a217c150992380f5693157027 days 19 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xf450b6d777ec6fe325bf086050178752c2a4e0f07356ca609ed89178f221b6fa692043429 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.445 Ether
0x451b37ebdc65bceed94941d7e0d4203fd95f91e267da00323fbd4177f1ff6e76692032429 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0x31fc84643f295501bdaafc9e0b6331226f167b67328873b24b3910c0fe28691d665996272 days 16 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.445 Ether
0x6bb1a8234456b2d53085d10b126391c961db63815cfcbde6e02876e88f858eac665922372 days 19 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xec98077d2e4b1d7f0ee0fd31735736b835e2c658bc8f12ca09299b838a81a75f663288777 days 3 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.89 Ether
0xd43ef8b8ff290b41245ae1ed08bb4d4211290ffbd104faeee0c5d55f158259fa663116977 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.11 Ether
0x54d6aee812a902c38b23d9ea574aade29eecb2b01e3bf5f5836325b157c4e647656942887 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x6f757f43988201a963eb14804c6b4f2284944f9b0.0267 Ether
0x84c4b4582895399024aa953907a8fd4e94be7f18d0975a3303dbe8d14e5b3c84656819487 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0011 Ether
0x54be8d779b59de4854a7bfccbdc745ec55bab461b9bfd30227d741b92b1f3dd0656819487 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x6f757f43988201a963eb14804c6b4f2284944f9b0.0267 Ether
0x61499dcb23feecd1dd5f7c5bdf760c96b54714ae42ab60f75a7be3195e5e43c7654361091 days 18 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0055 Ether
[ Download CSV Export  ] 
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), NestedArrayFunctionCallDecoder (medium-severity), ZeroFunctionSelector (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: BSCToken
Compiler Text: v0.4.16+commit.d7661dd9
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.13;
contract owned {
    /* Owner definition. */
    address public owner; // Owner address.
    function owned() { owner = msg.sender; }
    modifier onlyOwner { require(msg.sender == owner); _; }
    function transferOwnership(address newOwner) onlyOwner { owner = newOwner; }
}
contract token { 
    /* Base token definition. */
    string  public name;        // Name for the token.
    string  public symbol;      // Symbol for the token.
    uint8   public decimals;    // Number of decimals of the token.
    uint256 public totalSupply; // Total of tokens created.

    // Array containing the balance foreach address.
    mapping (address => uint256) public balanceOf;
    // Array containing foreach address, an array containing each approved address and the amount of tokens it can spend.
    mapping (address => mapping (address => uint256)) public allowance;

    /* This generates a public event on the blockchain that will notify about a transfer done. */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /* Initializes the contract */
    function token(uint256 initialSupply, string tokenName, uint8 decimalUnits, string tokenSymbol) {
        balanceOf[msg.sender] = initialSupply; // Gives the creator all initial tokens.
        totalSupply           = initialSupply; // Update total supply.
        name                  = tokenName;     // Set the name for display purposes.
        symbol                = tokenSymbol;   // Set the symbol for display purposes.
        decimals              = decimalUnits;  // Amount of decimals for display purposes.
    }

    /* Internal transfer, only can be called by this contract. */
    function _transfer(address _from, address _to, uint _value) internal {
        require(_to != 0x0);                               // Prevent transfer to 0x0 address. Use burn() instead.
        require(balanceOf[_from] > _value);                // Check if the sender has enough.
        require(balanceOf[_to] + _value > balanceOf[_to]); // Check for overflows.
        balanceOf[_from] -= _value; // Subtract from the sender.
        balanceOf[_to]   += _value; // Add the same to the recipient.
        Transfer(_from, _to, _value); // Notifies the blockchain about the transfer.
    }

    /// @notice 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) {
        _transfer(msg.sender, _to, _value);
    }

    /// @notice Send `_value` tokens to `_to` in 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) returns (bool success) {
        require(_value <= allowance[_from][msg.sender]); // Check allowance.
        allowance[_from][msg.sender] -= _value; // Updates the allowance array, substracting the amount sent.
        _transfer(_from, _to, _value); // Makes the transfer.
        return true;
    }

    /// @notice Allows `_spender` to spend a maximum of `_value` tokens in your behalf.
    /// @param _spender The address authorized to spend.
    /// @param _value The max amount they can spend.
    function approve(address _spender, uint256 _value) returns (bool success) {
        allowance[msg.sender][_spender] = _value; // Adds a new register to allowance, permiting _spender to use _value of your tokens.
        return true;
    }
}

contract BSCToken is owned, token {
    /* Specific token definition for -Bitcoin StartUp Capital S.A.- company. */
    uint256 public sellPrice         = 5000000000000000;  // Price applied if someone wants to sell a token.
    uint256 public buyPrice          = 10000000000000000; // Price applied if someone wants to buy a token.
    bool    public closeBuy          = false;             // If true, nobody will be able to buy.
    bool    public closeSell         = false;             // If true, nobody will be able to sell.
    uint256 public tokensAvailable   = balanceOf[this];   // Number of tokens available for sell.
    uint256 public distributedTokens = 0;                 // Number of tokens distributed.
    uint256 public solvency          = this.balance;      // Amount of Ether available to pay sales.
    uint256 public profit            = 0;                 // Shows the actual profit for the company.

    // Array containing foreach address if it's frozen or not.
    mapping (address => bool) public frozenAccount;

    /* This generates a public event on the blockchain that will notify about an address being freezed. */
    event FrozenFunds(address target, bool frozen);
    /* This generates a public event on the blockchain that will notify about an addition of Ether to the contract. */
    event LogDeposit(address sender, uint amount);
    /* This generates a public event on the blockchain that will notify about a migration has been completed. */
    event LogMigration(address receiver, uint amount);
    /* This generates a public event on the blockchain that will notify about a Withdrawal of Ether from the contract. */
    event LogWithdrawal(address receiver, uint amount);

    /* Initializes the contract */
    function BSCToken( uint256 initialSupply, string tokenName, uint8 decimalUnits, string tokenSymbol ) token (initialSupply, tokenName, decimalUnits, tokenSymbol) {}

    /* Internal transfer, only can be called by this contract */
    function _transfer(address _from, address _to, uint _value) internal {
        require(_to != 0x0);                               // Prevent transfer to 0x0 address. User should use burn() instead.
        require(balanceOf[_from] >= _value);               // Check if the sender has enough.
        require(balanceOf[_to] + _value > balanceOf[_to]); // Check for overflows.
        require(!frozenAccount[_from]);                    // Check if sender is frozen.
        require(!frozenAccount[_to]);                      // Check if recipient is frozen.
        
        balanceOf[_from] -= _value; // Subtracts from the sender.
        balanceOf[_to]   += _value; // Adds the same to the recipient.

        _updateTokensAvailable(balanceOf[this]); // Update the balance of tokens available if necessary.
        
        Transfer(_from, _to, _value); // Notifies the blockchain about the transfer.
    }

    /* Internal, updates the balance of tokens available. */
    function _updateTokensAvailable(uint256 _tokensAvailable) internal {
        tokensAvailable = _tokensAvailable;
    }

    /* Internal, updates the balance of Ether available in order to cover potential sales. */
    function _updateSolvency(uint256 _solvency) internal {
        solvency = _solvency;
    }

    /* Internal, updates the profit value */
    function _updateProfit(uint256 _increment, bool add) internal{
        if (add){
            // Increase the profit value
            profit = profit + _increment;
        }else{
            // Decrease the profit value
            if(_increment > profit){
                profit = 0;
            }else{
                profit = profit - _increment;
            }
        }
    }

    /// @notice The owner sends `_value` tokens to `_to`, because `_to` have the right. The tokens migrated count as pre-distributed ones.
    /// @param _to The address of the recipient.
    /// @param _value The amount to send.
    function completeMigration(address _to, uint256 _value) onlyOwner payable{
        require( msg.value >= (_value * sellPrice) );       // Owner has to send enough ETH to proceed.
        require((this.balance + msg.value) > this.balance); // Checks for overflows.
        
        //Contract has already received the Ether when this function is executed.
        _updateSolvency(this.balance);   // Updates the value of solvency of the contract.
        _updateProfit(msg.value, false); // Decrease profit value.
        // Decrease because the owner invests his own Ether in order to guarantee the solvency.

        _transfer(msg.sender, _to, _value); // Transfers the tokens to the investor's address.
        distributedTokens = distributedTokens + _value; // Increase the number of tokens distributed.

        LogMigration( _to, _value); // Notifies the blockchain about the migration taking place.
    }

    /// @notice Create `mintedAmount` tokens and send it to `target`.
    /// @param target Address to receive the tokens.
    /// @param mintedAmount The amount of tokens target will receive.
    function mintToken(address target, uint256 mintedAmount) onlyOwner {
        balanceOf[target] += mintedAmount; // Updates target's balance.
        totalSupply       += mintedAmount; // Updates totalSupply.

        _updateTokensAvailable(balanceOf[this]); // Update the balance of tokens available if necessary.
        
        Transfer(0, this, mintedAmount);      // Notifies the blockchain about the tokens created.
        Transfer(this, target, mintedAmount); // Notifies the blockchain about the transfer to target.
    }

    /// @notice `freeze? Prevent | Allow` `target` from sending & receiving tokens.
    /// @param target Address to be frozen.
    /// @param freeze Either to freeze target or not.
    function freezeAccount(address target, bool freeze) onlyOwner {
        frozenAccount[target] = freeze; // Sets the target status. True if it's frozen, False if it's not.
        FrozenFunds(target, freeze); // Notifies the blockchain about the change of state.
    }

    /// @notice Allow addresses to pay `newBuyPrice`ETH when buying and receive `newSellPrice`ETH when selling, foreach token bought/sold.
    /// @param newSellPrice Price applied when an address sells its tokens, amount in WEI (1ETH = 10¹⁸WEI).
    /// @param newBuyPrice Price applied when an address buys tokens, amount in WEI (1ETH = 10¹⁸WEI).
    function setPrices(uint256 newSellPrice, uint256 newBuyPrice) onlyOwner {
        sellPrice = newSellPrice; // Updates the buying price.
        buyPrice = newBuyPrice;   // Updates the selling price.
    }

    /// @notice Sets the state of buy and sell operations
    /// @param isClosedBuy True if buy operations are closed, False if opened.
    /// @param isClosedSell True if sell operations are closed, False if opened.
    function setStatus(bool isClosedBuy, bool isClosedSell) onlyOwner {
        closeBuy = isClosedBuy;   // Updates the state of buy operations.
        closeSell = isClosedSell; // Updates the state of sell operations.
    }

    /// @notice Deposits Ether to the contract
    function deposit() payable returns(bool success) {
        require((this.balance + msg.value) > this.balance); // Checks for overflows.
        
        //Contract has already received the Ether when this function is executed.
        _updateSolvency(this.balance);   // Updates the value of solvency of the contract.
        _updateProfit(msg.value, false); // Decrease profit value.
        // Decrease because deposits will be done mostly by the owner.
        // Possible donations won't count as profit. Atleast not for the company, but in favor of the investors.

        LogDeposit(msg.sender, msg.value); // Notifies the blockchain about the Ether received.
        return true;
    }

    /// @notice The owner withdraws Ether from the contract.
    /// @param amountInWeis Amount of ETH in WEI which will be withdrawed.
    function withdraw(uint amountInWeis) onlyOwner {
        LogWithdrawal(msg.sender, amountInWeis); // Notifies the blockchain about the withdrawal.
        _updateSolvency( (this.balance - amountInWeis) ); // Updates the value of solvency of the contract.
        _updateProfit(amountInWeis, true);                // Increase the profit value.
        owner.transfer(amountInWeis); // Sends the Ether to owner address.
    }

    /// @notice Buy tokens from contract by sending Ether.
    function buy() payable {
        require(!closeBuy); // Buy operations must be opened.
        uint amount = msg.value / buyPrice; // Calculates the amount of tokens to be sent.
        uint256 profit_in_transaction = msg.value - (amount * sellPrice); // Calculates the relative profit for this transaction.
        require( profit_in_transaction > 0 );

        //Contract has already received the Ether when this function is executed.
        _transfer(this, msg.sender, amount); // Makes the transfer of tokens.
        distributedTokens = distributedTokens + amount; // Increase the number of tokens distributed.
        _updateSolvency(this.balance - profit_in_transaction);   // Updates the value of solvency of the contract.
        _updateProfit(profit_in_transaction, true);              // Increase the profit value.
        owner.transfer(profit_in_transaction); // Sends profit to the owner of the contract.
    }

    /// @notice Sell `amount` tokens to the contract.
    /// @param amount amount of tokens to be sold.
    function sell(uint256 amount) {
        require(!closeSell); // Sell operations must be opened.
        require(this.balance >= amount * sellPrice); // Checks if the contract has enough Ether to buy.
        
        _transfer(msg.sender, this, amount); // Makes the transfer of tokens, the contract receives the tokens.
        distributedTokens = distributedTokens - amount; // Decrease the number of tokens distributed.
        _updateSolvency( (this.balance - (amount * sellPrice)) ); // Updates the value of solvency of the contract.
        msg.sender.transfer(amount * sellPrice); // Sends Ether to the seller.
    }
}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"newSellPrice","type":"uint256"},{"name":"newBuyPrice","type":"uint256"}],"name":"setPrices","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"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":false,"inputs":[{"name":"amountInWeis","type":"uint256"}],"name":"withdraw","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":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"distributedTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokensAvailable","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"profit","outputs":[{"name":"","type":"uint256"}],"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":"solvency","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"completeMigration","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"mintedAmount","type":"uint256"}],"name":"mintToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","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":"buy","outputs":[],"payable":true,"stateMutability":"payable","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":"isClosedBuy","type":"bool"},{"name":"isClosedSell","type":"bool"}],"name":"setStatus","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"frozenAccount","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"closeSell","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"closeBuy","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[{"name":"success","type":"bool"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"target","type":"address"},{"name":"freeze","type":"bool"}],"name":"freezeAccount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"decimalUnits","type":"uint8"},{"name":"tokenSymbol","type":"string"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"target","type":"address"},{"indexed":false,"name":"frozen","type":"bool"}],"name":"FrozenFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"sender","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogDeposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"receiver","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogMigration","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"receiver","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"LogWithdrawal","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"}]

  Contract Creation Code Switch To Opcodes View
606060409081526611c37937e08000600755662386f26fc100006008556009805461ffff19169055600160a060020a0330166000818152600560205291822054600a55600b82905531600c55600d5534156200005a57600080fd5b604051620011ef380380620011ef83398101604052808051919060200180518201919060200180519190602001805190910190505b838383835b5b60008054600160a060020a03191633600160a060020a03161790555b600160a060020a033316600090815260056020526040902084905560048490556001838051620000e69291602001906200011c565b506002818051620000fc9291602001906200011c565b506003805460ff191660ff84161790555b505050505b50505050620001c6565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200015f57805160ff19168380011785556200018f565b828001600101855582156200018f579182015b828111156200018f57825182559160200191906001019062000172565b5b506200019e929150620001a2565b5090565b620001c391905b808211156200019e5760008155600101620001a9565b5090565b90565b61101980620001d66000396000f300606060405236156101725763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166305fefda7811461017757806306fdde0314610192578063095ea7b31461021d57806318160ddd1461025357806323b872dd146102785780632e1a7d4d146102b4578063313ce567146102cc5780634b750334146102f5578063586360ce1461031a57806360659a921461033f57806366d16cc31461036457806370a0823114610389578063773c5049146103ba578063780ae915146103df57806379c65068146103f85780638620410b1461041c5780638da5cb5b1461044157806395d89b4114610470578063a6f2ae3a146104fb578063a9059cbb14610505578063b3c2eac114610529578063b414d4b614610548578063ba83c9701461057b578063c6ab5cdc146105a2578063d0e30db0146105c9578063dd62ed3e146105e5578063e4849b321461061c578063e724529c14610634578063f2fde38b1461065a575b600080fd5b341561018257600080fd5b61019060043560243561067b565b005b341561019d57600080fd5b6101a56106a6565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e25780820151818401525b6020016101c9565b50505050905090810190601f16801561020f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561022857600080fd5b61023f600160a060020a0360043516602435610744565b604051901515815260200160405180910390f35b341561025e57600080fd5b610266610775565b60405190815260200160405180910390f35b341561028357600080fd5b61023f600160a060020a036004358116906024351660443561077b565b604051901515815260200160405180910390f35b34156102bf57600080fd5b6101906004356107f3565b005b34156102d757600080fd5b6102df6108aa565b60405160ff909116815260200160405180910390f35b341561030057600080fd5b6102666108b3565b60405190815260200160405180910390f35b341561032557600080fd5b6102666108b9565b60405190815260200160405180910390f35b341561034a57600080fd5b6102666108bf565b60405190815260200160405180910390f35b341561036f57600080fd5b6102666108c5565b60405190815260200160405180910390f35b341561039457600080fd5b610266600160a060020a03600435166108cb565b60405190815260200160405180910390f35b34156103c557600080fd5b6102666108dd565b60405190815260200160405180910390f35b610190600160a060020a03600435166024356108e3565b005b341561040357600080fd5b610190600160a060020a03600435166024356109a4565b005b341561042757600080fd5b610266610a84565b60405190815260200160405180910390f35b341561044c57600080fd5b610454610a8a565b604051600160a060020a03909116815260200160405180910390f35b341561047b57600080fd5b6101a5610a99565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101e25780820151818401525b6020016101c9565b50505050905090810190601f16801561020f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610190610b37565b005b341561051057600080fd5b610190600160a060020a0360043516602435610be0565b005b341561053457600080fd5b61019060043515156024351515610bf0565b005b341561055357600080fd5b61023f600160a060020a0360043516610c2c565b604051901515815260200160405180910390f35b341561058657600080fd5b61023f610c41565b604051901515815260200160405180910390f35b34156105ad57600080fd5b61023f610c4f565b604051901515815260200160405180910390f35b61023f610c58565b604051901515815260200160405180910390f35b34156105f057600080fd5b610266600160a060020a0360043581169060243516610cdd565b60405190815260200160405180910390f35b341561062757600080fd5b610190600435610cfa565b005b341561063f57600080fd5b610190600160a060020a03600435166024351515610d94565b005b341561066557600080fd5b610190600160a060020a0360043516610e22565b005b60005433600160a060020a0390811691161461069657600080fd5b600782905560088190555b5b5050565b60018054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561073c5780601f106107115761010080835404028352916020019161073c565b820191906000526020600020905b81548152906001019060200180831161071f57829003601f168201915b505050505081565b600160a060020a03338116600090815260066020908152604080832093861683529290522081905560015b92915050565b60045481565b600160a060020a038084166000908152600660209081526040808320339094168352929052908120548211156107b057600080fd5b600160a060020a03808516600090815260066020908152604080832033909416835292905220805483900390556107e8848484610e6a565b5060015b9392505050565b60005433600160a060020a0390811691161461080e57600080fd5b7fb4214c8c54fc7442f36d3682f59aebaf09358a4431835b30efb29d52cf9e1e913382604051600160a060020a03909216825260208201526040908101905180910390a16108678130600160a060020a03163103610fa4565b610872816001610fad565b600054600160a060020a031681156108fc0282604051600060405180830381858888f1935050505015156108a557600080fd5b5b5b50565b60035460ff1681565b60075481565b600b5481565b600a5481565b600d5481565b60056020526000908152604090205481565b600c5481565b60005433600160a060020a039081169116146108fe57600080fd5b600754810234101561090f57600080fd5b600160a060020a0330168031903134011161092957600080fd5b61093c30600160a060020a031631610fa4565b610947346000610fad565b610952338383610e6a565b600b8054820190557fdbc139be75ee0b1663c70c64738c6ef477bef775c39533021231944d890d223d8282604051600160a060020a03909216825260208201526040908101905180910390a15b5b5050565b60005433600160a060020a039081169116146109bf57600080fd5b600160a060020a03808316600090815260056020526040808220805485019055600480548501905530909216815220546109f890610fe4565b30600160a060020a031660007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a381600160a060020a031630600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35b5b5050565b60085481565b600054600160a060020a031681565b60028054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561073c5780601f106107115761010080835404028352916020019161073c565b820191906000526020600020905b81548152906001019060200180831161071f57829003601f168201915b505050505081565b600954600090819060ff1615610b4c57600080fd5b60085434811515610b5957fe5b049150600754820234039050600081111515610b7457600080fd5b610b7f303384610e6a565b600b805483019055610b9d600160a060020a03301631829003610fa4565b610ba8816001610fad565b600054600160a060020a031681156108fc0282604051600060405180830381858888f1935050505015156106a157600080fd5b5b5050565b6106a1338383610e6a565b5b5050565b60005433600160a060020a03908116911614610c0b57600080fd5b6009805460ff19168315151761ff001916610100831515021790555b5b5050565b600e6020526000908152604090205460ff1681565b600954610100900460ff1681565b60095460ff1681565b6000600160a060020a03301680319031340111610c7457600080fd5b610c8730600160a060020a031631610fa4565b610c92346000610fad565b7f1b851e1031ef35a238e6c67d0c7991162390df915f70eaf9098dbf0b175a61983334604051600160a060020a03909216825260208201526040908101905180910390a15060015b90565b600660209081526000928352604080842090915290825290205481565b600954610100900460ff1615610d0f57600080fd5b6007548102600160a060020a033016311015610d2a57600080fd5b610d35333083610e6a565b80600b5403600b81905550610d59600754820230600160a060020a03163103610fa4565b33600160a060020a03166108fc60075483029081150290604051600060405180830381858888f1935050505015156108a557600080fd5b5b50565b60005433600160a060020a03908116911614610daf57600080fd5b600160a060020a0382166000908152600e602052604090819020805460ff19168315151790557f48335238b4855f35377ed80f164e8c6f3c366e54ac00b96a6402d4a9814a03a5908390839051600160a060020a039092168252151560208201526040908101905180910390a15b5b5050565b60005433600160a060020a03908116911614610e3d57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b50565b600160a060020a0382161515610e7f57600080fd5b600160a060020a03831660009081526005602052604090205481901015610ea557600080fd5b600160a060020a03821660009081526005602052604090205481810111610ecb57600080fd5b600160a060020a0383166000908152600e602052604090205460ff1615610ef157600080fd5b600160a060020a0382166000908152600e602052604090205460ff1615610f1757600080fd5b600160a060020a038084166000908152600560205260408082208054859003905584831682528082208054850190553090921681522054610f5790610fe4565b81600160a060020a031683600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405190815260200160405180910390a35b505050565b600c8190555b50565b8015610fc057600d8054830190556106a1565b600d54821115610fd4576000600d556106a1565b600d805483900390555b5b5b5050565b600a8190555b505600a165627a7a7230582014514b5c2bdc772b3ea28a9ea7c667b61a7a7c9db91d2283a8d8f84d802c421e00290000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000017426974636f696e2053746172747570204361706974616c00000000000000000000000000000000000000000000000000000000000000000000000000000000034253430000000000000000000000000000000000000000000000000000000000

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

-----Encoded View---------------
8 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000005f5e100
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000000
Arg [3] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [5] : 426974636f696e2053746172747570204361706974616c000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4253430000000000000000000000000000000000000000000000000000000000


   Swarm Source:
bzzr://14514b5c2bdc772b3ea28a9ea7c667b61a7a7c9db91d2283a8d8f84d802c421e

 

View All
Block Age transaction Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.