Sponsored:   Color Platform: Decentralized App Store - Special Airdrop For Everyone (~17 Sep), Register NOW!
Contract Overview
Balance: 0.013488 Ether
Ether Value: $3.25 (@ $241.02/ETH)
Transactions: 1242 txns
Token Tracker: Bitcoin Startup Capital (BSC)
 Latest 25 txns From a total of 1242 Transactions

TxHash Age From To Value [TxFee]
0x1d28fc2b1846aafbe29b79ec32b049935726f12c3d85ea2320b26eb9ae8889371 day 10 hrs ago0xbca1d234a0e93c564d309fbb884aae72acc01336  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002518302
0xed687046467ed2f9da03b07537bca6e62bd41da920d251ca98118aca878a805a1 day 11 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0x4a063992febed7cda3352fe4cdd042cdd8df0cebc07d20b47d6c9286c70186a31 day 11 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.0009618
0x87316f7a3e47fc0f6c6c97069b1daa6c23865b0d51dbedb772c2e746c45211921 day 11 hrs ago0xc7d98d5c92fa6d24d8fda344133b994c73030c07  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.1 Ether0.001381905
0x9dc0ec53d6231ca6b24a52470c2ec39f4716f07bf810eb9ede77ee8345da52e31 day 11 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001219932
0x9b26f754084448c42b00ba83dc4ef8383a505f490624268b57998190b9cd439f3 days 19 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0xdfc936cadce2db25a13f4baeed907838b7dadd1907519cf4e55b0ef57c8b20024 days 11 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001219932
0x4e4f44c08c7a3d58b882f0b8c06fdc3c41bd67c5792cf5f3e7778901a69e094b6 days 1 hr ago0x9a7ba3a94c8a0fff3a393f978ee8506411e8260b  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001014012
0x203a68821ab0aa921f20987d1cfe68d9dfd01ad07d0848fcb401ded7523b6a348 days 8 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001219932
0x1725386d798e3e23433bd8ad0621820ce9ae6c6cdd1813de716065418cc7307e8 days 20 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001219932
0x16217f0f98a39984fa8481fb995c59c41424f8d362e8d324e868519d4a14d4418 days 20 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.0009618
0xb7bef5a83f7bf406039c3104acdf8bd5b9bbeb1dc85868d40e5af3cd59d9a5dc8 days 21 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0xdf0b9f344d6e84d1b484f20ec7769866d5c7d9c634040679437fd5a0a38e3af98 days 21 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0x4b5d3db79765c56de70f9b7d9b0cb047552cb87c3cff177e0841c508f130465711 days 9 hrs ago0xbca1d234a0e93c564d309fbb884aae72acc01336  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002518302
0x43c873a25b000919d2807cdd478fd84aba808503bace457ec2228cf73b93f76c11 days 10 hrs ago0xc7d98d5c92fa6d24d8fda344133b994c73030c07  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc91.2 Ether0.001381905
0x7b825c30ebf665b1c989e1e65b37aaa1b8a81074e7e59800de6b27586e0572a315 days 10 hrs ago0xbca1d234a0e93c564d309fbb884aae72acc01336  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002518302
0xc603023e03d299ff259902864a8b79e3ff5ef900e4979ab6c13bf6811706e8c815 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001219932
0xaeeb2f82d305ffc044774f123207176709e58117793e2ef84529dcca5fe58e1d15 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001219932
0x31a329ef3f39aaa44755e051b52f74b2731cac36833864074230dc7fd7f52c7815 days 15 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.4 Ether0.001381905
0x7cc78c823dd9987fb06437bdd0f8c45f88df4a4912464984932aa9d7665a9db415 days 15 hrs ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000906276
0xf4b183a4dee02063b945279ebc735a720ec2f2aad572af95404de329d449c8ea15 days 16 hrs ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000906276
0x818f1c276ae486f3a82a4c570ec67e2d89a3e4e2bd057747f6731202d054727417 days 21 hrs ago0xbca1d234a0e93c564d309fbb884aae72acc01336  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002518302
0xa83c0b101ba919240c52de5a61643ceb530550613301b6b2c8a81f1f97292c9a17 days 21 hrs ago0x9a7ba3a94c8a0fff3a393f978ee8506411e8260b  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000919179
0x0a5cc4408cc7206c5d767957083d5c2359d005326461e3a08b75d6c31c3ac52417 days 21 hrs ago0x9a7ba3a94c8a0fff3a393f978ee8506411e8260b  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001782721
0xbc0c01b445d8464ae2dc297f3a885d43f2dcd5383e479fb4ab011e7e968a739318 days 8 hrs ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001221276
[ 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
0x1d28fc2b1846aafbe29b79ec32b049935726f12c3d85ea2320b26eb9ae88893763677501 day 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.0979 Ether
0x87316f7a3e47fc0f6c6c97069b1daa6c23865b0d51dbedb772c2e746c452119263674791 day 11 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.011 Ether
0x4b5d3db79765c56de70f9b7d9b0cb047552cb87c3cff177e0841c508f1304657630744811 days 9 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013361.05465 Ether
0x43c873a25b000919d2807cdd478fd84aba808503bace457ec2228cf73b93f76c630709911 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.132 Ether
0x7b825c30ebf665b1c989e1e65b37aaa1b8a81074e7e59800de6b27586e0572a3628348115 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.3827 Ether
0x31a329ef3f39aaa44755e051b52f74b2731cac36833864074230dc7fd7f52c78628207815 days 15 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.044 Ether
0x818f1c276ae486f3a82a4c570ec67e2d89a3e4e2bd057747f6731202d0547274626880917 days 21 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.8811 Ether
0xd32c9e09f90e3476557cc19236e1ab354891d27fef2cb327679c7df6018fe086626583718 days 9 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.11 Ether
0x22c88f92d088bf22c817092b8389528697a25424eff693895136ca3fd54e9f97626378918 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.356 Ether
0x65aa17ea5822d250506825858165cc883e7cc9ff055b3cf224e0b44ffa6f6a8c626376618 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.044 Ether
0x1ccddf4abae4008d1ac2d616ce25f28de7a1ef630ca1b48f277f67a5ac6ad040625395620 days 8 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.445 Ether
0xe6eebd1b6b5a67347ec90ad22ae282228faf978e28a7ae10c28c152124cab531625282520 days 13 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xa224a10c0f09463381fce0ef4b335ca13b8f28d799af2914101cbc2deb316575624177422 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9a7ba3a94c8a0fff3a393f978ee8506411e8260b2.225 Ether
0x0ced0136330abdafbfe61c5ae3225b858e317f55a32110a412a8f0f6f185aba5624162822 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.22 Ether
0x26ed31b4af36902d7733373af83da1e30bb8d1ad411bd42ed2eb048de1dd9f2c623977522 days 18 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0x37538473c4f63de6aa86e00dfdbb400e25941e4bdda53befc61871d0b126eec0623592623 days 9 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9a7ba3a94c8a0fff3a393f978ee8506411e8260b0.4183 Ether
0xba1649ee9d2f7a06d874080ca6b13a51e89ec583a639de73ac071d9bbd81a489623588423 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9a7ba3a94c8a0fff3a393f978ee8506411e8260b4.005 Ether
0x21d0cd8d7887108b63e60f112a29326ab30fb77d9b3006ee8ea7ec89d9c35970623572423 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.55 Ether
0x56b4448cc46bb0b124539ba6e589e898769165ede98b68ad4effb632f291c65f623233324 days 45 mins ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9a7ba3a94c8a0fff3a393f978ee8506411e8260b0.0623 Ether
0x28844112ea6ff2399a599d16877eb2593c01f4e3fa8a0017845840acbb8984eb623215524 days 1 hr ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9a7ba3a94c8a0fff3a393f978ee8506411e8260b0.5785 Ether
0x82ad4a971e6e43ff5eccbf8dccc6cafe24279852f934739b2ca3286ad8f7be59623137624 days 4 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0001059 Ether
0xa3f6d03d4d0a52b381558550cd3b909b7d956a4bd75aeca365a6fdb9d101baab623107124 days 5 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.077 Ether
0x27925123438e9c960be7fd221c8681a9b641e77e86d72267bc1f8184396b0ea3621320327 days 6 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9a7ba3a94c8a0fff3a393f978ee8506411e8260b0.1335 Ether
0xb196c458b5c56216cebf6445ad6f0162fa09b60aa35d2720a1bf5fed133a5021621319127 days 6 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9a7ba3a94c8a0fff3a393f978ee8506411e8260b0.3115 Ether
0xc1bf38efbaa1e81ec4aeb875d6bcbbd9bd42588c160cac2fecf5348d30bc389f621233227 days 9 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 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 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.