Sponsored:   LH-CRYPTO - 200 instruments (BTC, EUR, GOLD, OIL, SHARES). Leverage up to 1:500. OPEN ACCOUNT
Contract Overview
Balance: 0.000227 Ether
Ether Value: $0.04 (@ $178.15/ETH)
Transactions: 1324 txns
Token Tracker: Bitcoin Startup Capital (BSC)
 Latest 25 transactions from a total of 1324 transactions

TxHash Age From To Value [TxFee]
0xf7b3249070082f9e7b135a0c159fcd6f31a210232e29a2edefc98543eec8bfd63 days 16 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000645176
0x5debcaba49552d59c772434829ff55a62272b98a196d2d8fc3fb0940248000ae3 days 16 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.0018778
0x410730309fae1d871c212c2ea66c5406ecc65f2e3ec56175e9aabf6d3541305d3 days 22 hrs ago0x3f64f2346bfe0c286dfbb440154028b3f9fe8282  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001154396
0xc2cc1dedaa5a22abed7e4a09eba33e086e09a27d2ca794c0ebf24148eeb2675a4 days 8 hrs ago0x1a1d6d70932743b386c8db378cd9854bcdf2a1ac  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.0001221276
0x8e340005acaae3c6b808c50e88c259175b318e4adab6ea7eb4874dfd6f8993334 days 8 hrs ago0x1a1d6d70932743b386c8db378cd9854bcdf2a1ac  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002379148
0x42ca30983f0b08fa650547010a545006a55f3ceb5c08cc553b1fc93f4eefa4644 days 20 hrs ago0x3f64f2346bfe0c286dfbb440154028b3f9fe8282  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001154396
0x8f9148acc5d47f2ed23efa59d2b433a2aff98e5d371f4f87c70fa2debf847a354 days 20 hrs ago0x1a1d6d70932743b386c8db378cd9854bcdf2a1ac  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002384396
0x0c5ef778e65a8e494010c9cbb51208b03519be9a003dc3dfce9edaab3dd97d4a5 days 19 hrs ago0x8949412617036dc7c369815f5739372da135a5ed  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002381772
0x3381c9a9c3bf91c9587aa1ea828f8b2add352be28f96240cc6f1a8fefa3170215 days 21 hrs ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001766772
0x75678ec386ada7c6d6b677afba43567884fd9dfac97d219fc586a99a8a2053666 days 4 mins ago0x3f64f2346bfe0c286dfbb440154028b3f9fe8282  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001154396
0xebeb484f976df5388f3e275931377eb650f8ba126a7e04cf5c9c609579aedd546 days 6 mins ago0x1a1d6d70932743b386c8db378cd9854bcdf2a1ac  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002384396
0xc2dea9886d067407a658b8fdfff605033ac11c594c99118763b008222dc4e6526 days 9 mins ago0x1a1d6d70932743b386c8db378cd9854bcdf2a1ac  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002381772
0xd545398cc3ea3de27e361b877c999e5a48042f48fae746a32a522b5d8b84244c6 days 16 hrs ago0x3f64f2346bfe0c286dfbb440154028b3f9fe8282  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001154396
0xfd504cb549e91871c81c5899cc9130327e42bf8b11df7367a031f6b1ee954fce6 days 16 hrs ago0x1a1d6d70932743b386c8db378cd9854bcdf2a1ac  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.002384396
0x1cd9a6357beb43915d84fc5e66828b0d86262111bac3d2b6e6413c4a02b448246 days 17 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000645176
0x03143e36de6d8b2b0244aa77c2f8a24824456226ee0f7077a7fc1193372e9f276 days 17 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000645176
0x9e6dbb34667e7dc6b98b234576b7dcf3d8d3f0c51dc3afa0fc770efefc87d1b36 days 17 hrs ago0x3f64f2346bfe0c286dfbb440154028b3f9fe8282  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001154396
0x433a5038f43f02abd156c64970117aafdc90d79ef4ca81a0b6fc9c8457527c6d6 days 17 hrs ago0xa5461268b4e6b3df8ee58ec26be9d011e4ae342e  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001769396
0xb5154ac7a37a4b964e10d08613367268c6d013b84fcbb5738ee7f185c82b3aaf6 days 18 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000645176
0xc4ad06c7975fc3ce3e90ac61bfc0dea5e213bb103aa175e1d11b98e0e3a5d9996 days 21 hrs ago0xa5461268b4e6b3df8ee58ec26be9d011e4ae342e  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000984
0x7d77180fbd75d421414f0784e8dca4df3d61fc5914f002b9a6f7e8d76db4c27d6 days 21 hrs ago0xa5461268b4e6b3df8ee58ec26be9d011e4ae342e  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000984
0x31fc84643f295501bdaafc9e0b6331226f167b67328873b24b3910c0fe28691d7 days 18 hrs ago0x47d6ececcb9196dee3be5cc99a196b28d1556f87  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000278532
0x6bb1a8234456b2d53085d10b126391c961db63815cfcbde6e02876e88f858eac7 days 21 hrs ago0xc7d98d5c92fa6d24d8fda344133b994c73030c07  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.5 Ether0.003313005
0x0c54a60951896d1889b9e2184e7fda898062567b83740fc03f112b19ad47a2588 days 9 hrs ago0x3f64f2346bfe0c286dfbb440154028b3f9fe8282  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001151772
0x9b198620a9ba53a490aea131ba4462e27b910ea6ed9efa42616bcb2c9905536d8 days 9 hrs ago0x3f64f2346bfe0c286dfbb440154028b3f9fe8282  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001764148
[ 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
0x31fc84643f295501bdaafc9e0b6331226f167b67328873b24b3910c0fe28691d66599627 days 18 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.445 Ether
0x6bb1a8234456b2d53085d10b126391c961db63815cfcbde6e02876e88f858eac66592237 days 21 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xec98077d2e4b1d7f0ee0fd31735736b835e2c658bc8f12ca09299b838a81a75f663288712 days 5 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.89 Ether
0xd43ef8b8ff290b41245ae1ed08bb4d4211290ffbd104faeee0c5d55f158259fa663116912 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.11 Ether
0x54d6aee812a902c38b23d9ea574aade29eecb2b01e3bf5f5836325b157c4e647656942822 days 14 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x6f757f43988201a963eb14804c6b4f2284944f9b0.0267 Ether
0x84c4b4582895399024aa953907a8fd4e94be7f18d0975a3303dbe8d14e5b3c84656819422 days 19 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0011 Ether
0x54be8d779b59de4854a7bfccbdc745ec55bab461b9bfd30227d741b92b1f3dd0656819422 days 19 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x6f757f43988201a963eb14804c6b4f2284944f9b0.0267 Ether
0x61499dcb23feecd1dd5f7c5bdf760c96b54714ae42ab60f75a7be3195e5e43c7654361026 days 19 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0055 Ether
0x49686706af6663c28c93651be49ae34ce05868c2c9c374471f58c58b744c3eed653540028 days 4 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.089 Ether
0x18e638157a2f0b2eeebc6b8ef85e7f442254b022417ca06e3d43f441c4bbfb01653326928 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.011 Ether
0xdba0c74bb084e3cca3a70e7bb0866a0ee5000236ef78fe11b345abbb7012aef6650572233 days 14 mins ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.039961 Ether
0x964b62c8409826543ea40f4b448776532895c36765e30811a083e18b490ec5bf649675434 days 11 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0044 Ether
0x58dcba37191a368b1b6918998d16bb5079868d8e1fde23ab772ab7fc9d5b27e0649247835 days 4 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x0ec4a5ef5bb2ab93ef37ae4e98705ed8b3ab7a220.048861 Ether
0x487feafcd1e4144a2c2152c826420554b09ff0d153e69436e6c023ef72e95acd649245135 days 4 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0066 Ether
0xef17c81031907702aff4a3f743b140be550c544b5a356b7ee0b4c4508efecf56648781635 days 22 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x0ec4a5ef5bb2ab93ef37ae4e98705ed8b3ab7a220.004539 Ether
0x1c313c0da4d8c0bcb3de3008f877f76daaed93e60b254b1b515cb720b18ee293648384336 days 13 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x47d6ececcb9196dee3be5cc99a196b28d1556f870.89 Ether
0x38a52fce9c7e6b46f47847786183d5ede6355c1c3bdbda2a5d40ffd7abed4aa2648381436 days 13 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.11 Ether
0x7a0226e45121bc30a4476d6273a2b71108b0292701c0561d81aa733b2b1d2c7f647685337 days 16 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x0ec4a5ef5bb2ab93ef37ae4e98705ed8b3ab7a220.0089 Ether
0xf4dfc82ac68dab6931baadf46ddcd417749fdcd545bb0acd4978fecb0378a3b7644880142 days 5 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x0ec4a5ef5bb2ab93ef37ae4e98705ed8b3ab7a220.8811 Ether
0x37348f0821e4c78a6cab77686c061899da7d576f72a1ed4748202ebc9fa43512644780942 days 9 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.11 Ether
0x8eda2044f08aa035e692aa6ac8c7642928da9ee90988a58a1fb7a361828b8c1b644278043 days 5 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x0ec4a5ef5bb2ab93ef37ae4e98705ed8b3ab7a220.6764 Ether
0xb3099739de00549949d3c123551dddd4c4b52abca950c785c429dd7976ae5425644208143 days 8 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0825 Ether
0x1d28fc2b1846aafbe29b79ec32b049935726f12c3d85ea2320b26eb9ae888937636775055 days 13 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.0979 Ether
0x87316f7a3e47fc0f6c6c97069b1daa6c23865b0d51dbedb772c2e746c4521192636747955 days 14 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.011 Ether
0x4b5d3db79765c56de70f9b7d9b0cb047552cb87c3cff177e0841c508f1304657630744865 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013361.05465 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.