Sponsored Link:   Ambrosus Main-Net Launching: Stake AMB in Masternodes and get regular rewards for maintaining network integrity.
Contract Overview
Balance: 0.268295 Ether
Ether Value: $126.93 (@ $473.11/ETH)
Transactions: 1018 txns
Token Contract: Bitcoin Startup Capital (BSC)
 Latest 25 txns from a total Of 1018 transactions

TxHash Age From To Value [TxFee]
0x8d2b05716f8485541cd9203251bc06d1c90fde308463435200884cc189392fb014 mins ago0xbdf0975a602e1622bbd35367e59de8ca27726abd  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.00023211
0x6fd7cdcc3a06f794de82bfd16ff4fc0ae0f8f41c42c2a4a7596c9b0ac227241d3 hrs 41 mins ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.5 Ether0.001381905
0x48cad3cb48aecc9036315293d86c497ac33eeae3e646f9af2c45623298b35e397 hrs 3 mins ago0xbdf0975a602e1622bbd35367e59de8ca27726abd  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.00030711
0xd739ae73cfadb1e9de40888717dd60b1ec9be2a3cc3d174c7fbb3d292fc5c01711 hrs 30 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000903588
0x709b5834011a73429e19ec9ec2be5c008ed78951565b80e6e83d83808838daa211 hrs 32 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000903588
0x11d4be56e3f3f66f784ac00e0354ad6527e13e7914e2d336c431d3763d51cb4811 hrs 39 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001218588
0xfb59684c5f5e0ee0ead7b73c6eed95334666d71b95c1bd4bbfd11f9287e32cc311 hrs 43 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0xdc39a5b9ff10df633cf6a53f47467716d6826baa6640ab98ff40e29bb829800511 hrs 47 mins ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001218588
0x69e7c8928f5dad3a84eee308491e855be9dcbd2e8e16e0788660a7a4c5828e4118 hrs 16 mins ago0x413cbbd67436796ad1ae8d6c72c7b9b8d45a3a03  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000363208
0xd56a9ea0e94d5f9203b76c088b4ff332ae40a06b8488da1c73ee6fa8cca952481 day 1 hr ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0x50e61bc3433f827efe9d47c556022bb47638a957c5fc91b7d892058716d160d04 days 3 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0x56f5cec8bf81e477e51b467c220144af3566aab6afabf114e241c31018b818075 days 4 hrs ago0xd7fcc0189fc541948e0f9e736be73599de9589d4  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001804488
0x3e3b178f9a41ccbb0ede2b3b112de3a69b35c3027b9df7f4d8df4b31f061cacd5 days 10 hrs ago0xd1945f6ce48ae9ee516f57ec921119a4dce99a1f  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.04 Ether0.00329025
0xf7ec9a29fd51610a3dae457b513596a267e510885aa09559d6236beabe45102e5 days 21 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000903588
0xa1f868f387a12181e24efa30b46a061ac4dd0be8bcda97803e7d8eb8b2de6b175 days 21 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000903588
0x9fe758b17a00de20d21991100629d998d6312ff042cc12e27dc31c14a197ddbc6 days 1 hr ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0xdf18d34de6fa5f766962ebedba3a3fb69d5a05a25ee173ed412769945b1b26087 days 20 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001218588
0x7186d1882d2e045ad7c2b963fd0b99a20ad1f4fe27b3a940d2e9397009e4fe039 days 3 hrs ago0xbca1d234a0e93c564d309fbb884aae72acc01336  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.006080778
0x09af0b51775ec3cd791b8312ff2a1d6bd48ab7f0834ba545599de7b32af5e48f9 days 12 hrs ago0xc7d98d5c92fa6d24d8fda344133b994c73030c07  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc92 Ether0.001381905
0x1d3844a0f17387730e12ad48a1191bf622847a1bcd81e13763742e475f93141c9 days 17 hrs ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000906276
0x1ac26b49756b0db6789f4edfc25df89494262473d30cdcbdfa74d1cb2fa1f77210 days 23 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0x50e544ed59db70ebb8eb771539c2a436fa8cdc72efbe06f8788650c479ea6f0412 days 10 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000904932
0x9070cf09509ad63fb70e9a027d77b0af861e6bcb26b9c03af8686c3a7f37a47e12 days 13 hrs ago0xbca1d234a0e93c564d309fbb884aae72acc01336  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.006080778
0xaac72d6274b03145f86be6a3972f8f0e03bf34f2fbfc37d60a7bdfb792cc309b12 days 15 hrs ago0xc7d98d5c92fa6d24d8fda344133b994c73030c07  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.5 Ether0.001381905
0xcde1d26c73549caa15b22f3dc2dea17b1a47aa8b10358e020bb3276bdf76f72414 days 12 hrs ago0x0c035caf45e85fc6dbd7b3418a008b7cb8d6dede  IN   0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.01 Ether0.00329025
[ 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
0x8d2b05716f8485541cd9203251bc06d1c90fde308463435200884cc189392fb0598018114 mins ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.178 Ether
0x6fd7cdcc3a06f794de82bfd16ff4fc0ae0f8f41c42c2a4a7596c9b0ac227241d59793353 hrs 41 mins ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0x48cad3cb48aecc9036315293d86c497ac33eeae3e646f9af2c45623298b35e3959785377 hrs 3 mins ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.0712 Ether
0x3e3b178f9a41ccbb0ede2b3b112de3a69b35c3027b9df7f4d8df4b31f061cacd59477995 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0044 Ether
0x7186d1882d2e045ad7c2b963fd0b99a20ad1f4fe27b3a940d2e9397009e4fe0359261939 days 3 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013361.7711 Ether
0x09af0b51775ec3cd791b8312ff2a1d6bd48ab7f0834ba545599de7b32af5e48f59241319 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.22 Ether
0x9070cf09509ad63fb70e9a027d77b0af861e6bcb26b9c03af8686c3a7f37a47e590624612 days 13 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.445 Ether
0xaac72d6274b03145f86be6a3972f8f0e03bf34f2fbfc37d60a7bdfb792cc309b590597712 days 15 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xcde1d26c73549caa15b22f3dc2dea17b1a47aa8b10358e020bb3276bdf76f724589501414 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0011 Ether
0x9a2e59b20edbaa0e6c9f3299fb5c0fc962bb57cc4b8e7e8d9923be46a87b28ae589500814 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0011 Ether
0xf953286f1dff4dfe8d69677a8ec3374ffdaf14aa3611249665a8cee589f3a8b1588827715 days 15 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.3115 Ether
0xfb177a7d747a6f93786e409de4e11caf275279a174b41134c8d604075063d83d588742415 days 18 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0385 Ether
0xa41f02504d6bc3b25281c4635f4e9273e7a5106b92eaf4604d7b4d04a6b2cbe6588269316 days 14 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.178 Ether
0x49051a34b736aacd98e2b15de9ee7ea485eab25d7262223dbdc9cc235e0afcb1588195816 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.022 Ether
0x40e861eefb6cb5d210b72dcdcb1e2a50f82bc3e0d82ae1ba487ac600b226740d587037818 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.4539 Ether
0x0c92e962f649ddb912dbae5887c67a056cae4c5ed14ac24fe200f8e1eab3682f586893318 days 23 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0x274fbb826c40637e1355e494b3e3ebec4b0c32eecac12716e72178562ea5af66585302421 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013361.6732 Ether
0x1583b57370ff247bade71a9ab34502c9644a2a547e408653711b66df2d9cf525585173821 days 22 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x340f7bd217e2ec12d0bb523d5b4d114825410ab40.00534 Ether
0xe5d1ed6e3c85081a6cb010c1c2502098df9bdf5fbebb51d2c03fbbc304b0ad49584133623 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.154 Ether
0x2da4719e2ef38e3aaa1375954f57e1e0ffded9715ab83fc00e44bdcf70e63422583657624 days 13 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xa44d5960f9d520495b67aa2759210ce2b9e8e07b07080d3005a02f3d3b742e6c583263425 days 5 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.556695 Ether
0x7fbddd4aa6b87539777ed77e0aad3ad9d09cf7f0da82800d0dfcefd8bcd77233582831025 days 23 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x8185022b27c20ba8cf5fcbdc5a87cce66036c3ff0.0534 Ether
0x34e526edbdb5e2afa41738b236468f62e8ccfd02c0f41cf6e93bc46f64872109582756126 days 2 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.022 Ether
0xfa2fe2f15e3cd861e8e7f54eef598c7114068dba0c2d61f2a801375476df0c9e582528526 days 11 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xb4c36a777dc390fdd14f7272dee7fe4100085bf70.009078 Ether
0x81e127b7df57d8f3a51362de7ec36c2695fcf53468b6be52ba682d92e4d876e1580701129 days 14 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
[ Download CSV Export  ] 
Warning: The compiled contract might be susceptible to ZeroFunctionSelector (very low-severity) Solidity compiler bugs.

Contract Source Code Verified (Exact match)
Contract Name: BSCToken
Compiler Version: 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

-----Decoded View---------------
Found 8 constructor arguments :
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 txn Difficulty GasUsed Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "downvote" button for any spammy posts, and the "upvote" for interesting conversations.