ETH Price: $2,334.99 (-0.31%)

Token

LOCKEDiN (LCK)
 

Overview

Max Total Supply

6,432.308235027781157012 LCK

Holders

456

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

Balance
0.000041121486272692 LCK

Value
$0.00
0x7ff4b024e9418cffd16497069d81251319350cbb
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
LOCKEDiN

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-04-06
*/

pragma solidity ^0.4.20;
/*
* Created by LOCKEDiN
* ====================================*
* ->About LCK
* An autonomousfully automated passive income:
* [x] Created by a team of professional Developers from India who run a software company and specialize in Internet and Cryptographic Security
* [x] Pen-tested multiple times with zero vulnerabilities!
* [X] Able to operate even if our website www.lockedin.io is down via Metamask and Etherscan
* [x] 30 LCK required for a Masternode Link generation
* [x] As people join your make money as people leave you make money 24/7 – Not a lending platform but a human-less passive income machine on the Ethereum Blockchain
* [x] Once deployed neither we nor any other human can alter, change or stop the contract it will run for as long as Ethereum is running!
* [x] Unlike similar projects the developers are only allowing 3 ETH to be purchased by Developers at deployment as opposed to 22 ETH – Fair for the Public!
* - 33% Reward of dividends if someone signs up using your Masternode link
* -  You earn by others depositing or withdrawing ETH and this passive ETH earnings can either be reinvested or you can withdraw it at any time without penalty.
* Upon entry into the contract it will automatically deduct your 10% entry and exit fees so the longer you remain and the higher the volume the more you earn and the more that people join or leave you also earn more.  
* You are able to withdraw your entire balance at any time you so choose. 
*/


contract LOCKEDiN {
    /*=================================
    =            MODIFIERS            =
    =================================*/
    // only people with tokens
    modifier onlyBagholders() {
        require(myTokens() > 0);
        _;
    }

    // only people with profits
    modifier onlyStronghands() {
        require(myDividends(true) > 0);
        _;
    }

    // ensures that the first tokens in the contract will be equally distributed
    // meaning, no divine dump will be ever possible
    // result: healthy longevity.
    modifier antiEarlyWhale(uint256 _amountOfEthereum){
        address _customerAddress = msg.sender;

        // are we still in the vulnerable phase?
        // if so, enact anti early whale protocol 
        if( onlyDevs && ((totalEthereumBalance() - _amountOfEthereum) <= devsQuota_ )){
            require(
                // is the customer in the ambassador list?
                developers_[_customerAddress] == true &&

                // does the customer purchase exceed the max ambassador quota?
                (devsAccumulatedQuota_[_customerAddress] + _amountOfEthereum) <= devsMaxPurchase_
            );

            // updated the accumulated quota    
            devsAccumulatedQuota_[_customerAddress] = SafeMath.add(devsAccumulatedQuota_[_customerAddress], _amountOfEthereum);

            // execute
            _;
        } else {
            // in case the ether count drops low, the ambassador phase won't reinitiate
            onlyDevs = false;
            _;    
        }

    }


    /*==============================
    =            EVENTS            =
    ==============================*/
    event onTokenPurchase(
        address indexed customerAddress,
        uint256 incomingEthereum,
        uint256 tokensMinted,
        address indexed referredBy
    );

    event onTokenSell(
        address indexed customerAddress,
        uint256 tokensBurned,
        uint256 ethereumEarned
    );

    event onReinvestment(
        address indexed customerAddress,
        uint256 ethereumReinvested,
        uint256 tokensMinted
    );

    event onWithdraw(
        address indexed customerAddress,
        uint256 ethereumWithdrawn
    );

    // ERC20
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 tokens
    );


    /*=====================================
    =            CONFIGURABLES            =
    =====================================*/
    string public name = "LOCKEDiN";
    string public symbol = "LCK";
    uint8 constant public decimals = 18;
    uint8 constant internal dividendFee_ = 10;
    uint256 constant internal tokenPriceInitial_ = 0.0000001 ether;
    uint256 constant internal tokenPriceIncremental_ = 0.00000001 ether;
    uint256 constant internal magnitude = 2**64;

    // proof of stake (defaults at 30 tokens)
    uint256 public stakingRequirement = 30e18;

    // Developer program
    mapping(address => bool) internal developers_;
    uint256 constant internal devsMaxPurchase_ = 1 ether;
    uint256 constant internal devsQuota_ = 3 ether;



   /*================================
    =            DATASETS            =
    ================================*/
    // amount of shares for each address (scaled number)
    mapping(address => uint256) internal tokenBalanceLedger_;
    mapping(address => uint256) internal referralBalance_;
    mapping(address => int256) internal payoutsTo_;
    mapping(address => uint256) internal devsAccumulatedQuota_;
    uint256 internal tokenSupply_ = 0;
    uint256 internal profitPerShare_;


    // when this is set to true, only developers can purchase tokens (this prevents a whale premine, it ensures a fairly distributed upper pyramid)
    bool public onlyDevs = true;

    /*=======================================
    =            PUBLIC FUNCTIONS            =
    =======================================*/
    /*
    * -- APPLICATION ENTRY POINTS --  
    */
    function LOCKEDiN()
        public
    {
        // add developers here
        developers_[0x2AAC4821B03Ed3c14Cab6d62782a368e0c44e7de] = true;

        developers_[0x7b459F23119206cfddE5d92572127a5B99075ac4] = true;

        developers_[0xd9eA90E6491475EB498d55Be2165775080eD4F83] = true;

        developers_[0xEb1874f8b702AB8911ae64D36f6B34975afcc431] = true;

    }


    /**
     * Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any)
     */
    function buy(address _referredBy)
        public
        payable
        returns(uint256)
    {
        purchaseTokens(msg.value, _referredBy);
    }

    /**
     * Fallback function to handle ethereum that was send straight to the contract
     * Unfortunately we cannot use a referral address this way.
     */
    function()
        payable
        public
    {
        purchaseTokens(msg.value, 0x0);
    }

    /**
     * Converts all of caller's dividends to tokens.
     */
    function reinvest()
    onlyStronghands()
        public
    {
        // fetch dividends
        uint256 _dividends = myDividends(false); // retrieve ref. bonus later in the code

        // pay out the dividends virtually
        address _customerAddress = msg.sender;
        payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude);

        // retrieve ref. bonus
        _dividends += referralBalance_[_customerAddress];
        referralBalance_[_customerAddress] = 0;

        // dispatch a buy order with the virtualized "withdrawn dividends"
        uint256 _tokens = purchaseTokens(_dividends, 0x0);

        // fire event
        emit onReinvestment(_customerAddress, _dividends, _tokens);
    }

    /**
     * Alias of sell() and withdraw().
     */
    function exit()
        public
    {
        // get token count for caller & sell them all
        address _customerAddress = msg.sender;
        uint256 _tokens = tokenBalanceLedger_[_customerAddress];
        if(_tokens > 0) sell(_tokens);

        // lambo delivery service
        withdraw();
    }

    /**
     * Withdraws all of the callers earnings.
     */
    function withdraw()
    onlyStronghands()
        public
    {
        // setup data
        address _customerAddress = msg.sender;
        uint256 _dividends = myDividends(false); // get ref. bonus later in the code

        // update dividend tracker
        payoutsTo_[_customerAddress] += (int256) (_dividends * magnitude);

        // add ref. bonus
        _dividends += referralBalance_[_customerAddress];
        referralBalance_[_customerAddress] = 0;

        // lambo delivery service
        _customerAddress.transfer(_dividends);

        // fire event
        emit onWithdraw(_customerAddress, _dividends);
    }

    /**
     * Liquifies tokens to ethereum.
     */
    function sell(uint256 _amountOfTokens)
        onlyBagholders()
        public
    {
        // setup data
        address _customerAddress = msg.sender;
        // russian hackers BTFO
        require(_amountOfTokens <= tokenBalanceLedger_[_customerAddress]);
        uint256 _tokens = _amountOfTokens;
        uint256 _ethereum = tokensToEthereum_(_tokens);
        uint256 _dividends = SafeMath.div(_ethereum, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);

        // burn the sold tokens
        tokenSupply_ = SafeMath.sub(tokenSupply_, _tokens);
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _tokens);

        // update dividends tracker
        int256 _updatedPayouts = (int256) (profitPerShare_ * _tokens + (_taxedEthereum * magnitude));
        payoutsTo_[_customerAddress] -= _updatedPayouts;       

        // dividing by zero is a bad idea
        if (tokenSupply_ > 0) {
            // update the amount of dividends per token
            profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_);
        }

        // fire event
        emit onTokenSell(_customerAddress, _tokens, _taxedEthereum);
    }


    /**
     * Transfer tokens from the caller to a new holder.
     * Remember, there's a 10% fee here as well.
     */
    function transfer(address _toAddress, uint256 _amountOfTokens)
        onlyBagholders()
        public
        returns(bool)
    {
        // setup
        address _customerAddress = msg.sender;

        // make sure we have the requested tokens
        // also disables transfers until ambassador phase is over
        // ( wedont want whale premines )
        require(!onlyDevs && _amountOfTokens <= tokenBalanceLedger_[_customerAddress]);

        // withdraw all outstanding dividends first
        if(myDividends(true) > 0) withdraw();

        // liquify 10% of the tokens that are transfered
        // these are dispersed to shareholders
        uint256 _tokenFee = SafeMath.div(_amountOfTokens, dividendFee_);
        uint256 _taxedTokens = SafeMath.sub(_amountOfTokens, _tokenFee);
        uint256 _dividends = tokensToEthereum_(_tokenFee);

        // burn the fee tokens
        tokenSupply_ = SafeMath.sub(tokenSupply_, _tokenFee);

        // exchange tokens
        tokenBalanceLedger_[_customerAddress] = SafeMath.sub(tokenBalanceLedger_[_customerAddress], _amountOfTokens);
        tokenBalanceLedger_[_toAddress] = SafeMath.add(tokenBalanceLedger_[_toAddress], _taxedTokens);

        // update dividend trackers
        payoutsTo_[_customerAddress] -= (int256) (profitPerShare_ * _amountOfTokens);
        payoutsTo_[_toAddress] += (int256) (profitPerShare_ * _taxedTokens);

        // disperse dividends among holders
        profitPerShare_ = SafeMath.add(profitPerShare_, (_dividends * magnitude) / tokenSupply_);

        // fire event
        emit Transfer(_customerAddress, _toAddress, _taxedTokens);

        // ERC20
        return true;

    }

    /*----------  HELPERS AND CALCULATORS  ----------*/
    /**
     * Method to view the current Ethereum stored in the contract
     * Example: totalEthereumBalance()
     */
    function totalEthereumBalance()
        public
        view
        returns(uint)
    {
        return this.balance;
    }

    /**
     * Retrieve the total token supply.
     */
    function totalSupply()
        public
        view
        returns(uint256)
    {
        return tokenSupply_;
    }

    /**
     * Retrieve the tokens owned by the caller.
     */
    function myTokens()
        public
        view
        returns(uint256)
    {
        address _customerAddress = msg.sender;
        return balanceOf(_customerAddress);
    }

    /**
     * Retrieve the dividends owned by the caller.
     * If `_includeReferralBonus` is to to 1/true, the referral bonus will be included in the calculations.
     * The reason for this, is that in the frontend, we will want to get the total divs (global + ref)
     * But in the internal calculations, we want them separate. 
     */ 
    function myDividends(bool _includeReferralBonus) 
        public 
        view 
        returns(uint256)
    {
        address _customerAddress = msg.sender;
        return _includeReferralBonus ?dividendsOf(_customerAddress) + referralBalance_[_customerAddress] : dividendsOf(_customerAddress) ;
    }

    /**
     * Retrieve the token balance of any single address.
     */
    function balanceOf(address _customerAddress)
        view
        public
        returns(uint256)
    {
        return tokenBalanceLedger_[_customerAddress];
    }

    /**
     * Retrieve the dividend balance of any single address.
     */
    function dividendsOf(address _customerAddress)
        view
        public
        returns(uint256)
    {
        return (uint256) ((int256)(profitPerShare_ * tokenBalanceLedger_[_customerAddress]) - payoutsTo_[_customerAddress]) / magnitude;
    }

    /**
     * Return the buy price of 1 individual token.
     */
    function sellPrice() 
        public 
        view 
        returns(uint256)
        {
        // our calculation relies on the token supply, so we need supply. Doh.
        if(tokenSupply_ == 0)
        {
            return tokenPriceInitial_ - tokenPriceIncremental_;
        }
        else
        {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(_ethereum, dividendFee_  );
            uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
            return _taxedEthereum;
        }
        }

    /**
     * Return the sell price of 1 individual token.
     */
    function buyPrice() 
        public 
        view 
        returns(uint256)
    {
        // our calculation relies on the token supply, so we need supply. Doh.
        if(tokenSupply_ == 0){
            return tokenPriceInitial_ + tokenPriceIncremental_;
        } else {
            uint256 _ethereum = tokensToEthereum_(1e18);
            uint256 _dividends = SafeMath.div(_ethereum, dividendFee_  );
            uint256 _taxedEthereum = SafeMath.add(_ethereum, _dividends);
            return _taxedEthereum;
        }
    }

    /**
     * Function for the frontend to dynamically retrieve the price scaling of buy orders.
     */
    function calculateTokensReceived(uint256 _ethereumToSpend) 
        public 
        view 
        returns(uint256)
    {
        uint256 _dividends = SafeMath.div(_ethereumToSpend, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereumToSpend, _dividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);

        return _amountOfTokens;
    }

    /**
     * Function for the frontend to dynamically retrieve the price scaling of sell orders.
     */
    function calculateEthereumReceived(uint256 _tokensToSell) 
        public 
        view 
        returns(uint256)
    {
        require(_tokensToSell <= tokenSupply_);
        uint256 _ethereum = tokensToEthereum_(_tokensToSell);
        uint256 _dividends = SafeMath.div(_ethereum, dividendFee_);
        uint256 _taxedEthereum = SafeMath.sub(_ethereum, _dividends);
        return _taxedEthereum;
    }


    /*==========================================
    =            INTERNAL FUNCTIONS            =
    ==========================================*/
    function purchaseTokens(uint256 _incomingEthereum, address _referredBy)
        antiEarlyWhale(_incomingEthereum)
        internal
        returns(uint256)
    {
        // data setup
        address _customerAddress = msg.sender;
        uint256 _undividedDividends = SafeMath.div(_incomingEthereum, dividendFee_);
        uint256 _referralBonus = SafeMath.div(_undividedDividends, 3);
        uint256 _dividends = SafeMath.sub(_undividedDividends, _referralBonus);
        uint256 _taxedEthereum = SafeMath.sub(_incomingEthereum, _undividedDividends);
        uint256 _amountOfTokens = ethereumToTokens_(_taxedEthereum);
        uint256 _fee = _dividends * magnitude;

        // no point in continuing execution if OP is a poorfagrussian hacker
        // prevents overflow in the case that the pyramid somehow magically starts being used by everyone in the world
        // (or hackers)
        // and yes we know that the safemath function automatically rules out the "greater then" equasion.
        require(_amountOfTokens > 0 && (SafeMath.add(_amountOfTokens,tokenSupply_) > tokenSupply_));

        // is the user referred by a masternode?
        if(
            // is this a referred purchase?
            _referredBy != 0x0000000000000000000000000000000000000000 &&

            // no cheating!
            _referredBy != _customerAddress&&

            // does the referrer have at least X whole tokens?
            // i.e is the referrer a godly chad masternode
            tokenBalanceLedger_[_referredBy] >= stakingRequirement
        ){
            // wealth redistribution
            referralBalance_[_referredBy] = SafeMath.add(referralBalance_[_referredBy], _referralBonus);
        } else {
            // no ref purchase
            // add the referral bonus back to the global dividends cake
            _dividends = SafeMath.add(_dividends, _referralBonus);
            _fee = _dividends * magnitude;
        }

        // we can't give people infinite ethereum
        if(tokenSupply_ > 0){

            // add tokens to the pool
            tokenSupply_ = SafeMath.add(tokenSupply_, _amountOfTokens);

            // take the amount of dividends gained through this transaction, and allocates them evenly to each shareholder
            profitPerShare_ += (_dividends * magnitude / (tokenSupply_));

            // calculate the amount of tokens the customer receives over his purchase 
            _fee = _fee - (_fee-(_amountOfTokens * (_dividends * magnitude / (tokenSupply_))));

        } else {
            // add tokens to the pool
            tokenSupply_ = _amountOfTokens;
        }

        // update circulating supply & the ledger address for the customer
        tokenBalanceLedger_[_customerAddress] = SafeMath.add(tokenBalanceLedger_[_customerAddress], _amountOfTokens);

        // Tells the contract that the buyer doesn't deserve dividends for the tokens before they owned them;
        //really i know you think you do but you don't
        int256 _updatedPayouts = (int256) ((profitPerShare_ * _amountOfTokens) - _fee);
        payoutsTo_[_customerAddress] += _updatedPayouts;

        // fire event
        emit onTokenPurchase(_customerAddress, _incomingEthereum, _amountOfTokens, _referredBy);

        return _amountOfTokens;
    }

    /**
     * Calculate Token price based on an amount of incoming ethereum
     * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
     */
    function ethereumToTokens_(uint256 _ethereum)
        internal
        view
        returns(uint256)
    {
        uint256 _tokenPriceInitial = tokenPriceInitial_ * 1e18;
        uint256 _tokensReceived = 
        (
            (
                // underflow attempts BTFO
                SafeMath.sub(
                    (sqrt
                        (
                            (_tokenPriceInitial**2)
                            +
                            (2*(tokenPriceIncremental_ * 1e18)*(_ethereum * 1e18))
                            +
                            (((tokenPriceIncremental_)**2)*(tokenSupply_**2))
                            +
                            (2*(tokenPriceIncremental_)*_tokenPriceInitial*tokenSupply_)
                        )
                    ), _tokenPriceInitial
                )
            )/(tokenPriceIncremental_)
        )-(tokenSupply_)
        ;

        return _tokensReceived;
    }

    /**
     * Calculate token sell value.
     * Some conversions occurred to prevent decimal errors or underflows / overflows in solidity code.
     */
    function tokensToEthereum_(uint256 _tokens)
        internal
        view
        returns(uint256)
    {

        uint256 tokens_ = (_tokens + 1e18);
        uint256 _tokenSupply = (tokenSupply_ + 1e18);
        uint256 _etherReceived = 
        (
            // underflow attempts BTFO
            SafeMath.sub(
                (
                    (
                        (
                        tokenPriceInitial_ + (tokenPriceIncremental_ * (_tokenSupply/1e18))
                                                )-tokenPriceIncremental_
                    )*(tokens_ - 1e18)
                ),(tokenPriceIncremental_*((tokens_**2-tokens_)/1e18))/2
            )
        /1e18);
        return _etherReceived;
    }

    function sqrt(uint x) internal pure returns (uint y) {
        uint z = (x + 1) / 2;
        y = x;
        while (z < y) {
            y = z;
            z = (x / z + z) / 2;
        }
    }
}

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

    /**
    * @dev Multiplies two numbers, throws on overflow.
    */
    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;
    }

    /**
    * @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 c;
    }

    /**
    * @dev Substracts 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) {
        uint256 c = a + b;
        assert(c >= a);
        return c;
    }
}

Contract Security Audit

Contract ABI

[{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"dividendsOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_ethereumToSpend","type":"uint256"}],"name":"calculateTokensReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_tokensToSell","type":"uint256"}],"name":"calculateEthereumReceived","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sellPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"stakingRequirement","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_includeReferralBonus","type":"bool"}],"name":"myDividends","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalEthereumBalance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_customerAddress","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"myTokens","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"onlyDevs","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_toAddress","type":"address"},{"name":"_amountOfTokens","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"sell","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_referredBy","type":"address"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[],"name":"reinvest","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":"customerAddress","type":"address"},{"indexed":false,"name":"incomingEthereum","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"},{"indexed":true,"name":"referredBy","type":"address"}],"name":"onTokenPurchase","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"tokensBurned","type":"uint256"},{"indexed":false,"name":"ethereumEarned","type":"uint256"}],"name":"onTokenSell","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumReinvested","type":"uint256"},{"indexed":false,"name":"tokensMinted","type":"uint256"}],"name":"onReinvestment","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"customerAddress","type":"address"},{"indexed":false,"name":"ethereumWithdrawn","type":"uint256"}],"name":"onWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"tokens","type":"uint256"}],"name":"Transfer","type":"event"}]

606060405260408051908101604052600881527f4c4f434b4544694e000000000000000000000000000000000000000000000000602082015260009080516200004d92916020019062000193565b5060408051908101604052600381527f4c434b0000000000000000000000000000000000000000000000000000000000602082015260019080516200009792916020019062000193565b506801a055690d9db800006002556000600855600a805460ff191660011790553415620000c357600080fd5b60036020527f47a24274d131b4b94762c09e48f576e06155f524c96761f023d36a2dfc22eba38054600160ff1991821681179092557fd95e2246d080b2fa28a3355c19b122c3cf13c600290cb9689b51a1a73069df7a80548216831790557f2ed1ce350064c95e9069b25e320e2a6e27bff35fee719fe0085cdd9dce79941c805482168317905573eb1874f8b702ab8911ae64d36f6b34975afcc4316000527fe8904c535bcd96e3677ff10103ff88fd16bc716068605ebb5e6d5aa2460b1dda8054909116909117905562000238565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620001d657805160ff191683800117855562000206565b8280016001018555821562000206579182015b8281111562000206578251825591602001919060010190620001e9565b506200021492915062000218565b5090565b6200023591905b808211156200021457600081556001016200021f565b90565b6112d280620002486000396000f30060606040526004361061011b5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461012957806306fdde031461015a57806310d0ffdd146101e457806318160ddd146101fa578063226093731461020d578063313ce567146102235780633ccfd60b1461024c5780634b7503341461026157806356d399e814610274578063688abbf7146102875780636b2f46321461029f57806370a08231146102b25780638620410b146102d1578063949e8acd146102e457806395d89b41146102f7578063a78118a41461030a578063a9059cbb14610331578063e4849b3214610353578063e9fad8ee14610369578063f088d5471461037c578063fdb5a03e14610390575b6101263460006103a3565b50005b341561013457600080fd5b610148600160a060020a036004351661096e565b60405190815260200160405180910390f35b341561016557600080fd5b61016d6109a9565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101a9578082015183820152602001610191565b50505050905090810190601f1680156101d65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101ef57600080fd5b610148600435610a47565b341561020557600080fd5b610148610a77565b341561021857600080fd5b610148600435610a7d565b341561022e57600080fd5b610236610ab6565b60405160ff909116815260200160405180910390f35b341561025757600080fd5b61025f610abb565b005b341561026c57600080fd5b610148610b87565b341561027f57600080fd5b610148610bdb565b341561029257600080fd5b6101486004351515610be1565b34156102aa57600080fd5b610148610c24565b34156102bd57600080fd5b610148600160a060020a0360043516610c32565b34156102dc57600080fd5b610148610c4d565b34156102ef57600080fd5b610148610c95565b341561030257600080fd5b61016d610ca7565b341561031557600080fd5b61031d610d12565b604051901515815260200160405180910390f35b341561033c57600080fd5b61031d600160a060020a0360043516602435610d1b565b341561035e57600080fd5b61025f600435610ed3565b341561037457600080fd5b61025f611030565b610148600160a060020a0360043516611067565b341561039b57600080fd5b61025f611073565b60008060008060008060008060008a6000339050600a60009054906101000a900460ff1680156103e457506729a2241af62c0000826103e0610c24565b0311155b156106ec57600160a060020a03811660009081526003602052604090205460ff16151560011480156104395750600160a060020a038116600090815260076020526040902054670de0b6b3a764000090830111155b151561044457600080fd5b600160a060020a038116600090815260076020526040902054610467908361112e565b600160a060020a03821660009081526007602052604090205533995061048e8d600a611144565b985061049b896003611144565b97506104a7898961115b565b96506104b38d8a61115b565b95506104be8661116d565b945068010000000000000000870293506000851180156104e857506008546104e6868261112e565b115b15156104f357600080fd5b600160a060020a038c161580159061051d575089600160a060020a03168c600160a060020a031614155b80156105435750600254600160a060020a038d1660009081526004602052604090205410155b1561058957600160a060020a038c1660009081526005602052604090205461056b908961112e565b600160a060020a038d166000908152600560205260409020556105a4565b610593878961112e565b965068010000000000000000870293505b60006008541115610608576105bb6008548661112e565b60088190556801000000000000000088028115156105d557fe5b600980549290910490910190556008546801000000000000000088028115156105fa57fe5b04850284038403935061060e565b60088590555b600160a060020a038a16600090815260046020526040902054610631908661112e565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a5061095e565b600a805460ff19168155339a50610704908e90611144565b9850610711896003611144565b975061071d898961115b565b96506107298d8a61115b565b95506107348661116d565b9450680100000000000000008702935060008511801561075e575060085461075c868261112e565b115b151561076957600080fd5b600160a060020a038c1615801590610793575089600160a060020a03168c600160a060020a031614155b80156107b95750600254600160a060020a038d1660009081526004602052604090205410155b156107ff57600160a060020a038c166000908152600560205260409020546107e1908961112e565b600160a060020a038d1660009081526005602052604090205561081a565b610809878961112e565b965068010000000000000000870293505b6000600854111561087e576108316008548661112e565b600881905568010000000000000000880281151561084b57fe5b6009805492909104909101905560085468010000000000000000880281151561087057fe5b048502840384039350610884565b60088590555b600160a060020a038a166000908152600460205260409020546108a7908661112e565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a505b5050505050505050505092915050565b600160a060020a0316600090815260066020908152604080832054600490925290912054600954680100000000000000009102919091030490565b60008054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a3f5780601f10610a1457610100808354040283529160200191610a3f565b820191906000526020600020905b815481529060010190602001808311610a2257829003601f168201915b505050505081565b6000808080610a5785600a611144565b9250610a63858461115b565b9150610a6e8261116d565b95945050505050565b60085490565b6000806000806008548511151515610a9457600080fd5b610a9d85611205565b9250610aaa83600a611144565b9150610a6e838361115b565b601281565b6000806000610aca6001610be1565b11610ad457600080fd5b339150610ae16000610be1565b600160a060020a0383166000818152600660209081526040808320805468010000000000000000870201905560059091528082208054929055920192509082156108fc0290839051600060405180830381858888f193505050501515610b4657600080fd5b81600160a060020a03167fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc8260405190815260200160405180910390a25050565b60008060008060085460001415610ba5576414f46b04009350610bd5565b610bb6670de0b6b3a7640000611205565b9250610bc383600a611144565b9150610bcf838361115b565b90508093505b50505090565b60025481565b60003382610bf757610bf28161096e565b610c1b565b600160a060020a038116600090815260056020526040902054610c198261096e565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526004602052604090205490565b60008060008060085460001415610c6b5764199c82cc009350610bd5565b610c7c670de0b6b3a7640000611205565b9250610c8983600a611144565b9150610bcf838361112e565b600033610ca181610c32565b91505090565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a3f5780601f10610a1457610100808354040283529160200191610a3f565b600a5460ff1681565b600080600080600080610d2c610c95565b11610d3657600080fd5b600a5433945060ff16158015610d645750600160a060020a0384166000908152600460205260409020548611155b1515610d6f57600080fd5b6000610d7b6001610be1565b1115610d8957610d89610abb565b610d9486600a611144565b9250610da0868461115b565b9150610dab83611205565b9050610db96008548461115b565b600855600160a060020a038416600090815260046020526040902054610ddf908761115b565b600160a060020a038086166000908152600460205260408082209390935590891681522054610e0e908361112e565b600160a060020a0388811660008181526004602090815260408083209590955560098054948a16835260069091528482208054948c02909403909355825491815292909220805492850290920190915554600854610e829190680100000000000000008402811515610e7c57fe5b0461112e565b600955600160a060020a038088169085167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a35060019695505050505050565b6000806000806000806000610ee6610c95565b11610ef057600080fd5b33600160a060020a038116600090815260046020526040902054909650871115610f1957600080fd5b869450610f2585611205565b9350610f3284600a611144565b9250610f3e848461115b565b9150610f4c6008548661115b565b600855600160a060020a038616600090815260046020526040902054610f72908661115b565b600160a060020a0387166000908152600460209081526040808320939093556009546006909152918120805492880268010000000000000000860201928390039055600854919250901115610fe357610fdf600954600854680100000000000000008602811515610e7c57fe5b6009555b85600160a060020a03167fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139868460405191825260208201526040908101905180910390a250505050505050565b33600160a060020a0381166000908152600460205260408120549081111561105b5761105b81610ed3565b611063610abb565b5050565b6000610c1e34836103a3565b6000806000806110836001610be1565b1161108d57600080fd5b6110976000610be1565b33600160a060020a0381166000908152600660209081526040808320805468010000000000000000870201905560059091528120805490829055909201945092506110e39084906103a3565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab3615326458848360405191825260208201526040908101905180910390a2505050565b60008282018381101561113d57fe5b9392505050565b600080828481151561115257fe5b04949350505050565b60008282111561116757fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be4006111f26111ec730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611271565b8561115b565b8115156111fb57fe5b0403949350505050565b600854600090670de0b6b3a764000083810191810190839061125e6414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561125857fe5b0461115b565b81151561126757fe5b0495945050505050565b80600260018201045b81811015610c1e57809150600281828581151561129357fe5b040181151561129e57fe5b04905061127a5600a165627a7a72305820fa03e8bf9cd590c86bbd976feb7c6b3861ebf57c4a2ddc3972cf0961729a18900029

Deployed Bytecode

0x60606040526004361061011b5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461012957806306fdde031461015a57806310d0ffdd146101e457806318160ddd146101fa578063226093731461020d578063313ce567146102235780633ccfd60b1461024c5780634b7503341461026157806356d399e814610274578063688abbf7146102875780636b2f46321461029f57806370a08231146102b25780638620410b146102d1578063949e8acd146102e457806395d89b41146102f7578063a78118a41461030a578063a9059cbb14610331578063e4849b3214610353578063e9fad8ee14610369578063f088d5471461037c578063fdb5a03e14610390575b6101263460006103a3565b50005b341561013457600080fd5b610148600160a060020a036004351661096e565b60405190815260200160405180910390f35b341561016557600080fd5b61016d6109a9565b60405160208082528190810183818151815260200191508051906020019080838360005b838110156101a9578082015183820152602001610191565b50505050905090810190601f1680156101d65780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34156101ef57600080fd5b610148600435610a47565b341561020557600080fd5b610148610a77565b341561021857600080fd5b610148600435610a7d565b341561022e57600080fd5b610236610ab6565b60405160ff909116815260200160405180910390f35b341561025757600080fd5b61025f610abb565b005b341561026c57600080fd5b610148610b87565b341561027f57600080fd5b610148610bdb565b341561029257600080fd5b6101486004351515610be1565b34156102aa57600080fd5b610148610c24565b34156102bd57600080fd5b610148600160a060020a0360043516610c32565b34156102dc57600080fd5b610148610c4d565b34156102ef57600080fd5b610148610c95565b341561030257600080fd5b61016d610ca7565b341561031557600080fd5b61031d610d12565b604051901515815260200160405180910390f35b341561033c57600080fd5b61031d600160a060020a0360043516602435610d1b565b341561035e57600080fd5b61025f600435610ed3565b341561037457600080fd5b61025f611030565b610148600160a060020a0360043516611067565b341561039b57600080fd5b61025f611073565b60008060008060008060008060008a6000339050600a60009054906101000a900460ff1680156103e457506729a2241af62c0000826103e0610c24565b0311155b156106ec57600160a060020a03811660009081526003602052604090205460ff16151560011480156104395750600160a060020a038116600090815260076020526040902054670de0b6b3a764000090830111155b151561044457600080fd5b600160a060020a038116600090815260076020526040902054610467908361112e565b600160a060020a03821660009081526007602052604090205533995061048e8d600a611144565b985061049b896003611144565b97506104a7898961115b565b96506104b38d8a61115b565b95506104be8661116d565b945068010000000000000000870293506000851180156104e857506008546104e6868261112e565b115b15156104f357600080fd5b600160a060020a038c161580159061051d575089600160a060020a03168c600160a060020a031614155b80156105435750600254600160a060020a038d1660009081526004602052604090205410155b1561058957600160a060020a038c1660009081526005602052604090205461056b908961112e565b600160a060020a038d166000908152600560205260409020556105a4565b610593878961112e565b965068010000000000000000870293505b60006008541115610608576105bb6008548661112e565b60088190556801000000000000000088028115156105d557fe5b600980549290910490910190556008546801000000000000000088028115156105fa57fe5b04850284038403935061060e565b60088590555b600160a060020a038a16600090815260046020526040902054610631908661112e565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a5061095e565b600a805460ff19168155339a50610704908e90611144565b9850610711896003611144565b975061071d898961115b565b96506107298d8a61115b565b95506107348661116d565b9450680100000000000000008702935060008511801561075e575060085461075c868261112e565b115b151561076957600080fd5b600160a060020a038c1615801590610793575089600160a060020a03168c600160a060020a031614155b80156107b95750600254600160a060020a038d1660009081526004602052604090205410155b156107ff57600160a060020a038c166000908152600560205260409020546107e1908961112e565b600160a060020a038d1660009081526005602052604090205561081a565b610809878961112e565b965068010000000000000000870293505b6000600854111561087e576108316008548661112e565b600881905568010000000000000000880281151561084b57fe5b6009805492909104909101905560085468010000000000000000880281151561087057fe5b048502840384039350610884565b60088590555b600160a060020a038a166000908152600460205260409020546108a7908661112e565b600460008c600160a060020a0316600160a060020a031681526020019081526020016000208190555083856009540203925082600660008c600160a060020a0316600160a060020a03168152602001908152602001600020600082825401925050819055508b600160a060020a03168a600160a060020a03167f022c0d992e4d873a3748436d960d5140c1f9721cf73f7ca5ec679d3d9f4fe2d58f8860405191825260208201526040908101905180910390a3849a505b5050505050505050505092915050565b600160a060020a0316600090815260066020908152604080832054600490925290912054600954680100000000000000009102919091030490565b60008054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a3f5780601f10610a1457610100808354040283529160200191610a3f565b820191906000526020600020905b815481529060010190602001808311610a2257829003601f168201915b505050505081565b6000808080610a5785600a611144565b9250610a63858461115b565b9150610a6e8261116d565b95945050505050565b60085490565b6000806000806008548511151515610a9457600080fd5b610a9d85611205565b9250610aaa83600a611144565b9150610a6e838361115b565b601281565b6000806000610aca6001610be1565b11610ad457600080fd5b339150610ae16000610be1565b600160a060020a0383166000818152600660209081526040808320805468010000000000000000870201905560059091528082208054929055920192509082156108fc0290839051600060405180830381858888f193505050501515610b4657600080fd5b81600160a060020a03167fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc8260405190815260200160405180910390a25050565b60008060008060085460001415610ba5576414f46b04009350610bd5565b610bb6670de0b6b3a7640000611205565b9250610bc383600a611144565b9150610bcf838361115b565b90508093505b50505090565b60025481565b60003382610bf757610bf28161096e565b610c1b565b600160a060020a038116600090815260056020526040902054610c198261096e565b015b91505b50919050565b600160a060020a0330163190565b600160a060020a031660009081526004602052604090205490565b60008060008060085460001415610c6b5764199c82cc009350610bd5565b610c7c670de0b6b3a7640000611205565b9250610c8983600a611144565b9150610bcf838361112e565b600033610ca181610c32565b91505090565b60018054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610a3f5780601f10610a1457610100808354040283529160200191610a3f565b600a5460ff1681565b600080600080600080610d2c610c95565b11610d3657600080fd5b600a5433945060ff16158015610d645750600160a060020a0384166000908152600460205260409020548611155b1515610d6f57600080fd5b6000610d7b6001610be1565b1115610d8957610d89610abb565b610d9486600a611144565b9250610da0868461115b565b9150610dab83611205565b9050610db96008548461115b565b600855600160a060020a038416600090815260046020526040902054610ddf908761115b565b600160a060020a038086166000908152600460205260408082209390935590891681522054610e0e908361112e565b600160a060020a0388811660008181526004602090815260408083209590955560098054948a16835260069091528482208054948c02909403909355825491815292909220805492850290920190915554600854610e829190680100000000000000008402811515610e7c57fe5b0461112e565b600955600160a060020a038088169085167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405190815260200160405180910390a35060019695505050505050565b6000806000806000806000610ee6610c95565b11610ef057600080fd5b33600160a060020a038116600090815260046020526040902054909650871115610f1957600080fd5b869450610f2585611205565b9350610f3284600a611144565b9250610f3e848461115b565b9150610f4c6008548661115b565b600855600160a060020a038616600090815260046020526040902054610f72908661115b565b600160a060020a0387166000908152600460209081526040808320939093556009546006909152918120805492880268010000000000000000860201928390039055600854919250901115610fe357610fdf600954600854680100000000000000008602811515610e7c57fe5b6009555b85600160a060020a03167fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139868460405191825260208201526040908101905180910390a250505050505050565b33600160a060020a0381166000908152600460205260408120549081111561105b5761105b81610ed3565b611063610abb565b5050565b6000610c1e34836103a3565b6000806000806110836001610be1565b1161108d57600080fd5b6110976000610be1565b33600160a060020a0381166000908152600660209081526040808320805468010000000000000000870201905560059091528120805490829055909201945092506110e39084906103a3565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab3615326458848360405191825260208201526040908101905180910390a2505050565b60008282018381101561113d57fe5b9392505050565b600080828481151561115257fe5b04949350505050565b60008282111561116757fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be4006111f26111ec730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611271565b8561115b565b8115156111fb57fe5b0403949350505050565b600854600090670de0b6b3a764000083810191810190839061125e6414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561125857fe5b0461115b565b81151561126757fe5b0495945050505050565b80600260018201045b81811015610c1e57809150600281828581151561129357fe5b040181151561129e57fe5b04905061127a5600a165627a7a72305820fa03e8bf9cd590c86bbd976feb7c6b3861ebf57c4a2ddc3972cf0961729a18900029

Swarm Source

bzzr://fa03e8bf9cd590c86bbd976feb7c6b3861ebf57c4a2ddc3972cf0961729a1890
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.