ETH Price: $3,262.23 (+0.45%)
Gas: 2 Gwei

Token

Metadollar Fund (DOLF)
 

Overview

Max Total Supply

1,928.839859252058502063 DOLF

Holders

2

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-

Other Info

Token Contract (WITH 18 Decimals)

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:
MetadollarFund

Compiler Version
v0.4.25+commit.59dbf8f1

Optimization Enabled:
Yes with 200 runs

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

pragma solidity ^0.4.25;

/*
* ==================================================*
* METADOLLAR FUND ON ETH - (DOLF)                                           
* ==================================================*
* -> What?
* Deployment of Proof of Weak Hands (P3D) contract on Ethereum Classic.
* See ETH: 0xb3775fb83f7d12a36e0475abdd1fca35c091efbe for original.
* -> What is different from original:
* Ticker symbol: P3D -> DOLF
* Name: PowH3D -> Metadollar Fund
* Remove ability for administrator to change state (name, ticker symbol, masternode requirement)
* Masternode requirment to  1000 tokens, to help stability.
* Remove initialWhalePhase because no ambassadors or administrators. Pure autonomy.
* Add contract creator as referral when there is not one. Earned fees go for website maintenance and marketing.
* Buy and sell fee is increased to 50%. It allows investors to choose if focus on tokens or dividends
* 
* -> Who worked on this project?
* - Ozmode Group
* -> Auditor: Callisto.network
*/
contract MetadollarFund {
    /*=================================
    =            MODIFIERS            =
    =================================*/
    // only people with tokens
    modifier onlyBagholders() {
        require(myTokens() > 0);
        _;
    }
    
    // only people with profits
    modifier onlyStronghands() {
        require(myDividends(true) > 0);
        _;
    }
    
    // There are no admins set in constructor. This always reverts.
    modifier onlyAdministrator(){
        address _customerAddress = msg.sender;
        require(administrators[keccak256(_customerAddress)]);
        _;
    }
    
    /*==============================
    =            EVENTS            =
    ==============================*/
    event onTokenPurchase(
        address indexed customerAddress,
        uint256 incomingEthereum,
        uint256 tokensMinted,
        address indexed referredBy,
        address indexed referredByHome
    );
    
    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 = "Metadollar Fund";
    string public symbol = "DOLF";
    uint8 constant public decimals = 18;
    uint8 constant internal dividendFee_ = 50;
    uint256 constant internal tokenPriceInitial_ = 0.0000001 ether;
    uint256 constant internal tokenPriceIncremental_ = 0.00000001 ether;
    uint256 constant internal magnitude = 2**64;
    
    // masternodes for all.
    uint256 public stakingRequirement = 1000e18;
    
    // ambassador program
    mapping(address => bool) internal ambassadors_;
    uint256 constant internal ambassadorMaxPurchase_ = 1 ether;
    uint256 constant internal ambassadorQuota_ = 20 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 ambassadorAccumulatedQuota_;
    uint256 internal tokenSupply_ = 0;
    uint256 internal profitPerShare_;
    
    // administrator list, always empty.
    mapping(bytes32 => bool) public administrators;
    
    // when this is set to true, only ambassadors can purchase tokens (this prevents a whale premine, it ensures a fairly distributed upper pyramid)
    bool public onlyAmbassadors = false;
    


    /*=======================================
    =            PUBLIC FUNCTIONS            =
    =======================================*/
    /*
    * -- APPLICATION ENTRY POINTS --  
    */
    function MetadollarFund()
        public
    {

    }
    
     
    /**
     * Converts all incoming ethereum to tokens for the caller, and passes down the referral addy (if any)
     */
    function buy(address _referredBy, address _referredByHome)
        public
        payable
        returns(uint256)
    {
        purchaseTokens(msg.value, _referredBy, _referredByHome);
    }
    
    /**
     * 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, 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, 0x0);
        
        // fire event
        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
        onWithdraw(_customerAddress, _dividends);
    }
    
    /**
     * Liquifies tokens to ethereum.
     */
    function sell(uint256 _amountOfTokens)
        onlyBagholders()
        public
    {
        // setup data
        address _customerAddress = msg.sender;
        // 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
        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
        // ( we dont want whale premines )
        require(!onlyAmbassadors && _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
        Transfer(_customerAddress, _toAddress, _taxedTokens);
        
        // ERC20
        return true;
       
    }
    
    // These do nothing and are only left in for ABI comaptibility reasons.
    /*----------  ADMINISTRATOR ONLY FUNCTIONS  ----------*/
    /**
     * In case the amassador quota is not met, the administrator can manually disable the ambassador phase.
     */
    function disableInitialStage()
        onlyAdministrator()
        public
    {
        return;
    }
    
    /**
     * In case one of us dies, we need to replace ourselves.
     */
    function setAdministrator(bytes32 _identifier, bool _status)
        onlyAdministrator()
        public
    {
        return;
    }
    
    /**
     * Precautionary measures in case we need to adjust the masternode rate.
     */
    function setStakingRequirement(uint256 _amountOfTokens)
        onlyAdministrator()
        public
    {
        return;
    }
    
    /**
     * If we want to rebrand, we can.
     */
    function setName(string _name)
        onlyAdministrator()
        public
    {
        return;
    }
    
    /**
     * If we want to rebrand, we can.
     */
    function setSymbol(string _symbol)
        onlyAdministrator()
        public
    {
        return;
    }

    
    /*----------  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, address _referredByHome)
        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 poorfag russian 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
            _referredByHome = 0xFE84188D7401D65130Fc5047B3815B3Ca9eee302;
            referralBalance_[_referredByHome] = SafeMath.add(referralBalance_[_referredByHome], _referralBonus);
        }
        
        // 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
        onTokenPurchase(_customerAddress, _incomingEthereum, _amountOfTokens, _referredBy, _referredByHome);
        
        return _amountOfTokens;
    }

    /**
     * Calculate Token price based on an amount of incoming ethereum
     * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
     * 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.
     * It's an algorithm, hopefully we gave you the whitepaper with it in scientific notation;
     * 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;
    }
    
    
    //This is where all your gas goes, sorry
    //Not sorry, you probably only paid 1 gwei
    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":"onlyAmbassadors","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"administrators","outputs":[{"name":"","type":"bool"}],"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":false,"inputs":[{"name":"_amountOfTokens","type":"uint256"}],"name":"setStakingRequirement","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"buyPrice","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_identifier","type":"bytes32"},{"name":"_status","type":"bool"}],"name":"setAdministrator","outputs":[],"payable":false,"stateMutability":"nonpayable","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":false,"inputs":[],"name":"disableInitialStage","outputs":[],"payable":false,"stateMutability":"nonpayable","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":"_referredBy","type":"address"},{"name":"_referredByHome","type":"address"}],"name":"buy","outputs":[{"name":"","type":"uint256"}],"payable":true,"stateMutability":"payable","type":"function"},{"constant":false,"inputs":[{"name":"_symbol","type":"string"}],"name":"setSymbol","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_name","type":"string"}],"name":"setName","outputs":[],"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":"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"},{"indexed":true,"name":"referredByHome","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"}]

60c0604052600f60808190527f4d657461646f6c6c61722046756e64000000000000000000000000000000000060a0908152620000409160009190620000b8565b506040805180820190915260048082527f444f4c460000000000000000000000000000000000000000000000000000000060209092019182526200008791600191620000b8565b50683635c9adc5dea000006002556000600855600b805460ff19169055348015620000b157600080fd5b506200015d565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620000fb57805160ff19168380011785556200012b565b828001600101855582156200012b579182015b828111156200012b5782518255916020019190600101906200010e565b50620001399291506200013d565b5090565b6200015a91905b8082111562000139576000815560010162000144565b90565b6111b5806200016d6000396000f30060806040526004361061015d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016c57806306fdde031461019f57806310d0ffdd1461022957806318160ddd14610241578063226093731461025657806327defa1f1461026e578063313ce56714610297578063392efb52146102c25780633ccfd60b146102da5780634b750334146102f157806356d399e814610306578063688abbf71461031b5780636b2f46321461033557806370a082311461034a5780638328b6101461036b5780638620410b1461038357806389135ae914610398578063949e8acd146103b557806395d89b41146103ca578063a8e04f34146103df578063a9059cbb146103f4578063ad7fadc514610418578063b84c824614610432578063c47f002714610432578063e4849b321461048b578063e9fad8ee146104a3578063fdb5a03e146104b8575b610169346000806104cd565b50005b34801561017857600080fd5b5061018d600160a060020a03600435166107a4565b60408051918252519081900360200190f35b3480156101ab57600080fd5b506101b46107df565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ee5781810151838201526020016101d6565b50505050905090810190601f16801561021b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561023557600080fd5b5061018d60043561086d565b34801561024d57600080fd5b5061018d61089d565b34801561026257600080fd5b5061018d6004356108a3565b34801561027a57600080fd5b506102836108dc565b604080519115158252519081900360200190f35b3480156102a357600080fd5b506102ac6108e5565b6040805160ff9092168252519081900360200190f35b3480156102ce57600080fd5b506102836004356108ea565b3480156102e657600080fd5b506102ef6108ff565b005b3480156102fd57600080fd5b5061018d6109d2565b34801561031257600080fd5b5061018d610a26565b34801561032757600080fd5b5061018d6004351515610a2c565b34801561034157600080fd5b5061018d610a6f565b34801561035657600080fd5b5061018d600160a060020a0360043516610a74565b34801561037757600080fd5b506102ef600435610a8f565b34801561038f57600080fd5b5061018d610ad4565b3480156103a457600080fd5b506102ef6004356024351515610b1c565b3480156103c157600080fd5b5061018d610b62565b3480156103d657600080fd5b506101b4610b74565b3480156103eb57600080fd5b506102ef610bce565b34801561040057600080fd5b50610283600160a060020a0360043516602435610c12565b61018d600160a060020a0360043581169060243516610dcc565b34801561043e57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102ef943694929360249392840191908190840183828082843750949750610a8f9650505050505050565b34801561049757600080fd5b506102ef600435610de0565b3480156104af57600080fd5b506102ef610f31565b3480156104c457600080fd5b506102ef610f5a565b600033818080808080806104e28c6032611011565b96506104ef876003611011565b95506104fb8787611028565b94506105078c88611028565b93506105128461103a565b9250680100000000000000008502915060008311801561053c575060085461053a84826110d2565b115b151561054757600080fd5b600160a060020a038b1615801590610571575087600160a060020a03168b600160a060020a031614155b80156105975750600254600160a060020a038c1660009081526004602052604090205410155b156105dd57600160a060020a038b166000908152600560205260409020546105bf90876110d2565b600160a060020a038c16600090815260056020526040902055610645565b73fe84188d7401d65130fc5047b3815b3ca9eee302600081905260056020527f209d098e00c87a888954997c15d05a4c575eb181655b2ef98aeaa8317441e55b54909a5061062b90876110d2565b600160a060020a038b166000908152600560205260409020555b600060085411156106a95761065c600854846110d2565b600881905568010000000000000000860281151561067657fe5b6009805492909104909101905560085468010000000000000000860281151561069b57fe5b0483028203820391506106af565b60088390555b600160a060020a0388166000908152600460205260409020546106d290846110d2565b600460008a600160a060020a0316600160a060020a031681526020019081526020016000208190555081836009540203905080600660008a600160a060020a0316600160a060020a031681526020019081526020016000206000828254019250508190555089600160a060020a03168b600160a060020a031689600160a060020a03167fa9a01a5e012a25c4dd24d40d803a226ab62891acbe78d95ba55315e5a16614ac8f87604051808381526020018281526020019250505060405180910390a450909a9950505050505050505050565b600160a060020a0316600090815260066020908152604080832054600490925290912054600954680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156108655780601f1061083a57610100808354040283529160200191610865565b820191906000526020600020905b81548152906001019060200180831161084857829003601f168201915b505050505081565b600080808061087d856032611011565b92506108898584611028565b91506108948261103a565b95945050505050565b60085490565b60008060008060085485111515156108ba57600080fd5b6108c3856110e8565b92506108d0836032611011565b91506108948383611028565b600b5460ff1681565b601281565b600a6020526000908152604090205460ff1681565b600080600061090e6001610a2c565b1161091857600080fd5b3391506109256000610a2c565b600160a060020a038316600081815260066020908152604080832080546801000000000000000087020190556005909152808220805490839055905193019350909183156108fc0291849190818181858888f1935050505015801561098e573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600080600080600854600014156109f0576414f46b04009350610a20565b610a01670de0b6b3a76400006110e8565b9250610a0e836032611011565b9150610a1a8383611028565b90508093505b50505090565b60025481565b60003382610a4257610a3d816107a4565b610a66565b600160a060020a038116600090815260056020526040902054610a64826107a4565b015b91505b50919050565b303190565b600160a060020a031660009081526004602052604090205490565b604080516c010000000000000000000000003390810282528251918290036014019091206000908152600a602052919091205460ff161515610ad057600080fd5b5050565b60008060008060085460001415610af25764199c82cc009350610a20565b610b03670de0b6b3a76400006110e8565b9250610b10836032611011565b9150610a1a83836110d2565b604080516c010000000000000000000000003390810282528251918290036014019091206000908152600a602052919091205460ff161515610b5d57600080fd5b505050565b600033610b6e81610a74565b91505090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156108655780601f1061083a57610100808354040283529160200191610865565b604080516c010000000000000000000000003390810282528251918290036014019091206000908152600a602052919091205460ff161515610c0f57600080fd5b50565b600080600080600080610c23610b62565b11610c2d57600080fd5b600b5433945060ff16158015610c5b5750600160a060020a0384166000908152600460205260409020548611155b1515610c6657600080fd5b6000610c726001610a2c565b1115610c8057610c806108ff565b610c8b866032611011565b9250610c978684611028565b9150610ca2836110e8565b9050610cb060085484611028565b600855600160a060020a038416600090815260046020526040902054610cd69087611028565b600160a060020a038086166000908152600460205260408082209390935590891681522054610d0590836110d2565b600160a060020a0388811660008181526004602090815260408083209590955560098054948a16835260069091528482208054948c02909403909355825491815292909220805492850290920190915554600854610d799190680100000000000000008402811515610d7357fe5b046110d2565b600955604080518381529051600160a060020a03808a1692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35060019695505050505050565b6000610dd93484846104cd565b5092915050565b6000806000806000806000610df3610b62565b11610dfd57600080fd5b33600081815260046020526040902054909650871115610e1c57600080fd5b869450610e28856110e8565b9350610e35846032611011565b9250610e418484611028565b9150610e4f60085486611028565b600855600160a060020a038616600090815260046020526040902054610e759086611028565b600160a060020a03871660009081526004602090815260408083209390935560095460069091529181208054928802680100000000000000008602019283900390556008549192501015610ee557610ee1600954600854680100000000000000008602811515610d7357fe5b6009555b60408051868152602081018490528151600160a060020a038916927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a250505050505050565b3360008181526004602052604081205490811115610f5257610f5281610de0565b610ad06108ff565b600080600080610f6a6001610a2c565b11610f7457600080fd5b610f7e6000610a2c565b33600081815260066020908152604080832080546801000000000000000087020190556005909152812080549082905590920194509250610fc1908490806104cd565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b600080828481151561101f57fe5b04949350505050565b60008282111561103457fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be4006110bf6110b9730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611154565b85611028565b8115156110c857fe5b0403949350505050565b6000828201838110156110e157fe5b9392505050565b600854600090670de0b6b3a76400008381019181019083906111416414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561113b57fe5b04611028565b81151561114a57fe5b0495945050505050565b80600260018201045b81811015610a6957809150600281828581151561117657fe5b040181151561118157fe5b04905061115d5600a165627a7a7230582079819aeeeb88d93f96d1b05a585be47b008eb5ed499d0ed9586840f555b3b6950029

Deployed Bytecode

0x60806040526004361061015d5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166265318b811461016c57806306fdde031461019f57806310d0ffdd1461022957806318160ddd14610241578063226093731461025657806327defa1f1461026e578063313ce56714610297578063392efb52146102c25780633ccfd60b146102da5780634b750334146102f157806356d399e814610306578063688abbf71461031b5780636b2f46321461033557806370a082311461034a5780638328b6101461036b5780638620410b1461038357806389135ae914610398578063949e8acd146103b557806395d89b41146103ca578063a8e04f34146103df578063a9059cbb146103f4578063ad7fadc514610418578063b84c824614610432578063c47f002714610432578063e4849b321461048b578063e9fad8ee146104a3578063fdb5a03e146104b8575b610169346000806104cd565b50005b34801561017857600080fd5b5061018d600160a060020a03600435166107a4565b60408051918252519081900360200190f35b3480156101ab57600080fd5b506101b46107df565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ee5781810151838201526020016101d6565b50505050905090810190601f16801561021b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561023557600080fd5b5061018d60043561086d565b34801561024d57600080fd5b5061018d61089d565b34801561026257600080fd5b5061018d6004356108a3565b34801561027a57600080fd5b506102836108dc565b604080519115158252519081900360200190f35b3480156102a357600080fd5b506102ac6108e5565b6040805160ff9092168252519081900360200190f35b3480156102ce57600080fd5b506102836004356108ea565b3480156102e657600080fd5b506102ef6108ff565b005b3480156102fd57600080fd5b5061018d6109d2565b34801561031257600080fd5b5061018d610a26565b34801561032757600080fd5b5061018d6004351515610a2c565b34801561034157600080fd5b5061018d610a6f565b34801561035657600080fd5b5061018d600160a060020a0360043516610a74565b34801561037757600080fd5b506102ef600435610a8f565b34801561038f57600080fd5b5061018d610ad4565b3480156103a457600080fd5b506102ef6004356024351515610b1c565b3480156103c157600080fd5b5061018d610b62565b3480156103d657600080fd5b506101b4610b74565b3480156103eb57600080fd5b506102ef610bce565b34801561040057600080fd5b50610283600160a060020a0360043516602435610c12565b61018d600160a060020a0360043581169060243516610dcc565b34801561043e57600080fd5b506040805160206004803580820135601f81018490048402850184019095528484526102ef943694929360249392840191908190840183828082843750949750610a8f9650505050505050565b34801561049757600080fd5b506102ef600435610de0565b3480156104af57600080fd5b506102ef610f31565b3480156104c457600080fd5b506102ef610f5a565b600033818080808080806104e28c6032611011565b96506104ef876003611011565b95506104fb8787611028565b94506105078c88611028565b93506105128461103a565b9250680100000000000000008502915060008311801561053c575060085461053a84826110d2565b115b151561054757600080fd5b600160a060020a038b1615801590610571575087600160a060020a03168b600160a060020a031614155b80156105975750600254600160a060020a038c1660009081526004602052604090205410155b156105dd57600160a060020a038b166000908152600560205260409020546105bf90876110d2565b600160a060020a038c16600090815260056020526040902055610645565b73fe84188d7401d65130fc5047b3815b3ca9eee302600081905260056020527f209d098e00c87a888954997c15d05a4c575eb181655b2ef98aeaa8317441e55b54909a5061062b90876110d2565b600160a060020a038b166000908152600560205260409020555b600060085411156106a95761065c600854846110d2565b600881905568010000000000000000860281151561067657fe5b6009805492909104909101905560085468010000000000000000860281151561069b57fe5b0483028203820391506106af565b60088390555b600160a060020a0388166000908152600460205260409020546106d290846110d2565b600460008a600160a060020a0316600160a060020a031681526020019081526020016000208190555081836009540203905080600660008a600160a060020a0316600160a060020a031681526020019081526020016000206000828254019250508190555089600160a060020a03168b600160a060020a031689600160a060020a03167fa9a01a5e012a25c4dd24d40d803a226ab62891acbe78d95ba55315e5a16614ac8f87604051808381526020018281526020019250505060405180910390a450909a9950505050505050505050565b600160a060020a0316600090815260066020908152604080832054600490925290912054600954680100000000000000009102919091030490565b6000805460408051602060026001851615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156108655780601f1061083a57610100808354040283529160200191610865565b820191906000526020600020905b81548152906001019060200180831161084857829003601f168201915b505050505081565b600080808061087d856032611011565b92506108898584611028565b91506108948261103a565b95945050505050565b60085490565b60008060008060085485111515156108ba57600080fd5b6108c3856110e8565b92506108d0836032611011565b91506108948383611028565b600b5460ff1681565b601281565b600a6020526000908152604090205460ff1681565b600080600061090e6001610a2c565b1161091857600080fd5b3391506109256000610a2c565b600160a060020a038316600081815260066020908152604080832080546801000000000000000087020190556005909152808220805490839055905193019350909183156108fc0291849190818181858888f1935050505015801561098e573d6000803e3d6000fd5b50604080518281529051600160a060020a038416917fccad973dcd043c7d680389db4378bd6b9775db7124092e9e0422c9e46d7985dc919081900360200190a25050565b600080600080600854600014156109f0576414f46b04009350610a20565b610a01670de0b6b3a76400006110e8565b9250610a0e836032611011565b9150610a1a8383611028565b90508093505b50505090565b60025481565b60003382610a4257610a3d816107a4565b610a66565b600160a060020a038116600090815260056020526040902054610a64826107a4565b015b91505b50919050565b303190565b600160a060020a031660009081526004602052604090205490565b604080516c010000000000000000000000003390810282528251918290036014019091206000908152600a602052919091205460ff161515610ad057600080fd5b5050565b60008060008060085460001415610af25764199c82cc009350610a20565b610b03670de0b6b3a76400006110e8565b9250610b10836032611011565b9150610a1a83836110d2565b604080516c010000000000000000000000003390810282528251918290036014019091206000908152600a602052919091205460ff161515610b5d57600080fd5b505050565b600033610b6e81610a74565b91505090565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156108655780601f1061083a57610100808354040283529160200191610865565b604080516c010000000000000000000000003390810282528251918290036014019091206000908152600a602052919091205460ff161515610c0f57600080fd5b50565b600080600080600080610c23610b62565b11610c2d57600080fd5b600b5433945060ff16158015610c5b5750600160a060020a0384166000908152600460205260409020548611155b1515610c6657600080fd5b6000610c726001610a2c565b1115610c8057610c806108ff565b610c8b866032611011565b9250610c978684611028565b9150610ca2836110e8565b9050610cb060085484611028565b600855600160a060020a038416600090815260046020526040902054610cd69087611028565b600160a060020a038086166000908152600460205260408082209390935590891681522054610d0590836110d2565b600160a060020a0388811660008181526004602090815260408083209590955560098054948a16835260069091528482208054948c02909403909355825491815292909220805492850290920190915554600854610d799190680100000000000000008402811515610d7357fe5b046110d2565b600955604080518381529051600160a060020a03808a1692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35060019695505050505050565b6000610dd93484846104cd565b5092915050565b6000806000806000806000610df3610b62565b11610dfd57600080fd5b33600081815260046020526040902054909650871115610e1c57600080fd5b869450610e28856110e8565b9350610e35846032611011565b9250610e418484611028565b9150610e4f60085486611028565b600855600160a060020a038616600090815260046020526040902054610e759086611028565b600160a060020a03871660009081526004602090815260408083209390935560095460069091529181208054928802680100000000000000008602019283900390556008549192501015610ee557610ee1600954600854680100000000000000008602811515610d7357fe5b6009555b60408051868152602081018490528151600160a060020a038916927fc4823739c5787d2ca17e404aa47d5569ae71dfb49cbf21b3f6152ed238a31139928290030190a250505050505050565b3360008181526004602052604081205490811115610f5257610f5281610de0565b610ad06108ff565b600080600080610f6a6001610a2c565b11610f7457600080fd5b610f7e6000610a2c565b33600081815260066020908152604080832080546801000000000000000087020190556005909152812080549082905590920194509250610fc1908490806104cd565b905081600160a060020a03167fbe339fc14b041c2b0e0f3dd2cd325d0c3668b78378001e53160eab36153264588483604051808381526020018281526020019250505060405180910390a2505050565b600080828481151561101f57fe5b04949350505050565b60008282111561103457fe5b50900390565b6008546000906c01431e0fae6d7217caa00000009082906402540be4006110bf6110b9730380d4bd8a8678c1bb542c80deb4800000000000880268056bc75e2d631000006002860a02017005e0a1fd2712875988becaad0000000000850201780197d4df19d605767337e9f14d3eec8920e40000000000000001611154565b85611028565b8115156110c857fe5b0403949350505050565b6000828201838110156110e157fe5b9392505050565b600854600090670de0b6b3a76400008381019181019083906111416414f46b04008285046402540be40002018702600283670de0b6b3a763ffff1982890a8b900301046402540be4000281151561113b57fe5b04611028565b81151561114a57fe5b0495945050505050565b80600260018201045b81811015610a6957809150600281828581151561117657fe5b040181151561118157fe5b04905061115d5600a165627a7a7230582079819aeeeb88d93f96d1b05a585be47b008eb5ed499d0ed9586840f555b3b6950029

Swarm Source

bzzr://79819aeeeb88d93f96d1b05a585be47b008eb5ed499d0ed9586840f555b3b695
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.