Contract 0xac1ec3143b89d5b263d9194db216ea068e0f3dc9

 

TxHash Block Age From To Value [TxFee]
0x5008468b128a1a6913db6ee1c5370e936b7987e8adf949be2557674b5342a07b73860792 days 18 hrs ago0x413cbbd67436796ad1ae8d6c72c7b9b8d45a3a03 IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000181348
0x74079bc35daa258abfcd0ebc5f674367c0f17d469f38bb52f1d67071742f8eb573747394 days 12 hrs ago0xccf209a2d23fb33200ca0a047a3cb83b650ff2cc IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.01 Ether0.00013161
0xcb4c695b312ba92248b2dd9bc90a2465a7877f94c141b7de304371482f7b87fd73747274 days 12 hrs ago0xccf209a2d23fb33200ca0a047a3cb83b650ff2cc IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.0001 Ether0.00016161
0x433051910b2937879cb2a53fe62c6a1d0fc6cc1bac749509d51a1c1d1df699a273723114 days 21 hrs ago0xccf209a2d23fb33200ca0a047a3cb83b650ff2cc IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.01 Ether0.00021
0x4b4420221163221842a700a8268bbe9c00082a6e092346e08b43b17493756d7073684005 days 12 hrs ago0x40747a8e1e2db5ced816b9e0c64c3acb7426774b IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.00021514
0x437c22f6c088cedd819c81dab3fd02f5cbf4a648b2d2e8adaddc9a399aaaaa23732867111 days 16 hrs ago0xc7d98d5c92fa6d24d8fda344133b994c73030c07 IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000258552
0x3bb6657bcfe16a74293bcc251c30e3ae17660d12d01172bb77c288ed12ab864c732857811 days 17 hrs ago0x0c035caf45e85fc6dbd7b3418a008b7cb8d6dede IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.01 Ether0.00016939615
0x8db56f0c6292364ad540ea7278b10cb7ed968f4210c14970078a318028af54fc732854011 days 17 hrs ago0xd1945f6ce48ae9ee516f57ec921119a4dce99a1f IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.2 Ether0.000169396147
0x0585146a45a90548c0efabaf4636ec75c32d0dbf60156d05cb81314f6bb5887f732849011 days 17 hrs ago0xd1945f6ce48ae9ee516f57ec921119a4dce99a1f IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.16 Ether0.0001935956
0x53a0bd370f03346d7b7ff14540fb1c5a0bd00dfc179a2d2b607db905f4bcf7c8732847811 days 17 hrs ago0xd1945f6ce48ae9ee516f57ec921119a4dce99a1f IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.2 Ether0.0001935956
0x2a4c59af53feeead3ea09e9e2c1b3035f99dff67fc17b8572d7ebb95bbecb2d1732846911 days 17 hrs ago0xd1945f6ce48ae9ee516f57ec921119a4dce99a1f IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.16 Ether0.0001935956
0x0a43040e0509d2b3bad4fec41d6b253fa445cc441fe3226771d38286ead2ff39732845311 days 17 hrs ago0xd1945f6ce48ae9ee516f57ec921119a4dce99a1f IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.165025091618572 Ether0.0001935956
0x2d4f45ea34f1285e950586e3bf3a3120bfc334ed57113fa622ce50f45755e667732841811 days 17 hrs ago0xd1945f6ce48ae9ee516f57ec921119a4dce99a1f IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.165004854092612 Ether0.0001935956
0x752460845800402eb97eab0f1acd1dd89a4469da99731f068385ac49fd3460e6730970214 days 15 hrs ago0x9cb464b62451a16eab1fe3940fc508848749b29a IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000185688
0x9f9d1563bd06ebd881991351e3041d347a3f7b37aa58124f4c1f83c30363bfd9730955514 days 15 hrs ago0x44e496afccea7bbc5e9376bdc5582c9e8b963d11 IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.05 Ether0.00032322
0x70ebee0e40ec372cd0448618dca3d4ccc4dbb0a766e7a5758113fd93965ffd35730936714 days 16 hrs ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228 IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000348552
0x8a1a3917e9db9adce5d51315df04866235f04faa7d8715a520a7ee8dbd880e0d730935414 days 16 hrs ago0xe64cd39cd5cc180c9e8c83c8bde0555b3b1c5228 IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000258552
0xb55d31a28298db1e20db7c55513bbc3c6f70a56f2b73ea9d319acebc33034275730743715 days 9 mins ago0x9cb464b62451a16eab1fe3940fc508848749b29a IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000324954
0x06154301d19e4d02ae7aea22b5287077bacdd36a1aeabe6f7303023c69144a20730733515 days 28 mins ago0xbdf0975a602e1622bbd35367e59de8ca27726abd IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.00035493
0xfc7a3261619d8d41fcf3e4e6d43a7c9eb71f9cd2c2e989b29d512a60956274bc730733315 days 29 mins ago0xbdf0975a602e1622bbd35367e59de8ca27726abd IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.000301644
0xe7bc47c33e0695a7d34a135f61afd7d490a4d4e5a5637d7c691fd7de1992d3b0730469015 days 10 hrs ago0xe69b5868e3e85bb869f1b2a56748d8924c4f954e IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.00028092
0x8c550fc047d609ecaeb6a60b87429881a2eb7e7f357b382990f70491fbdbc08d730452515 days 10 hrs ago0x8949412617036dc7c369815f5739372da135a5ed IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.1 Ether0.00026322
0x641c2daf26cd1d958c90ebd07cf6379d02b179c2e3be940979a0d9ab2e129656730438115 days 11 hrs ago0x8dfa4e98574e2f2bd8eb281a304492cc9b10cda6 IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.00028028
0xd87859910ecde2111b47ff522f4ba00b0429e65fc3f7314c5db42fffd144ff46727813019 days 20 hrs ago0x23d9e57e855b72c32423d810f5f8fa28251a68f3 IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90.1 Ether0.001212075
0x9a2f52b54c6efe7bc6db039d26a06dbc79f98cd5323dbacb1eb6fef9ffa9d1f3723713329 days 10 hrs ago0xc4f0c17eef6244efacd45b9ab245fd053e7ac8be IN  0xac1ec3143b89d5b263d9194db216ea068e0f3dc90 Ether0.001764148
[ Download CSV Export 

Latest 25 internal transaction, Click here to view more Internal Transactions as a result of Contract Execution

Parent TxHash Block Age From To Value
0x74079bc35daa258abfcd0ebc5f674367c0f17d469f38bb52f1d67071742f8eb573747394 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0011 Ether
0xcb4c695b312ba92248b2dd9bc90a2465a7877f94c141b7de304371482f7b87fd73747274 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.000011 Ether
0x752460845800402eb97eab0f1acd1dd89a4469da99731f068385ac49fd3460e6730970214 days 15 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9cb464b62451a16eab1fe3940fc508848749b29a0.0445 Ether
0x9f9d1563bd06ebd881991351e3041d347a3f7b37aa58124f4c1f83c30363bfd9730955514 days 15 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0055 Ether
0xb55d31a28298db1e20db7c55513bbc3c6f70a56f2b73ea9d319acebc33034275730743715 days 9 mins ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90x9cb464b62451a16eab1fe3940fc508848749b29a0.178 Ether
0x8c550fc047d609ecaeb6a60b87429881a2eb7e7f357b382990f70491fbdbc08d730452515 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.011 Ether
0xd87859910ecde2111b47ff522f4ba00b0429e65fc3f7314c5db42fffd144ff46727813019 days 20 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.011 Ether
0x81289d8ddebc99d3b847538efcefbfc09c036eca4119f39e27c0f00b55b52d43723206330 days 15 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.089 Ether
0xbbbeec5337d7f277741e095a2937a134c9d271cc7d125c800ec54d4a588d0b97723199430 days 16 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.011 Ether
0xfd66b95a39a6955b0e6b3c4179f2b50f5c1b338a23219c6d1c2575b76aee79f8719093340 days 2 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd1.78 Ether
0xd3fdd78e3bff33e4d9cc9de23b9b3c2da39f5ad1a5310df087d968e8f3f4f1e3719020640 days 6 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.22 Ether
0x7fba78eaa47a0b52e2187b507273d3d1b1056d1eb9745fd1d430d5f61f2df900712203854 days 2 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.089 Ether
0xd7e1a2c53796e044db2683d384d98810487da2bacbbf81118abf5d491a513d40712097554 days 7 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.011 Ether
0x1c3ca94dfe7d12444015a304a4369f0c87f8a39a8d78b2af0a619b1d73029a0d704491468 days 6 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.2225 Ether
0xc4b583a848a14aac519d8f73177a31f61ab2b1f3588253d1408f2bfc20a404d0704422668 days 9 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0275 Ether
0xa141f98e095efeba2f6b0618ac756b168e65b9428808bf92fe474aab69b5db06700892974 days 16 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.445 Ether
0xa23f04df68b06a6489c3363d49c5c65ee26c7e63e94af5ce7c099248804b5cdd700891674 days 16 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.055 Ether
0xe43fa424cb6218595c772941fe0d60c6d61fc46707fdb52914d589b3fb61a417700198875 days 22 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.0445 Ether
0xe86862981f455782c003eb5328b89a23ea196434beb681c6aeddff5922aa39dc700197675 days 22 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0055 Ether
0x16cc73f7346fe852f5820f12408b4d7841460b9f359bf053fb7099d2496387e9697671780 days 5 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.89 Ether
0xf73b62f895349ca6a39e41fa986da1fbf62df6d0612804212aab28d1db11ac47697509780 days 11 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.11 Ether
0x0f2ab659989fb9b59204d6b19828c77ec80fa04aaf1ccc0b8150f097e9f3e681696354682 days 10 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.0534 Ether
0x17b42b76246c3cd3e74e5caa913bfc61c1c395419827975bddeffabe2ccdc74c696305282 days 12 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xc4f0c17eef6244efacd45b9ab245fd053e7ac8be0.0066 Ether
0x769b8cc86d7cdabebe8d389e1df5599995040411183da30b2938d17ad9ad2b50694422585 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbdf0975a602e1622bbd35367e59de8ca27726abd0.022161 Ether
0xcb2d0d76425391810cbb61c708199433077d5002f434631e2888c2ca25b41662694405985 days 17 hrs ago0xac1ec3143b89d5b263d9194db216ea068e0f3dc90xbca1d234a0e93c564d309fbb884aae72acc013360.4628 Ether
[ Download CSV Export 

Contract Source Code Verified (Exact Match)

Contract Name:
BSCToken

Compiler Version
v0.4.16+commit.d7661dd9

Optimization Enabled:
Yes

Runs (Optimizer):
200

Contract Source Code

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

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
Block Age Transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.