Sponsored:   INLOCK - Put Your BTC, Get Your Cash! Crypto Backed Loans, 3.2M Raised Already. Join NOW!
Contract Overview
Balance: 0.010013309410000199 Ether
Ether Value: $2.09 (@ $208.78/ETH)
Transactions: 73938 txns
 Latest 25 txns From a total of 73938 Transactions
(> More Than 25 PendingTxns)

TxHash Age From To Value [TxFee]
0xe59051a6fb4498ed4585ec9375dd4eaa02b4eb3d0c879ba8ea69dc6323a167dc(pending)0x97c629122fb42734b8c7fe75c22f7daba06ab784  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x8c3a238525b6b4cd9868360119e8983c2e976f3f1e1fea452c18da68097a5d98(pending)0x75e2faccfff5d827e4a67da2a58f3aea87b13d29  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0xef62cfca57952cb9a27195b1749afb08949ed6e8ea1e551e38e4230d42ed2bde(pending)0x85ff7d4cdecaea19980dbc88bd1f04e0d1508a2d  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x65fdc26f00aba3ee459abf1fa41ada7646df81284e65d4ff3e7f5b8be0e94e75(pending)0x7b54c01f00e6f19b1242dc1c7cae85cba74f9160  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x3411f06b3032f685460d7a278464ef9cb6fc8c17efa295b317c315a1929e33a4(pending)0xa7ccba13e23caa91969cdb928f6ada52deee8def  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x28d0946d14fff52c049a666b4a3f693fa899877d90bb91d1288128966b4b90fe(pending)0xa789e5a67fb30f548117c78de87608e618c6c815  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0xf14f2426f144023a8818efe12e386b6af26fe05c01430830d13fe163e0cd8ec0(pending)0xd64ff6f26383ea79af21f8307c656e941205f866  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0xabc66c3d35c6c91dfd78eea0951774e96a00a276a45c9c99d7c0c3680dc45206(pending)0x606106cc8922fc6349af18b5deb7d32dd39741cf  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x5ef492f554b5d7bc464af7e28b8dd35ce4a9a880137f0d7d6567dacf189da062(pending)0xedf743aa41489ca5482bd6d6e79cab7ea038322f  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x6272fec27f45e0fe2f4e70f80cc4d7f32fdce04f46579cd87824b29632f0417e(pending)0x1a952548e75d368b018ae227a7d908a09be7df39  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x15bc2cf95fc0cb9908f61ab580ce9182300f0552fa552948ee2ca16bf516581f(pending)0x15afe7fcc6b859b90f5fb78a8ac2aa1a317e29a6  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x5294ab6872b06dd5a05c369f65331ae5c75bdedd1c47b4735e4f6ef2df3f45a4(pending)0x3be3571aeae46ed9a2b20d60795c1b8b6fdbcb60  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x905991f600b6a6438032950295da2bde2a1b6c4a6f634680e6dd4564af7668dc(pending)0x64402ae1dbb71ff2eb6b8cb8470a2bd57eba5623  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x62b369f14477a6ed99bf82264c4a597a60e275a4f6255969458614c376ec8f31(pending)0x8c9a63c59b5741cdb4cbec1c523108253f557142  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x12f3f6ede4bac977a56d004990a4af1ba9f906caee052e3ad457ca777de54238(pending)0x3f54b8f2fa7acbd0a15b4a7f6ff1c55e154263a4  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x34c4387f579f1c883c94aa264ebe866c460e667472ff820879db7d7252f83d6b(pending)0x960134d0b90c6e9033e554169bd56a504c3045a7  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x1f7a2e2f231537289226747e1005ec4e2c4c9ed0fa978158cfb180cf25ffccd9(pending)0x45b852e70cbf760de112132dd383f26d64474b19  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x304f1fcf4913e28a3afaf30c7ec50fbe8af507f868c3f01e121161e0a4dca9d6(pending)0xb96849b2ee06c55a78437a6bf5fee1003f495bd5  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0xae5ca3552130bbbf869dc6d9b4432222c71efd3983e9a8c73f2a902aa473b7cb(pending)0x083084e78f08b6db66c182f2c12c1e4325e874be  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x0701777552e90b6f6c1508fa579c770c4ba329d28d2c7e6e785d056fd9eab11f(pending)0x44e452879e3b16332486c2a3d90390c89e889445  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x5a73a4bf549a6d9bbf7493589c9f9cdf9cb8fa9c723cc9c4b792069ba889cc86(pending)0x9e30c34c4113c62a200573a25615826ff6dc2b9a  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0xd89688826e18a0d44bb074bf5606d4318c8c1bcbdabb163cc7807767606d9cb1(pending)0x71bf8698d7e6511e77342fdd1416ebfb5d49974b  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0x805ada8e00844ccc21ffbe80c5c60e62e64f3abba3b315810d443f195a441604(pending)0x457b6f1d90401afb3ab48b2787fc483cbfd0c8c2  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0xa3734e8e496ecba346fcdcaa50996e385a1d3a6557bd65e14d0f35c792a0c38d(pending)0x752a75affda35ce515145a19c17e08348fd4695f  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
0xfce3e362354cc52c2da9612ac53f91c97097ce48c97292f2f1ede971dca65c8b(pending)0x859bc4dc2fc398dba57f472d602867730022314c  IN  0x3cd9024168e6240b4f18b466d9bea9f8efc660040 Ether(Pending)
 Internal Transactions as a result of Contract Execution
View All
ParentTxHash Block Age From To Value
Warning: The Compiled Contract might be susceptible to ExpExponentCleanup (medium/high-severity), EventStructWrongData (very low-severity) SolidityCompiler Bugs.

Contract Source Code Verified (Exact Match)
Contract Name: AirDropContract
Compiler Text: v0.4.24+commit.e67f0147
Optimization Enabled: Yes
Runs (Optimiser):  200



  Contract Source Code   Find Similiar Contracts

pragma solidity ^0.4.24;

library SafeMath {

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }
        uint256 c = a * b;
        assert(c / a == b);
        return c;
    }

    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 c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        assert(b <= a);
        return a - b;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }
}

contract Ownable {

    address public owner;

    constructor() public {
        owner = msg.sender;
    }

    modifier onlyOwner {
        require(msg.sender == owner);
        _;
    }

    function transferOwnership(address newOwner) onlyOwner public {
        owner = newOwner;
    }
}

contract Erc20Token {
    function balanceOf(address _owner) constant public returns (uint256);

    function transfer(address _to, uint256 _value) public returns (bool);
}

contract AirDropContract is Ownable {

    using SafeMath for uint256;

    Erc20Token public tokenRewardContract;

    uint256 public totalAirDropToken;

    address public collectorAddress;

    mapping(address => uint256) public balanceOf;

    event FundTransfer(address backer, uint256 amount, bool isContribution);
    event Additional(uint amount);
    event Burn(uint amount);
    event CollectAirDropTokenBack(address collectorAddress,uint256 airDropTokenNum);

    /**
     * Constructor function
     */
    constructor(
        address _tokenRewardContract,
        address _collectorAddress
    ) public {
        totalAirDropToken = 2e7;
        tokenRewardContract = Erc20Token(_tokenRewardContract);
        collectorAddress = _collectorAddress;
    }

    /**
     * Fallback function
     *
     * The function without name is the default function that is called whenever anyone sends funds to a contract
     */
    function() payable public {
        require(totalAirDropToken > 0);
        require(balanceOf[msg.sender] == 0);
        uint256 amount = getCurrentCandyAmount();
        require(amount > 0);

        totalAirDropToken = totalAirDropToken.sub(amount);
        balanceOf[msg.sender] = amount;

        tokenRewardContract.transfer(msg.sender, amount * 1e18);
        emit FundTransfer(msg.sender, amount, true);
    }

    function getCurrentCandyAmount() private view returns (uint256 amount){
        if (totalAirDropToken >= 10e6) {
            return 200;
        } else if (totalAirDropToken >= 2.5e6) {
            return 150;
        } else if (totalAirDropToken >= 0.5e6) {
            return 100;
        } else if (totalAirDropToken >= 50) {
            return 50;
        } else {
            return 0;
        }
    }

    /**
     *  Add airdrop tokens
     */
    function additional(uint256 amount) public onlyOwner {
        require(amount > 0);

        totalAirDropToken = totalAirDropToken.add(amount);
        emit Additional(amount);
    }

    /**
    *  burn airdrop tokens
    */
    function burn(uint256 amount) public onlyOwner {
        require(amount > 0);

        totalAirDropToken = totalAirDropToken.sub(amount);
        emit Burn(amount);
    }


    /**
     *  The owner of the contract modifies the recovery address of the token
     */
    function modifyCollectorAddress(address newCollectorAddress) public onlyOwner returns (bool) {
        collectorAddress = newCollectorAddress;
    }

    /**
     *  Recovery of remaining tokens
     */
    function collectAirDropTokenBack(uint256 airDropTokenNum) public onlyOwner {
        require(totalAirDropToken > 0);
        require(collectorAddress != 0x0);

        if (airDropTokenNum > 0) {
            tokenRewardContract.transfer(collectorAddress, airDropTokenNum * 1e18);
        } else {
            tokenRewardContract.transfer(collectorAddress, totalAirDropToken * 1e18);
            totalAirDropToken = 0;
        }
        emit CollectAirDropTokenBack(collectorAddress, airDropTokenNum);
    }

    /**
     *  Recovery donated ether
     */
    function collectEtherBack() public onlyOwner {
        uint256 b = address(this).balance;
        require(b > 0);
        require(collectorAddress != 0x0);

        collectorAddress.transfer(b);
    }

    /**
     *  Get the tokenAddress token balance of someone
     */
    function getTokenBalance(address tokenAddress, address who) view public returns (uint){
        Erc20Token t = Erc20Token(tokenAddress);
        return t.balanceOf(who);
    }

    /**
     *  Recycle other ERC20 tokens
     */
    function collectOtherTokens(address tokenContract) onlyOwner public returns (bool) {
        Erc20Token t = Erc20Token(tokenContract);

        uint256 b = t.balanceOf(address(this));
        return t.transfer(collectorAddress, b);
    }

}

    Contract ABI  
[{"constant":false,"inputs":[{"name":"newCollectorAddress","type":"address"}],"name":"modifyCollectorAddress","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"tokenRewardContract","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"burn","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"tokenContract","type":"address"}],"name":"collectOtherTokens","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"collectEtherBack","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","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":"tokenAddress","type":"address"},{"name":"who","type":"address"}],"name":"getTokenBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"collectorAddress","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalAirDropToken","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"airDropTokenNum","type":"uint256"}],"name":"collectAirDropTokenBack","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"amount","type":"uint256"}],"name":"additional","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_tokenRewardContract","type":"address"},{"name":"_collectorAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"Additional","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"collectorAddress","type":"address"},{"indexed":false,"name":"airDropTokenNum","type":"uint256"}],"name":"CollectAirDropTokenBack","type":"event"}]

  Contract Creation Code Switch To Opcodes View
608060405234801561001057600080fd5b50604051604080610a6883398101604052805160209091015160008054600160a060020a031990811633179091556301312d0060025560018054600160a060020a03948516908316179055600380549390921692169190911790556109ee8061007a6000396000f3006080604052600436106100c45763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166319583b0581146101f957806333caaa431461022e57806342966c681461025f57806364e2ec50146102795780636e56dce51461029a57806370a08231146102af5780638da5cb5b146102e2578063c489744b146102f7578063c973c2e31461031e578063dcaf391e14610333578063e2edfc2014610348578063f2fde38b14610360578063fea7bcfb14610381575b6000806002541115156100d657600080fd5b33600090815260046020526040902054156100f057600080fd5b6100f8610399565b90506000811161010757600080fd5b60025461011a908263ffffffff6103f216565b600255336000818152600460208181526040808420869055600154815160e060020a63a9059cbb02815293840195909552670de0b6b3a76400008602602484015251600160a060020a039094169363a9059cbb936044808501948390030190829087803b15801561018a57600080fd5b505af115801561019e573d6000803e3d6000fd5b505050506040513d60208110156101b457600080fd5b5050604080513381526020810183905260018183015290517fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf69181900360600190a150005b34801561020557600080fd5b5061021a600160a060020a0360043516610404565b604080519115158252519081900360200190f35b34801561023a57600080fd5b5061024361044d565b60408051600160a060020a039092168252519081900360200190f35b34801561026b57600080fd5b5061027760043561045c565b005b34801561028557600080fd5b5061021a600160a060020a03600435166104cc565b3480156102a657600080fd5b50610277610608565b3480156102bb57600080fd5b506102d0600160a060020a0360043516610685565b60408051918252519081900360200190f35b3480156102ee57600080fd5b50610243610697565b34801561030357600080fd5b506102d0600160a060020a03600435811690602435166106a6565b34801561032a57600080fd5b50610243610720565b34801561033f57600080fd5b506102d061072f565b34801561035457600080fd5b50610277600435610735565b34801561036c57600080fd5b50610277600160a060020a03600435166108f6565b34801561038d57600080fd5b5061027760043561093c565b6000629896806002541015156103b1575060c86103ef565b600254622625a0116103c5575060966103ef565b6002546207a120116103d9575060646103ef565b6002546032116103eb575060326103ef565b5060005b90565b6000828211156103fe57fe5b50900390565b60008054600160a060020a0316331461041c57600080fd5b6003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03939093169290921790915590565b600154600160a060020a031681565b600054600160a060020a0316331461047357600080fd5b6000811161048057600080fd5b600254610493908263ffffffff6103f216565b6002556040805182815290517fb90306ad06b2a6ff86ddc9327db583062895ef6540e62dc50add009db5b356eb9181900360200190a150565b6000805481908190600160a060020a031633146104e857600080fd5b604080517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529051859350600160a060020a038416916370a082319160248083019260209291908290030181600087803b15801561054c57600080fd5b505af1158015610560573d6000803e3d6000fd5b505050506040513d602081101561057657600080fd5b50516003546040805160e060020a63a9059cbb028152600160a060020a0392831660048201526024810184905290519293509084169163a9059cbb916044808201926020929091908290030181600087803b1580156105d457600080fd5b505af11580156105e8573d6000803e3d6000fd5b505050506040513d60208110156105fe57600080fd5b5051949350505050565b60008054600160a060020a0316331461062057600080fd5b5030316000811161063057600080fd5b600354600160a060020a0316151561064757600080fd5b600354604051600160a060020a039091169082156108fc029083906000818181858888f19350505050158015610681573d6000803e3d6000fd5b5050565b60046020526000908152604090205481565b600054600160a060020a031681565b60008083905080600160a060020a03166370a08231846040518263ffffffff167c01000000000000000000000000000000000000000000000000000000000281526004018082600160a060020a0316600160a060020a03168152602001915050602060405180830381600087803b1580156105d457600080fd5b600354600160a060020a031681565b60025481565b600054600160a060020a0316331461074c57600080fd5b60025460001061075b57600080fd5b600354600160a060020a0316151561077257600080fd5b6000811115610812576001546003546040805160e060020a63a9059cbb028152600160a060020a039283166004820152670de0b6b3a7640000850260248201529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156107e057600080fd5b505af11580156107f4573d6000803e3d6000fd5b505050506040513d602081101561080a57600080fd5b506108ac9050565b6001546003546002546040805160e060020a63a9059cbb028152600160a060020a039384166004820152670de0b6b3a7640000909202602483015251919092169163a9059cbb9160448083019260209291908290030181600087803b15801561087a57600080fd5b505af115801561088e573d6000803e3d6000fd5b505050506040513d60208110156108a457600080fd5b505060006002555b60035460408051600160a060020a0390921682526020820183905280517f5bb2088db384b9cb55b46f8d45bfc9bd6e9ea7c868e8ec19e1228866b9b44dc49281900390910190a150565b600054600160a060020a0316331461090d57600080fd5b6000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b600054600160a060020a0316331461095357600080fd5b6000811161096057600080fd5b600254610973908263ffffffff6109ac16565b6002556040805182815290517f964b22b433d65756b36336984502590cccf56c5721696fa141842ea2058d0f0e9181900360200190a150565b6000828201838110156109bb57fe5b93925050505600a165627a7a72305820b8e9c885dbec7876474abe98f18601adf2456174746e612bc96913417750742d0029000000000000000000000000420a43153da24b9e2aedcec2b8158a8653a3317e0000000000000000000000004bf7cfdb499f77688ae96914a1207ad3c2e973f9

    Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000420a43153da24b9e2aedcec2b8158a8653a3317e0000000000000000000000004bf7cfdb499f77688ae96914a1207ad3c2e973f9

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000420a43153da24b9e2aedcec2b8158a8653a3317e
Arg [1] : 0000000000000000000000004bf7cfdb499f77688ae96914a1207ad3c2e973f9


   Swarm Source:
bzzr://b8e9c885dbec7876474abe98f18601adf2456174746e612bc96913417750742d

 

View All
Block Age transaction Difficulty Reward
View All
Block Age UncleNumber Difficulty GasUsed Reward
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.