Contract 0x597cd1b89f4114Dc8d59B0598D15D023d873A006

 

TxHash Block Age From To Value [TxFee]
0xcc3b98e263f21a0c71470967290122b23835930b66bfa8a41b5182f21d4763d872368602 days 1 hr ago0x8674fa450da678a18f337175b329fdbc0ebcf3b8 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.001059518
0x36f5c782c442e0f73bcfa6a793b932e76cadc3a8c2520b9926ec4eb37e5e4eb072351582 days 10 hrs ago0x85abde46071fa45524e477849f90ffd18e8b143f IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.0004053808
0xabddf63168065f70185c86a573872aca3e4ee2af89d9ef4cf49fff2559ae347b72344842 days 14 hrs ago0xb4ffdd47cd22d44cd0caffaacdcf317789e8d297 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060 Ether0.00018491
0x818afc9a0a16b995679917dea20121220e1bab696da95974059b573b6250032172344492 days 14 hrs ago0x5c89c104b672ab770dc41549668028be9dad1855 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060 Ether0.000481623598
0xfb614e3628271d7a351324f257bb578fabc8e690ae20cf5e9c05c376eee7d83d72285314 days 1 hr ago0xd5320a59af813bb7266850ace144e814713a84d4 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000366396
0x4ed66555fa9dc4d71f20632fa57e06ebfa4ec3d0498ea13792b7b446faf7282d72280344 days 3 hrs ago0x8e220826ca6f585acfcc6dc308bfd793b0a3fbf0 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000089690687
0x650c389f42a291d40e7eae24a6f56a50602d715d74c99f63dcaac95cbcbf57fe72279374 days 4 hrs ago0xd664e6126dc4710518d17e2ff910a65aefba3309 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060 Ether0.000068676
0x69ca57a837a04ad3b364d678f32b7e13283846e311bcb7eff0866e23cebcbe2e72236585 days 4 hrs ago0x2078bec24892ee3a5c211229096fc33388d63fc1 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000702259
0x5d2b3e83f8cc4b87e86d54f84fdb3bf01b4b300dc7a8ee088a12709e6d14904272211115 days 19 hrs ago0x882a43ea9843781637783c44d5b41f261f554040 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000067659437
0xb20d9d22cdbd4bfa90f793d26c5a7f5c80ddd9c86f1337a26a5b40b7cee6d5e772198296 days 2 hrs ago0x85abde46071fa45524e477849f90ffd18e8b143f IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0061 Ether0.00046077
0xe969e0a198d71f0467e6d007ec45bc5595bbee1ad6ffbbaf8ceee2286c21c18772180336 days 13 hrs ago0x781be508ad6122384105be6ecb0ff1f6750fd6ff IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000122132
0x7fab0e5f99fe4eb80402e4d927bbc899f2ee4d23320be0ba80638c54a2bfa63372170316 days 19 hrs ago0x4c663cc63120bf9fd349ae9fe63439b8d21e65f4 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.002503706
0x545afc253d2a20e26815aece3a1389f8cdaeba610fa5d298de08a64e519bf35872170196 days 19 hrs ago0xa0fe1bcbb5fc249a75fc68548200c1f4bc60b7e8 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.002503706
0x247e3dd7f538340574c3f3127b2651a6b0de291d7b9b6b0e4fec558a66a0311f72158877 days 1 hr ago0x0d21e5012d638a6d6b4c6705d0b494e9f627767a IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000414594
0x83de6c91a51b901b5636f6a864ffaaab22fbaabd1400e563a4dc7caf25ab2c3a72153657 days 4 hrs ago0x07a6a8be13913528d2455b26c5bd7d64dd32ed18 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.015 Ether0.00030533
0xe575227cb2087ab86ea41797420774da69c6bb5752fb20f0f73a65a5713ae8e172151747 days 5 hrs ago0x9e7a5929bca9b19030f465197a385e8f8d68e122 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060 Ether0.00022892
0x2a8897876da3677aa275580093a8773326eab58770943e6210428fd02f6ed79272151577 days 6 hrs ago0x9e7a5929bca9b19030f465197a385e8f8d68e122 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060 Ether0.00022892
0xe752a365c033f2e318f5ad19eed0c870988c213897b5bb1c8e46fe947f6a993872149807 days 7 hrs ago0x0d21e5012d638a6d6b4c6705d0b494e9f627767a IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000366396
0x0da4b9f1031fff853f65aaaaf2ab5660911f3475317afc7483860c2fd36637ba72144627 days 9 hrs ago0x4eb5f203d9df0cc3379630792fa0d91cd988d581 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060 Ether0.000137352
0xd288677c72d6ff1b72badd658f1ee18ba7b6480df17d156700c6fcc5b4742e8372128027 days 19 hrs ago0x2d021f374f61f651686e16658d4be63f0bcb1b81 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.08 Ether0.000421355415
0xfbebb5449aa74377153cc673182e8a037e8858dca7fe7ee903516700878a612672107728 days 6 hrs ago0x5893ca84e5892f3ef4e3c6958b1e8a94679d42c6 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000526694277
0x8412089487e2a39e169cab00998d28538de909528f1ea70be21b7f31917bcc9a72055509 days 12 hrs ago0xa260928f383ec6093ec25a5fb626744eac7ed960 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.00122132
0xc5848b71b5f7936c6995818d0e1c7c20fa45188a7e48c400d06dca42ac9b0716720180110 days 10 hrs ago0x7956cadf6eb176678fc57002eee64c6106430918 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.000366396
0xb076fb795aed33a792c53ae8b0a905594f2a12182e7b8f8834c7092ec0a442f0720179610 days 10 hrs ago0x7956cadf6eb176678fc57002eee64c6106430918 IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060.01 Ether0.00036
0x569e60c5af5864be5099db89beb9189d9b42aa69f3c00d35d0857f1efa474ae1719541811 days 18 hrs ago0x90046556f65454aae03e30a04c6b047efc33f0ba IN  0x597cd1b89f4114dc8d59b0598d15d023d873a0060 Ether0.002510514
[ 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
0xcc3b98e263f21a0c71470967290122b23835930b66bfa8a41b5182f21d4763d872368602 days 1 hr ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x36f5c782c442e0f73bcfa6a793b932e76cadc3a8c2520b9926ec4eb37e5e4eb072351582 days 10 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0xfb614e3628271d7a351324f257bb578fabc8e690ae20cf5e9c05c376eee7d83d72285314 days 1 hr ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x4ed66555fa9dc4d71f20632fa57e06ebfa4ec3d0498ea13792b7b446faf7282d72280344 days 3 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x69ca57a837a04ad3b364d678f32b7e13283846e311bcb7eff0866e23cebcbe2e72236585 days 4 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x5d2b3e83f8cc4b87e86d54f84fdb3bf01b4b300dc7a8ee088a12709e6d14904272211115 days 19 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0xb20d9d22cdbd4bfa90f793d26c5a7f5c80ddd9c86f1337a26a5b40b7cee6d5e772198296 days 2 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c581 Ether
0xe969e0a198d71f0467e6d007ec45bc5595bbee1ad6ffbbaf8ceee2286c21c18772180336 days 13 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x7fab0e5f99fe4eb80402e4d927bbc899f2ee4d23320be0ba80638c54a2bfa63372170316 days 19 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x545afc253d2a20e26815aece3a1389f8cdaeba610fa5d298de08a64e519bf35872170196 days 19 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x247e3dd7f538340574c3f3127b2651a6b0de291d7b9b6b0e4fec558a66a0311f72158877 days 1 hr ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x83de6c91a51b901b5636f6a864ffaaab22fbaabd1400e563a4dc7caf25ab2c3a72153657 days 4 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.015 Ether
0xe752a365c033f2e318f5ad19eed0c870988c213897b5bb1c8e46fe947f6a993872149807 days 7 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0xd288677c72d6ff1b72badd658f1ee18ba7b6480df17d156700c6fcc5b4742e8372128027 days 19 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.08 Ether
0xfbebb5449aa74377153cc673182e8a037e8858dca7fe7ee903516700878a612672107728 days 6 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x8412089487e2a39e169cab00998d28538de909528f1ea70be21b7f31917bcc9a72055509 days 12 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0xc5848b71b5f7936c6995818d0e1c7c20fa45188a7e48c400d06dca42ac9b0716720180110 days 10 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x553bb30b311cd6c6e49d03906bf2aa64a900bebd7c5c7c33836ede28685d3af0719193412 days 10 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0xbf2bd94f3f446a9e6aad776c5a937ab14bf2a19c799a5bf6a0020ad15737afc7718732113 days 9 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0xfcb1b443e1fec014b8705dbbb298a5df9be42bc8cb33dbe2b1d3070ef05b88f3718654813 days 13 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x13ef03d9971a3fc40325cd08990fdf9a70ff3d8896782adf1976115fd03c75b1718455813 days 22 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0xf107341039c1fcfe4d71642c63c20f54a2c315da4acd5d79aff41693f5ea4a91716922717 days 1 hr ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x0defd74fa4e5b75de4af4a30aacb542d91d47a088527400d1a824d7acbf0bb50715525619 days 22 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0xee4be0b38c4206546e670d8172c9e0af25813cd1e18ddb65cc555e7dc30e111a713954923 days 3 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
0x755fb682d0080a6b64608a25f816a44a2228d1ed26202b55d578daa4c03a8ffa706649736 days 22 hrs ago0x597cd1b89f4114dc8d59b0598d15d023d873a0060x7ea1cdf326546586967ba69317d41c1833833c580.01 Ether
[ Download CSV Export 
Contract Source Code Verified (Exact Match)
Contract Name: EcomethToken
Compiler Version: v0.4.25+commit.59dbf8f1
Optimization Enabled: Yes
Runs (Optimizer):  200


Contract Source Code
//Website:https://ecometh.org
pragma solidity ^0.4.25;

/**
 * @title Ecometh Project
 */
library SafeMath {

    /**
    * @dev Multiplies two numbers, throws on overflow.
    */
    function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
        if (a == 0) {
            return 0;
        }
        c = a * b;
        assert(c / a == b);
        return c;
    }

    /**
    * @dev Integer division of two numbers, truncating the quotient.
    */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        // assert(b > 0); // Solidity automatically throws when dividing by 0
        // uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold
        return a / b;
    }

    /**
    * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
    */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    /**
    * @dev Adds two numbers, throws on overflow.
    */
    function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
        c = a + b;
        assert(c >= a);
        return c;
    }
}

contract ForeignToken {
    function balanceOf(address _owner) constant public returns (uint256);
    function transfer(address _to, uint256 _value) public returns (bool);
}

contract ERC20Basic {
    uint256 public totalSupply;
    function balanceOf(address who) public constant returns (uint256);
    function transfer(address to, uint256 value) public returns (bool);
    event Transfer(address indexed from, address indexed to, uint256 value);
}

contract ERC20 is ERC20Basic {
    function allowance(address owner, address spender) public constant returns (uint256);
    function transferFrom(address from, address to, uint256 value) public returns (bool);
    function approve(address spender, uint256 value) public returns (bool);
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

contract EcomethToken is ERC20 {
    
    using SafeMath for uint256;
    address owner = msg.sender;

    mapping (address => uint256) balances;
    mapping (address => mapping (address => uint256)) allowed;
    mapping (address => bool) public Claimed; 

    string public constant name = "Ecometh Token";
    string public constant symbol = "EMET";
    uint public constant decimals = 8;
    uint public deadline = now + 35 * 1 days;
    uint public round2 = now + 30 * 1 days;
    uint public round1 = now + 20 * 1 days;
    
    uint256 public totalSupply = 5000000000e8;
    uint256 public totalDistributed;
    uint256 public constant requestMinimum = 1 ether / 100; // 0.01 Ether
    uint256 public tokensPerEth = 5000000e8;
    
    uint public target0drop = 100;
    uint public progress0drop = 0;
    
    //here u will write your ether address
    address multisig = 0x7EA1cDf326546586967bA69317D41C1833833C58;


    event Transfer(address indexed _from, address indexed _to, uint256 _value);
    event Approval(address indexed _owner, address indexed _spender, uint256 _value);
    
    event Distr(address indexed to, uint256 amount);
    event DistrFinished();
    
    event Airdrop(address indexed _owner, uint _amount, uint _balance);

    event TokensPerEthUpdated(uint _tokensPerEth);
    
    event Burn(address indexed burner, uint256 value);
    
    event Add(uint256 value);

    bool public distributionFinished = false;
    
    modifier canDistr() {
        require(!distributionFinished);
        _;
    }
    
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }
    
    constructor() public {
        uint256 teamFund = 1500000000e8;
        owner = msg.sender;
        distr(owner, teamFund);
    }
    
    function transferOwnership(address newOwner) onlyOwner public {
        if (newOwner != address(0)) {
            owner = newOwner;
        }
    }

    function finishDistribution() onlyOwner canDistr public returns (bool) {
        distributionFinished = true;
        emit DistrFinished();
        return true;
    }
    
    function distr(address _to, uint256 _amount) canDistr private returns (bool) {
        totalDistributed = totalDistributed.add(_amount);        
        balances[_to] = balances[_to].add(_amount);
        emit Distr(_to, _amount);
        emit Transfer(address(0), _to, _amount);

        return true;
    }
    
    function Distribute(address _participant, uint _amount) onlyOwner internal {

        require( _amount > 0 );      
        require( totalDistributed < totalSupply );
        balances[_participant] = balances[_participant].add(_amount);
        totalDistributed = totalDistributed.add(_amount);

        if (totalDistributed >= totalSupply) {
            distributionFinished = true;
        }

        // log
        emit Airdrop(_participant, _amount, balances[_participant]);
        emit Transfer(address(0), _participant, _amount);
    }
    
    function DistributeAirdrop(address _participant, uint _amount) onlyOwner external {        
        Distribute(_participant, _amount);
    }

    function DistributeAirdropMultiple(address[] _addresses, uint _amount) onlyOwner external {        
        for (uint i = 0; i < _addresses.length; i++) Distribute(_addresses[i], _amount);
    }

    function updateTokensPerEth(uint _tokensPerEth) public onlyOwner {        
        tokensPerEth = _tokensPerEth;
        emit TokensPerEthUpdated(_tokensPerEth);
    }
           
    function () external payable {
        getTokens();
     }

    function getTokens() payable canDistr  public {
        uint256 tokens = 0;
        uint256 bonus = 0;
        uint256 countbonus = 0;
        uint256 bonusCond1 = 1 ether / 10;
        uint256 bonusCond2 = 1 ether;
        uint256 bonusCond3 = 5 ether;

        tokens = tokensPerEth.mul(msg.value) / 1 ether;        
        address investor = msg.sender;

        if (msg.value >= requestMinimum && now < deadline && now < round1 && now < round2) {
            if(msg.value >= bonusCond1 && msg.value < bonusCond2){
                countbonus = tokens * 20 / 100;
            }else if(msg.value >= bonusCond2 && msg.value < bonusCond3){
                countbonus = tokens * 50 / 100;
            }else if(msg.value >= bonusCond3){
                countbonus = tokens * 100 / 100;
            }
        }else if(msg.value >= requestMinimum && now < deadline && now > round1 && now < round2){
            if(msg.value >= bonusCond2 && msg.value < bonusCond3){
                countbonus = tokens * 20 / 100;
            }else if(msg.value >= bonusCond3){
                countbonus = tokens * 50 / 100;
            }
        }else{
            countbonus = 0;
        }

        bonus = tokens + countbonus;
        
        if (tokens == 0) {
            uint256 valdrop = 500e8;
            if (Claimed[investor] == false && progress0drop <= target0drop ) {
                distr(investor, valdrop);
                Claimed[investor] = true;
                progress0drop++;
            }else{
                require( msg.value >= requestMinimum );
            }
        }else if(tokens > 0 && msg.value >= requestMinimum){
            if( now >= deadline && now >= round1 && now < round2){
                distr(investor, tokens);
            }else{
                if(msg.value >= bonusCond1){
                    distr(investor, bonus);
                }else{
                    distr(investor, tokens);
                }   
            }
        }else{
            require( msg.value >= requestMinimum );
        }

        if (totalDistributed >= totalSupply) {
            distributionFinished = true;
        }
        
        //here we will send all wei to your address
        multisig.transfer(msg.value);
    }
    
    function balanceOf(address _owner) constant public returns (uint256) {
        return balances[_owner];
    }

    modifier onlyPayloadSize(uint size) {
        assert(msg.data.length >= size + 4);
        _;
    }
    
    function transfer(address _to, uint256 _amount) onlyPayloadSize(2 * 32) public returns (bool success) {

        require(_to != address(0));
        require(_amount <= balances[msg.sender]);
        
        balances[msg.sender] = balances[msg.sender].sub(_amount);
        balances[_to] = balances[_to].add(_amount);
        emit Transfer(msg.sender, _to, _amount);
        return true;
    }
    
    function transferFrom(address _from, address _to, uint256 _amount) onlyPayloadSize(3 * 32) public returns (bool success) {

        require(_to != address(0));
        require(_amount <= balances[_from]);
        require(_amount <= allowed[_from][msg.sender]);
        
        balances[_from] = balances[_from].sub(_amount);
        allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_amount);
        balances[_to] = balances[_to].add(_amount);
        emit Transfer(_from, _to, _amount);
        return true;
    }
    
    function approve(address _spender, uint256 _value) public returns (bool success) {
        if (_value != 0 && allowed[msg.sender][_spender] != 0) { return false; }
        allowed[msg.sender][_spender] = _value;
        emit Approval(msg.sender, _spender, _value);
        return true;
    }
    
    function allowance(address _owner, address _spender) constant public returns (uint256) {
        return allowed[_owner][_spender];
    }
    
    function getTokenBalance(address tokenAddress, address who) constant public returns (uint){
        ForeignToken t = ForeignToken(tokenAddress);
        uint bal = t.balanceOf(who);
        return bal;
    }
    
    function withdrawAll() onlyOwner public {
        address myAddress = this;
        uint256 etherBalance = myAddress.balance;
        owner.transfer(etherBalance);
    }

    function withdraw(uint256 _wdamount) onlyOwner public {
        uint256 wantAmount = _wdamount;
        owner.transfer(wantAmount);
    }

    function burn(uint256 _value) onlyOwner public {
        require(_value <= balances[msg.sender]);
        address burner = msg.sender;
        balances[burner] = balances[burner].sub(_value);
        totalSupply = totalSupply.sub(_value);
        totalDistributed = totalDistributed.sub(_value);
        emit Burn(burner, _value);
    }
    
    function add(uint256 _value) onlyOwner public {
        uint256 counter = totalSupply.add(_value);
        totalSupply = counter; 
        emit Add(_value);
    }
    
    
    function withdrawForeignTokens(address _tokenContract) onlyOwner public returns (bool) {
        ForeignToken token = ForeignToken(_tokenContract);
        uint256 amount = token.balanceOf(address(this));
        return token.transfer(owner, amount);
    }
}

Contract ABI
[{"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":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"add","outputs":[],"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":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"deadline","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_wdamount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_value","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"round2","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"requestMinimum","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_participant","type":"address"},{"name":"_amount","type":"uint256"}],"name":"DistributeAirdrop","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"round1","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"progress0drop","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"finishDistribution","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_tokensPerEth","type":"uint256"}],"name":"updateTokensPerEth","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getTokens","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"Claimed","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"distributionFinished","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"tokenAddress","type":"address"},{"name":"who","type":"address"}],"name":"getTokenBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"tokensPerEth","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_tokenContract","type":"address"}],"name":"withdrawForeignTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"target0drop","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalDistributed","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_addresses","type":"address[]"},{"name":"_amount","type":"uint256"}],"name":"DistributeAirdropMultiple","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"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"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_spender","type":"address"},{"indexed":false,"name":"_value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"amount","type":"uint256"}],"name":"Distr","type":"event"},{"anonymous":false,"inputs":[],"name":"DistrFinished","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":false,"name":"_amount","type":"uint256"},{"indexed":false,"name":"_balance","type":"uint256"}],"name":"Airdrop","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_tokensPerEth","type":"uint256"}],"name":"TokensPerEthUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"value","type":"uint256"}],"name":"Add","type":"event"}]

Contract Creation Code
60806040526001805433600160a060020a03199182161790915542622e2480810160055562278d008101600655621a5e00016007556706f05b59d3b200006008556601c6bf52634000600a556064600b556000600c55600d8054737ea1cdf326546586967ba69317d41c1833833c5892169190911760a060020a60ff02191690553480156200008d57600080fd5b5060018054600160a060020a031916331790819055670214e8348c4f000090620000ca90600160a060020a031682640100000000620000d2810204565b505062000201565b600d5460009074010000000000000000000000000000000000000000900460ff1615620000fe57600080fd5b6009546200011b90836401000000006200132f620001ed82021704565b600955600160a060020a0383166000908152600260205260409020546200015190836401000000006200132f620001ed82021704565b600160a060020a038416600081815260026020908152604091829020939093558051858152905191927f8940c4b8e215f8822c5c8f0056c12652c746cbc57eedbd2a440b175971d47a7792918290030190a2604080518381529051600160a060020a038516916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a350600192915050565b81810182811015620001fb57fe5b92915050565b6114db80620002116000396000f30060806040526004361061018a5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610194578063095ea7b31461021e5780631003e2d21461025657806318160ddd1461026e57806323b872dd1461029557806329dcb0cf146102bf5780632e1a7d4d146102d4578063313ce567146102ec57806342966c6814610301578063532b581c1461031957806370a082311461032e57806374ff23241461034f5780637809231c14610364578063836e81801461038857806383afd6da1461039d578063853828b6146103b257806395d89b41146103c75780639b1cbccc146103dc5780639ea407be146103f1578063a9059cbb14610409578063aa6ca8081461018a578063b449c24d1461042d578063c108d5421461044e578063c489744b14610463578063cbdd69b51461048a578063dd62ed3e1461049f578063e58fc54c146104c6578063e6a092f5146104e7578063efca2eed146104fc578063f2fde38b14610511578063f3ccb40114610532575b610192610556565b005b3480156101a057600080fd5b506101a9610862565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e35781810151838201526020016101cb565b50505050905090810190601f1680156102105780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561022a57600080fd5b50610242600160a060020a0360043516602435610899565b604080519115158252519081900360200190f35b34801561026257600080fd5b50610192600435610941565b34801561027a57600080fd5b506102836109ae565b60408051918252519081900360200190f35b3480156102a157600080fd5b50610242600160a060020a03600435811690602435166044356109b4565b3480156102cb57600080fd5b50610283610b27565b3480156102e057600080fd5b50610192600435610b2d565b3480156102f857600080fd5b50610283610b87565b34801561030d57600080fd5b50610192600435610b8c565b34801561032557600080fd5b50610283610c6b565b34801561033a57600080fd5b50610283600160a060020a0360043516610c71565b34801561035b57600080fd5b50610283610c8c565b34801561037057600080fd5b50610192600160a060020a0360043516602435610c97565b34801561039457600080fd5b50610283610cbc565b3480156103a957600080fd5b50610283610cc2565b3480156103be57600080fd5b50610192610cc8565b3480156103d357600080fd5b506101a9610d25565b3480156103e857600080fd5b50610242610d5c565b3480156103fd57600080fd5b50610192600435610de0565b34801561041557600080fd5b50610242600160a060020a0360043516602435610e32565b34801561043957600080fd5b50610242600160a060020a0360043516610f11565b34801561045a57600080fd5b50610242610f26565b34801561046f57600080fd5b50610283600160a060020a0360043581169060243516610f36565b34801561049657600080fd5b50610283610fe7565b3480156104ab57600080fd5b50610283600160a060020a0360043581169060243516610fed565b3480156104d257600080fd5b50610242600160a060020a0360043516611018565b3480156104f357600080fd5b5061028361116c565b34801561050857600080fd5b50610283611172565b34801561051d57600080fd5b50610192600160a060020a0360043516611178565b34801561053e57600080fd5b506101926024600480358281019291013590356111ca565b600080600080600080600080600d60149054906101000a900460ff1615151561057e57600080fd5b600a546000985088975087965067016345785d8a00009550670de0b6b3a76400009450674563918244f40000935084906105be903463ffffffff61122316565b8115156105c757fe5b049750339150662386f26fc1000034101580156105e5575060055442105b80156105f2575060075442105b80156105ff575060065442105b1561065c5784341015801561061357508334105b15610627576064601489025b049550610657565b83341015801561063657508234105b156106465760646032890261061f565b3483116106575760648881025b0495505b6106c9565b662386f26fc100003410158015610674575060055442105b8015610681575060075442115b801561068e575060065442105b156106c4578334101580156106a257508234105b156106b25760646014890261061f565b34831161065757606460328902610653565b600095505b87860196508715156107675750600160a060020a038116600090815260046020526040902054640ba43b74009060ff1615801561070a5750600b54600c5411155b1561074e57610719828261124c565b50600160a060020a0382166000908152600460205260409020805460ff19166001908117909155600c80549091019055610762565b662386f26fc1000034101561076257600080fd5b6107ee565b60008811801561077e5750662386f26fc100003410155b156107da57600554421015801561079757506007544210155b80156107a4575060065442105b156107b9576107b3828961124c565b50610762565b3485116107ca576107b3828861124c565b6107d4828961124c565b506107ee565b662386f26fc100003410156107ee57600080fd5b6008546009541061081e57600d805474ff0000000000000000000000000000000000000000191660a060020a1790555b600d54604051600160a060020a03909116903480156108fc02916000818181858888f19350505050158015610857573d6000803e3d6000fd5b505050505050505050565b60408051808201909152600d81527f45636f6d65746820546f6b656e00000000000000000000000000000000000000602082015281565b600081158015906108cc5750336000908152600360209081526040808320600160a060020a038716845290915290205415155b156108d95750600061093b565b336000818152600360209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b600154600090600160a060020a0316331461095b57600080fd5b60085461096e908363ffffffff61132f16565b60088190556040805184815290519192507f90f1f758f0e2b40929b1fd48df7ebe10afc272a362e1f0d63a90b8b4715d799f919081900360200190a15050565b60085481565b6000606060643610156109c357fe5b600160a060020a03841615156109d857600080fd5b600160a060020a0385166000908152600260205260409020548311156109fd57600080fd5b600160a060020a0385166000908152600360209081526040808320338452909152902054831115610a2d57600080fd5b600160a060020a038516600090815260026020526040902054610a56908463ffffffff61133c16565b600160a060020a0386166000908152600260209081526040808320939093556003815282822033835290522054610a93908463ffffffff61133c16565b600160a060020a038087166000908152600360209081526040808320338452825280832094909455918716815260029091522054610ad7908463ffffffff61132f16565b600160a060020a03808616600081815260026020908152604091829020949094558051878152905191939289169260008051602061149083398151915292918290030190a3506001949350505050565b60055481565b600154600090600160a060020a03163314610b4757600080fd5b506001546040518291600160a060020a03169082156108fc029083906000818181858888f19350505050158015610b82573d6000803e3d6000fd5b505050565b600881565b600154600090600160a060020a03163314610ba657600080fd5b33600090815260026020526040902054821115610bc257600080fd5b5033600081815260026020526040902054610be3908363ffffffff61133c16565b600160a060020a038216600090815260026020526040902055600854610c0f908363ffffffff61133c16565b600855600954610c25908363ffffffff61133c16565b600955604080518381529051600160a060020a038316917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a25050565b60065481565b600160a060020a031660009081526002602052604090205490565b662386f26fc1000081565b600154600160a060020a03163314610cae57600080fd5b610cb8828261134e565b5050565b60075481565b600c5481565b6001546000908190600160a060020a03163314610ce457600080fd5b50506001546040513091823191600160a060020a03909116906108fc8315029083906000818181858888f19350505050158015610b82573d6000803e3d6000fd5b60408051808201909152600481527f454d455400000000000000000000000000000000000000000000000000000000602082015281565b600154600090600160a060020a03163314610d7657600080fd5b600d5460a060020a900460ff1615610d8d57600080fd5b600d805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f7f95d919e78bdebe8a285e6e33357c2fcb65ccf66e72d7573f9f8f6caad0c4cc90600090a150600190565b600154600160a060020a03163314610df757600080fd5b600a8190556040805182815290517ff7729fa834bbef70b6d3257c2317a562aa88b56c81b544814f93dc5963a2c0039181900360200190a150565b600060406044361015610e4157fe5b600160a060020a0384161515610e5657600080fd5b33600090815260026020526040902054831115610e7257600080fd5b33600090815260026020526040902054610e92908463ffffffff61133c16565b3360009081526002602052604080822092909255600160a060020a03861681522054610ec4908463ffffffff61132f16565b600160a060020a0385166000818152600260209081526040918290209390935580518681529051919233926000805160206114908339815191529281900390910190a35060019392505050565b60046020526000908152604090205460ff1681565b600d5460a060020a900460ff1681565b600080600084915081600160a060020a03166370a08231856040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b158015610fb257600080fd5b505af1158015610fc6573d6000803e3d6000fd5b505050506040513d6020811015610fdc57600080fd5b505195945050505050565b600a5481565b600160a060020a03918216600090815260036020908152604080832093909416825291909152205490565b60015460009081908190600160a060020a0316331461103657600080fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051859350600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561109a57600080fd5b505af11580156110ae573d6000803e3d6000fd5b505050506040513d60208110156110c457600080fd5b5051600154604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152600160a060020a0392831660048201526024810184905290519293509084169163a9059cbb916044808201926020929091908290030181600087803b15801561113857600080fd5b505af115801561114c573d6000803e3d6000fd5b505050506040513d602081101561116257600080fd5b5051949350505050565b600b5481565b60095481565b600154600160a060020a0316331461118f57600080fd5b600160a060020a038116156111c7576001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b50565b600154600090600160a060020a031633146111e457600080fd5b5060005b8281101561121d576112158484838181106111ff57fe5b90506020020135600160a060020a03168361134e565b6001016111e8565b50505050565b60008215156112345750600061093b565b5081810281838281151561124457fe5b041461093b57fe5b600d5460009060a060020a900460ff161561126657600080fd5b600954611279908363ffffffff61132f16565b600955600160a060020a0383166000908152600260205260409020546112a5908363ffffffff61132f16565b600160a060020a038416600081815260026020908152604091829020939093558051858152905191927f8940c4b8e215f8822c5c8f0056c12652c746cbc57eedbd2a440b175971d47a7792918290030190a2604080518381529051600160a060020a038516916000916000805160206114908339815191529181900360200190a350600192915050565b8181018281101561093b57fe5b60008282111561134857fe5b50900390565b600154600160a060020a0316331461136557600080fd5b6000811161137257600080fd5b6008546009541061138257600080fd5b600160a060020a0382166000908152600260205260409020546113ab908263ffffffff61132f16565b600160a060020a0383166000908152600260205260409020556009546113d7908263ffffffff61132f16565b60098190556008541161140957600d805474ff0000000000000000000000000000000000000000191660a060020a1790555b600160a060020a0382166000818152600260209081526040918290205482518581529182015281517fada993ad066837289fe186cd37227aa338d27519a8a1547472ecb9831486d272929181900390910190a2604080518281529051600160a060020a038416916000916000805160206114908339815191529181900360200190a350505600ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa165627a7a72305820ccbd18345fc795207c861c782dd18d7bd5730f22ad7f279236c58a1f9e2354a50029


   Swarm Source:
bzzr://ccbd18345fc795207c861c782dd18d7bd5730f22ad7f279236c58a1f9e2354a5
Block Age transaction Difficulty GasUsed Reward
Block Age Uncle Number Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.